Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137524
b: refs/heads/master
c: e383707
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks committed Mar 10, 2009
1 parent 51b9860 commit 0d92d3a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 333053733f52fa8c8e44c621b7b17fe5df215d4a
refs/heads/master: e383707131910337afadfc202c58a70361a9ea7c
27 changes: 27 additions & 0 deletions trunk/arch/arm/plat-s3c64xx/include/plat/regs-gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#define S3C64XX_GPP_BASE S3C64XX_GPIOREG(0x0160)
#define S3C64XX_GPQ_BASE S3C64XX_GPIOREG(0x0180)

/* SPCON */

#define S3C64XX_SPCON S3C64XX_GPIOREG(0x1A0)

/* External interrupt registers */

#define S3C64XX_EINT12CON S3C64XX_GPIOREG(0x200)
Expand Down Expand Up @@ -75,5 +79,28 @@
#define S3C64XX_EINT0MASK S3C64XX_GPIOREG(0x920)
#define S3C64XX_EINT0PEND S3C64XX_GPIOREG(0x924)

/* GPIO sleep configuration */

#define S3C64XX_SPCONSLP S3C64XX_GPIOREG(0x880)

#define S3C64XX_SPCONSLP_TDO_PULLDOWN (1 << 14)
#define S3C64XX_SPCONSLP_CKE1INIT (1 << 5)

#define S3C64XX_SPCONSLP_RSTOUT_MASK (0x3 << 12)
#define S3C64XX_SPCONSLP_RSTOUT_OUT0 (0x0 << 12)
#define S3C64XX_SPCONSLP_RSTOUT_OUT1 (0x1 << 12)
#define S3C64XX_SPCONSLP_RSTOUT_HIZ (0x2 << 12)

#define S3C64XX_SPCONSLP_KPCOL_MASK (0x3 << 0)
#define S3C64XX_SPCONSLP_KPCOL_OUT0 (0x0 << 0)
#define S3C64XX_SPCONSLP_KPCOL_OUT1 (0x1 << 0)
#define S3C64XX_SPCONSLP_KPCOL_INP (0x2 << 0)


#define S3C64XX_SLPEN S3C64XX_GPIOREG(0x930)

#define S3C64XX_SLPEN_USE_xSLP (1 << 0)
#define S3C64XX_SLPEN_CFG_BYSLPEN (1 << 1)

#endif /* __ASM_PLAT_S3C64XX_REGS_GPIO_H */

0 comments on commit 0d92d3a

Please sign in to comment.