Patchwork [U-Boot,v2] beagleboard: enable HUB power on all variants of the BeagleBoard

login
register
mail settings
Submitter Joel Fernandes
Date Aug. 27, 2011, 7:19 p.m.
Message ID <1314472740-19509-1-git-send-email-agnel.joel@gmail.com>
Download mbox | patch
Permalink /patch/111885/
State Accepted
Commit 38a77c3adb3ee559b135217769f5c49f3c8b62c9
Delegated to: Remy Bohmer
Headers show

Comments

Joel Fernandes - Aug. 27, 2011, 7:19 p.m.
From: Christian Spielberger <c.spielberger@bct-electronic.com>

Changes made by Jason Kridner with inputs from Eric Benard to special case xM Rev A and xM Rev B

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>
---
Previous 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

 board/ti/beagle/beagle.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
Kridner, Jason - Aug. 28, 2011, 12:41 a.m.
On Aug 27, 2011, at 12:19 PM, "Joel A Fernandes" <agnel.joel@gmail.com> wrote:

> From: Christian Spielberger <c.spielberger@bct-electronic.com>
> 
> Changes made by Jason Kridner with inputs from Eric Benard to special case xM Rev A and xM Rev B
> 
> 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>

Acked-by: Jason Kridner <jdk@ti.com>

> ---
> Previous 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
> 
> board/ti/beagle/beagle.c |   10 +++++++++-
> 1 files changed, 9 insertions(+), 1 deletions(-)
> 
> diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
> index 13fe39b..e07f1b8 100644
> --- a/board/ti/beagle/beagle.c
> +++ b/board/ti/beagle/beagle.c
> @@ -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,
> -- 
> 1.7.1
>

Patch

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 13fe39b..e07f1b8 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -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,