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-10-12 10:04:29 -0600
commit54e3f22ba5973b3411c4ec03bc65428a749da1fe (patch)
tree0ef53c7739df7a0f1e2bf0ebdfb0e92ecb368f6e
parent1b9f22dedd34c14d3f236e48c3a5a8e00d74beea (diff)
downloadu-boot-linaro-next-4460.tar.gz
omap4: Enable GPIO-1 clocks before TPS initialization4460
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 008bfd8..3b5b913 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();