[U-Boot] [PATCH 2/2] beagleboard: enable HUB power on XM boards

Eric Bénard eric at eukrea.com
Sat Jun 11 00:21:53 CEST 2011


LEDA needs to be at level 0 to enable HUB_3V3

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 board/ti/beagle/beagle.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index ab50514..7509916 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -299,7 +299,10 @@ int misc_init_r(void)
 		setenv(expansion_config.env_var, expansion_config.env_setting);
 
 	twl4030_power_init();
-	twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
+	if (get_board_revision() < REVISION_C4)
+		twl4030_led_init(TWL4030_LED_LEDEN_LEDBON); /* Enable HUB PWR */
+	else
+		twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
 
 	/* Configure GPIOs to output */
 	writel(~(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1), &gpio6_base->oe);
-- 
1.7.0.4



More information about the U-Boot mailing list