Initial commit: Linux kernel 4.19 for Unplugged OS

This commit is contained in:
ziv committed 2025-10-06 13:52:42 +00:00
commit d30235b04c
80519 files changed
+35800681

No files matched your search

@@ -0,0 +1,34 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2016 MediaTek Inc.
*/
#ifndef __MTK_UDI_MT6761__
#define __MTK_UDI_MT6761__
#include <linux/kernel.h>
/* UDI pin mux ADDR */
/* 1. Write 0x1000_5330 = 0x03333333 */
/* 2. Write 0x1000_5340 = 0x00000333 */
#ifdef CONFIG_OF
#define DEVICE_GPIO "mediatek,gpio"
/* 0x10005000 0x1000, UDI pinmux reg */
static void __iomem *udipin_base;
#endif
#ifdef __KERNEL__
#define UDIPIN_BASE (udipin_base)
#else
#define UDIPIN_BASE 0x10005000
#endif
/* 0x102D0000 0x1000, UDI pinmux reg */
#define UDIPIN_UDI_MUX1 (UDIPIN_BASE+0x330)
#define UDIPIN_UDI_MUX1_VALUE (0x03333333)
#define UDIPIN_UDI_MUX2 (UDIPIN_BASE+0x340)
#define UDIPIN_UDI_MUX2_VALUE (0x00000333)
#endif /* __MTK_UDI_MT6761__ */
@@ -0,0 +1,35 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2016 MediaTek Inc.
*/
#ifndef __MTK_UDI_MT6765__
#define __MTK_UDI_MT6765__
#include <linux/kernel.h>
/* UDI pin mux ADDR */
/* 1. Write 0x1000_5330 = 0x33300000 */
/* 2. Write 0x1000_5340 = 0x00000333 */
#ifdef CONFIG_OF
#define DEVICE_GPIO "mediatek,gpio"
/* 0x10005000 0x1000, UDI pinmux reg */
static void __iomem *udipin_base;
#endif
#ifdef __KERNEL__
#define UDIPIN_BASE (udipin_base)
#else
#define UDIPIN_BASE 0x10005000
#endif
/* 0x102D0000 0x1000, UDI pinmux reg */
#define UDIPIN_UDI_MUX1 (UDIPIN_BASE+0x330)
#define UDIPIN_UDI_MUX1_VALUE (0x33300000)
#define UDIPIN_UDI_MUX2 (UDIPIN_BASE+0x340)
#define UDIPIN_UDI_MUX2_VALUE (0x00000333)
#endif /* __MTK_UDI_MT6765__ */