beagleboard: enable HUB power on all variants of the BeagleBoard
authorChristian Spielberger <c.spielberger@bct-electronic.com>
Wed, 24 Aug 2011 22:17:31 +0000 (17:17 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 4 Sep 2011 09:36:22 +0000 (11:36 +0200)
Changes made by Jason Kridner with inputs from Eric Benard to special case xM Rev A and xM Rev B

Relevant discussions:
http://www.mail-archive.com/u-boot@lists.denx.de/msg59361.html
http://www.mail-archive.com/u-boot@lists.denx.de/msg59589.html

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Cc: Eric Benard <eric@eukrea.com>
Cc: Christian Spielberger <c.spielberger@bct-electronic.com>
Cc: Jason Kridner <jdk@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
board/ti/beagle/beagle.c

index 13fe39bd0051dbb3194ecdb99e7a5d059553991e..e07f1b8f8260cc7ea96df6eb5e3c109e25a48a7d 100644 (file)
@@ -332,7 +332,15 @@ 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);
+       switch (get_board_revision()) {
+       case REVISION_XM_A:
+       case REVISION_XM_B:
+               twl4030_led_init(TWL4030_LED_LEDEN_LEDBON);
+               break;
+       default:
+               twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
+               break;
+       }
 
        /* Set GPIO states before they are made outputs */
        writel(GPIO23 | GPIO10 | GPIO8 | GPIO2 | GPIO1,