diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-12-11 19:24:17 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-03-10 12:30:27 -0400 |
commit | e383707131910337afadfc202c58a70361a9ea7c (patch) | |
tree | 5f08ff6d9c483da96d41e54c3e3c930fce38b4f1 | |
parent | 333053733f52fa8c8e44c621b7b17fe5df215d4a (diff) |
[ARM] S3C64XX: Add GPIO SPCONSLP and SLPEN register definitions
Add GPIO register definitions for SPCONSLP and SLPEN
for controlling the state of the pins over sleep.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r-- | arch/arm/plat-s3c64xx/include/plat/regs-gpio.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-gpio.h b/arch/arm/plat-s3c64xx/include/plat/regs-gpio.h index 51a84cd6320e..d45d66b8c2fa 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-gpio.h +++ b/arch/arm/plat-s3c64xx/include/plat/regs-gpio.h | |||
@@ -33,6 +33,10 @@ | |||
33 | #define S3C64XX_GPP_BASE S3C64XX_GPIOREG(0x0160) | 33 | #define S3C64XX_GPP_BASE S3C64XX_GPIOREG(0x0160) |
34 | #define S3C64XX_GPQ_BASE S3C64XX_GPIOREG(0x0180) | 34 | #define S3C64XX_GPQ_BASE S3C64XX_GPIOREG(0x0180) |
35 | 35 | ||
36 | /* SPCON */ | ||
37 | |||
38 | #define S3C64XX_SPCON S3C64XX_GPIOREG(0x1A0) | ||
39 | |||
36 | /* External interrupt registers */ | 40 | /* External interrupt registers */ |
37 | 41 | ||
38 | #define S3C64XX_EINT12CON S3C64XX_GPIOREG(0x200) | 42 | #define S3C64XX_EINT12CON S3C64XX_GPIOREG(0x200) |
@@ -75,5 +79,28 @@ | |||
75 | #define S3C64XX_EINT0MASK S3C64XX_GPIOREG(0x920) | 79 | #define S3C64XX_EINT0MASK S3C64XX_GPIOREG(0x920) |
76 | #define S3C64XX_EINT0PEND S3C64XX_GPIOREG(0x924) | 80 | #define S3C64XX_EINT0PEND S3C64XX_GPIOREG(0x924) |
77 | 81 | ||
82 | /* GPIO sleep configuration */ | ||
83 | |||
84 | #define S3C64XX_SPCONSLP S3C64XX_GPIOREG(0x880) | ||
85 | |||
86 | #define S3C64XX_SPCONSLP_TDO_PULLDOWN (1 << 14) | ||
87 | #define S3C64XX_SPCONSLP_CKE1INIT (1 << 5) | ||
88 | |||
89 | #define S3C64XX_SPCONSLP_RSTOUT_MASK (0x3 << 12) | ||
90 | #define S3C64XX_SPCONSLP_RSTOUT_OUT0 (0x0 << 12) | ||
91 | #define S3C64XX_SPCONSLP_RSTOUT_OUT1 (0x1 << 12) | ||
92 | #define S3C64XX_SPCONSLP_RSTOUT_HIZ (0x2 << 12) | ||
93 | |||
94 | #define S3C64XX_SPCONSLP_KPCOL_MASK (0x3 << 0) | ||
95 | #define S3C64XX_SPCONSLP_KPCOL_OUT0 (0x0 << 0) | ||
96 | #define S3C64XX_SPCONSLP_KPCOL_OUT1 (0x1 << 0) | ||
97 | #define S3C64XX_SPCONSLP_KPCOL_INP (0x2 << 0) | ||
98 | |||
99 | |||
100 | #define S3C64XX_SLPEN S3C64XX_GPIOREG(0x930) | ||
101 | |||
102 | #define S3C64XX_SLPEN_USE_xSLP (1 << 0) | ||
103 | #define S3C64XX_SLPEN_CFG_BYSLPEN (1 << 1) | ||
104 | |||
78 | #endif /* __ASM_PLAT_S3C64XX_REGS_GPIO_H */ | 105 | #endif /* __ASM_PLAT_S3C64XX_REGS_GPIO_H */ |
79 | 106 | ||