diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2014-02-09 11:07:11 +0100 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2014-02-09 11:07:11 +0100 |
commit | b5bfb7f3df4160aac84f307903ccc80734e462b7 (patch) | |
tree | 788cceb5431ba1e398e39d3b99e992e012ab94bd /u-boot/board/goldelico/gta04/gta04.c | |
parent | 9363726546f326654ab1b0800fdec4b27ee39c44 (diff) | |
download | bootable_bootloader_goldelico_gta04-b5bfb7f3df4160aac84f307903ccc80734e462b7.zip bootable_bootloader_goldelico_gta04-b5bfb7f3df4160aac84f307903ccc80734e462b7.tar.gz bootable_bootloader_goldelico_gta04-b5bfb7f3df4160aac84f307903ccc80734e462b7.tar.bz2 |
added the new device specific devicetree= variable
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Diffstat (limited to 'u-boot/board/goldelico/gta04/gta04.c')
-rw-r--r-- | u-boot/board/goldelico/gta04/gta04.c | 8 |
1 files changed, 6 insertions, 2 deletions
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"); |