From: myungjoo.ham@samsung.com (MyungJoo Ham) Date: Mon, 14 Jun 2010 17:39:13 +0900 Subject: [PATCH 4/6] S5PV210 GPIO relataed registers are added. In-Reply-To: <1276504755-24741-4-git-send-email-MyungJoo.Ham@samsung.com> References: <1276504755-24741-1-git-send-email-MyungJoo.Ham@samsung.com> <1276504755-24741-2-git-send-email-MyungJoo.Ham@samsung.com> <1276504755-24741-3-git-send-email-MyungJoo.Ham@samsung.com> <1276504755-24741-4-git-send-email-MyungJoo.Ham@samsung.com> Message-ID: <1276504755-24741-5-git-send-email-MyungJoo.Ham@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Signed-off-by: MyungJoo Ham --- arch/arm/mach-s5pv210/include/mach/regs-gpio.h | 121 ++++++++++++++++++++++++ 1 files changed, 121 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s5pv210/include/mach/regs-gpio.h b/arch/arm/mach-s5pv210/include/mach/regs-gpio.h index 49e029b..d0dc78f 100644 --- a/arch/arm/mach-s5pv210/include/mach/regs-gpio.h +++ b/arch/arm/mach-s5pv210/include/mach/regs-gpio.h @@ -45,4 +45,125 @@ #define EINT_GPIO_2(x) S5PV210_GPH2(x) #define EINT_GPIO_3(x) S5PV210_GPH3(x) +#define S5PV210_GPIO_BASE S5P_VA_GPIO + +#define S5PV210_ETC0PUD (S5PV210_GPIO_BASE + 0x0608) +#define S5PV210_ETC0DRV (S5PV210_GPIO_BASE + 0x060C) +#define S5PV210_ETC1PUD (S5PV210_GPIO_BASE + 0x0628) +#define S5PV210_ETC1DRV (S5PV210_GPIO_BASE + 0x062C) +#define S5PV210_ETC2PUD (S5PV210_GPIO_BASE + 0x0648) +#define S5PV210_ETC2DRV (S5PV210_GPIO_BASE + 0x064C) + +#define S5PV210_GPA0_INT_CON (S5PV210_GPIO_BASE + 0x0700) +#define S5PV210_GPA1_INT_CON (S5PV210_GPIO_BASE + 0x0704) +#define S5PV210_GPB_INT_CON (S5PV210_GPIO_BASE + 0x0708) +#define S5PV210_GPC0_INT_CON (S5PV210_GPIO_BASE + 0x070C) +#define S5PV210_GPC1_INT_CON (S5PV210_GPIO_BASE + 0x0710) +#define S5PV210_GPD0_INT_CON (S5PV210_GPIO_BASE + 0x0714) +#define S5PV210_GPD1_INT_CON (S5PV210_GPIO_BASE + 0x0718) +#define S5PV210_GPE0_INT_CON (S5PV210_GPIO_BASE + 0x071C) +#define S5PV210_GPE1_INT_CON (S5PV210_GPIO_BASE + 0x0720) +#define S5PV210_GPF0_INT_CON (S5PV210_GPIO_BASE + 0x0724) +#define S5PV210_GPF1_INT_CON (S5PV210_GPIO_BASE + 0x0728) +#define S5PV210_GPF2_INT_CON (S5PV210_GPIO_BASE + 0x072C) +#define S5PV210_GPF3_INT_CON (S5PV210_GPIO_BASE + 0x0730) +#define S5PV210_GPG0_INT_CON (S5PV210_GPIO_BASE + 0x0734) +#define S5PV210_GPG1_INT_CON (S5PV210_GPIO_BASE + 0x0738) +#define S5PV210_GPG2_INT_CON (S5PV210_GPIO_BASE + 0x073C) +#define S5PV210_GPG3_INT_CON (S5PV210_GPIO_BASE + 0x0740) +#define S5PV210_GPJ0_INT_CON (S5PV210_GPIO_BASE + 0x0744) +#define S5PV210_GPJ1_INT_CON (S5PV210_GPIO_BASE + 0x0748) +#define S5PV210_GPJ2_INT_CON (S5PV210_GPIO_BASE + 0x074C) +#define S5PV210_GPJ3_INT_CON (S5PV210_GPIO_BASE + 0x0750) +#define S5PV210_GPJ4_INT_CON (S5PV210_GPIO_BASE + 0x0754) + +#define S5PV210_GPA0_INT_MASK (S5PV210_GPIO_BASE + 0x0900) +#define S5PV210_GPA1_INT_MASK (S5PV210_GPIO_BASE + 0x0904) +#define S5PV210_GPB_INT_MASK (S5PV210_GPIO_BASE + 0x0908) +#define S5PV210_GPC0_INT_MASK (S5PV210_GPIO_BASE + 0x090C) +#define S5PV210_GPC1_INT_MASK (S5PV210_GPIO_BASE + 0x0910) +#define S5PV210_GPD0_INT_MASK (S5PV210_GPIO_BASE + 0x0914) +#define S5PV210_GPD1_INT_MASK (S5PV210_GPIO_BASE + 0x0918) +#define S5PV210_GPE0_INT_MASK (S5PV210_GPIO_BASE + 0x091C) +#define S5PV210_GPE1_INT_MASK (S5PV210_GPIO_BASE + 0x0920) +#define S5PV210_GPF0_INT_MASK (S5PV210_GPIO_BASE + 0x0924) +#define S5PV210_GPF1_INT_MASK (S5PV210_GPIO_BASE + 0x0928) +#define S5PV210_GPF2_INT_MASK (S5PV210_GPIO_BASE + 0x092C) +#define S5PV210_GPF3_INT_MASK (S5PV210_GPIO_BASE + 0x0930) +#define S5PV210_GPG0_INT_MASK (S5PV210_GPIO_BASE + 0x0934) +#define S5PV210_GPG1_INT_MASK (S5PV210_GPIO_BASE + 0x0938) +#define S5PV210_GPG2_INT_MASK (S5PV210_GPIO_BASE + 0x093C) +#define S5PV210_GPG3_INT_MASK (S5PV210_GPIO_BASE + 0x0940) +#define S5PV210_GPJ0_INT_MASK (S5PV210_GPIO_BASE + 0x0944) +#define S5PV210_GPJ1_INT_MASK (S5PV210_GPIO_BASE + 0x0948) +#define S5PV210_GPJ2_INT_MASK (S5PV210_GPIO_BASE + 0x094C) +#define S5PV210_GPJ3_INT_MASK (S5PV210_GPIO_BASE + 0x0950) +#define S5PV210_GPJ4_INT_MASK (S5PV210_GPIO_BASE + 0x0954) + +#define S5PV210_GPA0_INT_PEND (S5PV210_GPIO_BASE + 0x0a00) +#define S5PV210_GPA1_INT_PEND (S5PV210_GPIO_BASE + 0x0a04) +#define S5PV210_GPB_INT_PEND (S5PV210_GPIO_BASE + 0x0a08) +#define S5PV210_GPC0_INT_PEND (S5PV210_GPIO_BASE + 0x0a0C) +#define S5PV210_GPC1_INT_PEND (S5PV210_GPIO_BASE + 0x0a10) +#define S5PV210_GPD0_INT_PEND (S5PV210_GPIO_BASE + 0x0a14) +#define S5PV210_GPD1_INT_PEND (S5PV210_GPIO_BASE + 0x0a18) +#define S5PV210_GPE0_INT_PEND (S5PV210_GPIO_BASE + 0x0a1C) +#define S5PV210_GPE1_INT_PEND (S5PV210_GPIO_BASE + 0x0a20) +#define S5PV210_GPF0_INT_PEND (S5PV210_GPIO_BASE + 0x0a24) +#define S5PV210_GPF1_INT_PEND (S5PV210_GPIO_BASE + 0x0a28) +#define S5PV210_GPF2_INT_PEND (S5PV210_GPIO_BASE + 0x0a2C) +#define S5PV210_GPF3_INT_PEND (S5PV210_GPIO_BASE + 0x0a30) +#define S5PV210_GPG0_INT_PEND (S5PV210_GPIO_BASE + 0x0a34) +#define S5PV210_GPG1_INT_PEND (S5PV210_GPIO_BASE + 0x0a38) +#define S5PV210_GPG2_INT_PEND (S5PV210_GPIO_BASE + 0x0a3C) +#define S5PV210_GPG3_INT_PEND (S5PV210_GPIO_BASE + 0x0a40) +#define S5PV210_GPJ0_INT_PEND (S5PV210_GPIO_BASE + 0x0a44) +#define S5PV210_GPJ1_INT_PEND (S5PV210_GPIO_BASE + 0x0a48) +#define S5PV210_GPJ2_INT_PEND (S5PV210_GPIO_BASE + 0x0a4C) +#define S5PV210_GPJ3_INT_PEND (S5PV210_GPIO_BASE + 0x0a50) +#define S5PV210_GPJ4_INT_PEND (S5PV210_GPIO_BASE + 0x0a54) + +#define S5PV210_GPIO_INT_GRPPRI (S5PV210_GPIO_BASE + 0x0b00) +#define S5PV210_GPIO_INT_PRIORITY (S5PV210_GPIO_BASE + 0x0b04) +#define S5PV210_GPIO_INT_SERVICE (S5PV210_GPIO_BASE + 0x0b08) +#define S5PV210_GPIO_INT_SERVICE_PEND (S5PV210_GPIO_BASE + 0x0b0c) +#define S5PV210_GPIO_INT_GRPFIXPRI (S5PV210_GPIO_BASE + 0x0b10) + +#define S5PV210_GPA0_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b14) +#define S5PV210_GPA1_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b18) +#define S5PV210_GPB_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b1c) +#define S5PV210_GPC0_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b20) +#define S5PV210_GPC1_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b24) +#define S5PV210_GPD0_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b28) +#define S5PV210_GPD1_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b2c) +#define S5PV210_GPE0_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b30) +#define S5PV210_GPE1_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b34) +#define S5PV210_GPF0_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b38) +#define S5PV210_GPF1_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b3c) +#define S5PV210_GPF2_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b40) +#define S5PV210_GPF3_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b44) +#define S5PV210_GPG0_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b48) +#define S5PV210_GPG1_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b4c) +#define S5PV210_GPG2_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b50) +#define S5PV210_GPG3_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b54) +#define S5PV210_GPJ0_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b58) +#define S5PV210_GPJ1_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b5c) +#define S5PV210_GPJ2_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b60) +#define S5PV210_GPJ3_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b64) +#define S5PV210_GPJ4_INT_FIXPRI (S5PV210_GPIO_BASE + 0x0b68) + + +#define S5PV210_EXT_INT_BASE (S5PV210_GPIO_BASE + 0x0E00) +#define S5PV210_PDNEN (S5PV210_GPIO_BASE + 0x0F80) +#define S5PC100_PDNEN_NORMAL (0 << 0) + +#define S5PV210_PDNEN_CFG_PDNEN (1 << 1) +#define S5PV210_PDNEN_CFG_AUTO (0 << 1) +#define S5PV210_PDNEN_POWERDOWN (1 << 0) +#define S5PV210_PDNEN_NORMAL (0 << 0) + +/* Common part */ +#define S5P_EINT_BASE (S5PV210_EXT_INT_BASE) + + #endif /* __ASM_ARCH_REGS_GPIO_H */ -- 1.6.3.3