From c48581ecc0b060e4c1b5fa973d053e81e18f676b Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 3 Jun 2010 19:50:57 +0200 Subject: [PATCH 39/39] OMAP3: beagle: setenv beaglerev for AxBx/Cx/xMA for better bootscripts --- board/ti/beagle/beagle.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index 556e995..cdba3dd 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -221,14 +221,17 @@ int misc_init_r(void) case REVISION_AXBX: printf("Beagle Rev Ax/Bx\n"); setenv("mpurate", "600"); + setenv("beaglerev", "AxBx"); break; case REVISION_CX: printf("Beagle Rev C1/C2/C3\n"); MUX_BEAGLE_C(); setenv("mpurate", "600"); + setenv("beaglerev", "Cx"); break; case REVISION_C4: printf("Beagle Rev C4\n"); + setenv("beaglerev", "Cx"); MUX_BEAGLE_C(); /* Set VAUX2 to 1.8V for EHCI PHY */ twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED, @@ -239,6 +242,7 @@ int misc_init_r(void) break; case REVISION_XM: printf("Beagle xM Rev A\n"); + setenv("beaglerev", "xMA"); MUX_BEAGLE_XM(); /* Set VAUX2 to 1.8V for EHCI PHY */ twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED, -- 1.6.6.1