From b5bfb7f3df4160aac84f307903ccc80734e462b7 Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Sun, 9 Feb 2014 11:07:11 +0100 Subject: added the new device specific devicetree= variable Signed-off-by: H. Nikolaus Schaller --- u-boot/board/goldelico/gta04/gta04.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'u-boot/board/goldelico/gta04/gta04.c') diff --git a/u-boot/board/goldelico/gta04/gta04.c b/u-boot/board/goldelico/gta04/gta04.c index 8a394f8..dc83990 100644 --- a/u-boot/board/goldelico/gta04/gta04.c +++ b/u-boot/board/goldelico/gta04/gta04.c @@ -44,6 +44,7 @@ #include "gta04.h" char *muxname="unknown"; +char *devicetree="unknown"; #if 0 /* testing tool; you can call notify() anywhere even before initialization to see how far the code comes */ @@ -155,7 +156,8 @@ int misc_init_r(void) #endif setenv("mux", muxname); - + setenv("devicetree", devicetree); + switch (get_cpu_family()) { case CPU_OMAP34XX: if ((get_cpu_rev() >= CPU_3XX_ES31) && @@ -165,7 +167,9 @@ int misc_init_r(void) setenv("mpurate", "600"); break; case CPU_OMAP36XX: - if(readw(0x4800244C) & (1<<9)) /* check the "Speed Binned" bit for AM/DM37xx */ + /* check the "Speed Binned" bit for AM/DM37xx + in the Control Device Status Register */ + if(readw(0x4800244C) & (1<<9)) setenv("mpurate", "1000"); else setenv("mpurate", "800"); -- cgit v1.1