diff options
author | Birger Koblitz <git@birger-koblitz.de> | 2021-09-27 20:57:29 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2021-10-09 08:25:06 +0200 |
commit | cda0460ad333f15e15ec9bd2516b2ae45f8a4644 (patch) | |
tree | 23e150a5e825f65c55c527a4c90668e4f1b71644 /target/linux/realtek/files-5.10/arch | |
parent | 4c83dae801a83fdfc07fce8aa68978839a76ae02 (diff) | |
download | upstream-cda0460ad333f15e15ec9bd2516b2ae45f8a4644.tar.gz upstream-cda0460ad333f15e15ec9bd2516b2ae45f8a4644.tar.bz2 upstream-cda0460ad333f15e15ec9bd2516b2ae45f8a4644.zip |
realtek: add legacy realtek GPIO driver for rtl9300 support
The otto GPIO driver does not work with rtl9300 SoCs. Add
the legacy driver again and use that by default in the 9300 .dtsi
Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Diffstat (limited to 'target/linux/realtek/files-5.10/arch')
-rw-r--r-- | target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h b/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h index 0abfc6f4d2..ecec0fec2d 100644 --- a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h +++ b/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h @@ -214,6 +214,13 @@ #define RTL838X_GPIO_PAB_IMR (GPIO_CTRL_REG_BASE + 0x14) #define RTL838X_GPIO_PC_IMR (GPIO_CTRL_REG_BASE + 0x18) +#define RTL930X_GPIO_CTRL_REG_BASE ((volatile void *) 0xb8003300) +#define RTL930X_GPIO_PABCD_DIR (RTL930X_GPIO_CTRL_REG_BASE + 0x8) +#define RTL930X_GPIO_PABCD_DAT (RTL930X_GPIO_CTRL_REG_BASE + 0xc) +#define RTL930X_GPIO_PABCD_ISR (RTL930X_GPIO_CTRL_REG_BASE + 0x10) +#define RTL930X_GPIO_PAB_IMR (RTL930X_GPIO_CTRL_REG_BASE + 0x14) +#define RTL930X_GPIO_PCD_IMR (RTL930X_GPIO_CTRL_REG_BASE + 0x18) + #define RTL838X_MODEL_NAME_INFO (0x00D4) #define RTL839X_MODEL_NAME_INFO (0x0FF0) #define RTL93XX_MODEL_NAME_INFO (0x0004) |