aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-core.c
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:23 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:11:23 +0000
commit9b77ef558c5d2e122fb65bc6e623a731d0cc1166 (patch)
treec5d488f80a424edbec9842b84ae40ccfbe69db63 /drivers/mfd/glamo/glamo-core.c
parentc509d67ae96b95e73920bd322c5368f3c9470ea2 (diff)
fix-glamo-gpio-resume.patch
Glamo GPIO are not set correctly after resume / reset action. This patch forces them to correct state for GTA02. Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers/mfd/glamo/glamo-core.c')
-rw-r--r--drivers/mfd/glamo/glamo-core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
index 140cd984778..b7184a38c31 100644
--- a/drivers/mfd/glamo/glamo-core.c
+++ b/drivers/mfd/glamo/glamo-core.c
@@ -887,6 +887,11 @@ static struct glamo_script glamo_init_script[] = {
{ GLAMO_REG_MEM_DRAM1, 0xe100 },
{ GLAMO_REG_MEM_DRAM2, 0x01d6 },
{ GLAMO_REG_CLOCK_MEMORY, 0x000b },
+ { GLAMO_REG_GPIO_GEN1, 0x000f },
+ { GLAMO_REG_GPIO_GEN2, 0x111e },
+ { GLAMO_REG_GPIO_GEN3, 0xccc3 },
+ { GLAMO_REG_GPIO_GEN4, 0x111e },
+ { GLAMO_REG_GPIO_GEN5, 0x000f },
};
#if 0
static struct glamo_script glamo_resume_script[] = {