aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@linaro.org>2015-03-04 14:04:15 -0600
committerRob Herring <robh@kernel.org>2015-04-07 16:14:26 -0500
commit26fc673a510322c3703d8c8319b49acbb4140804 (patch)
treedcd5ea72c5dbcc1807870a81ac4978ed115b2e22
parent163a5c261ef9dade49099db0d6d63799fb765bc4 (diff)
arm: pxa1928_ara: Drive GPI0120/BG_POWER_EN_D high
Force enable AP bridge regulators by driving GPIO120 high. Evidently just pulling either BG_POWER_EN_D or VCHG_DET high is not enough to assert BG_POWER_EN. The BDB WAKE/DETECT signal doesn't seem to work either. Change-Id: I31418b1721c6ba5ccf43a16a8303f9f371a28616 Signed-off-by: Rob Herring <rob.herring@linaro.org>
-rw-r--r--arch/arm/include/asm/arch-pxa1928/mfp.h1
-rw-r--r--board/Marvell/pxa1928_ara/pxa1928_ara.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-pxa1928/mfp.h b/arch/arm/include/asm/arch-pxa1928/mfp.h
index 9288e531db..4c0092fe40 100644
--- a/arch/arm/include/asm/arch-pxa1928/mfp.h
+++ b/arch/arm/include/asm/arch-pxa1928/mfp.h
@@ -168,6 +168,7 @@
#define GPIO54_MFP54 (MFP_REG(0x1C8) | MFP_AF0 | MFP_DRIVE_SLOW)
#define GPIO118_MFP118 (MFP_REG(0x1E8) | MFP_AF0 | MFP_PULL_HIGH)
+#define GPIO120_MFP120 (MFP_REG(0x1F0) | MFP_AF0 | MFP_DRIVE_SLOW | MFP_PULL_HIGH)
/* GPIO 136::138 */
#define GPIO136_MFP136 (MFP_REG(0x4) | MFP_AF1 | MFP_DRIVE_SLOW)
diff --git a/board/Marvell/pxa1928_ara/pxa1928_ara.c b/board/Marvell/pxa1928_ara/pxa1928_ara.c
index 282ee44ae1..26dbb5fd01 100644
--- a/board/Marvell/pxa1928_ara/pxa1928_ara.c
+++ b/board/Marvell/pxa1928_ara/pxa1928_ara.c
@@ -100,10 +100,16 @@ int board_early_init_f(void)
GPIO15_MFP15,
/* 2A Charge enable */
GPIO118_MFP118,
+ /* BG_POWER_EN */
+ GPIO120_MFP120,
/*End of configureation*/
MFP_EOC
};
mfp_config(mfp_cfg);
+
+ /* Need to drive GPIO120 high to assert BG_POWER_EN */
+ gpio_direction_output(120,1);
+
return 0;
}