aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Salveti de Araujo <ricardo.salveti@linaro.org>2011-09-23 05:42:19 -0300
committerJohn Rigby <john.rigby@linaro.org>2011-09-23 07:10:44 -0600
commit64389e6a7857d251e124f951ad61404635fa1287 (patch)
treecddf49822f9735613de961bfd2e7e416a858075c
parent69773ad5a2b80761e51f9ccc8966f6ac5d0434df (diff)
downloadu-boot-linaro-stable-64389e6a7857d251e124f951ad61404635fa1287.tar.gz
omap4: Enable GPIO-1 clocks before TPS initialization
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
-rw-r--r--arch/arm/cpu/armv7/omap4/clocks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap4/clocks.c b/arch/arm/cpu/armv7/omap4/clocks.c
index 008bfd8b5..3b5b9134d 100644
--- a/arch/arm/cpu/armv7/omap4/clocks.c
+++ b/arch/arm/cpu/armv7/omap4/clocks.c
@@ -940,6 +940,12 @@ void prcm_init(void)
{
switch (omap4_hw_init_context()) {
case OMAP_INIT_CONTEXT_SPL:
+ if (omap_revision() >= OMAP4460_ES1_0) {
+ /* GPIO-1 clock needs to be enable before TPS init */
+ sr32(&prcm->cm_wkup_gpio1_clkctrl, 0, 32, 0x1);
+ wait_on_value((1 << 17)|(1 << 16), 0,
+ &prcm->cm_wkup_gpio1_clkctrl, LDELAY);
+ }
case OMAP_INIT_CONTEXT_UBOOT_FROM_NOR:
case OMAP_INIT_CONTEXT_UBOOT_AFTER_CH:
enable_basic_clocks();