summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-07-25 11:20:24 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2012-07-25 11:20:24 +0200
commit81bf139de7e98f87bfa0c9f1b0dc08a3fd4ca393 (patch)
tree918af7127b94937cb63af6faece96dce91f760f5
parent8cc820a59fb315feef790a94150e16ba33303aae (diff)
downloadbootable_bootloader_goldelico_gta04-81bf139de7e98f87bfa0c9f1b0dc08a3fd4ca393.zip
bootable_bootloader_goldelico_gta04-81bf139de7e98f87bfa0c9f1b0dc08a3fd4ca393.tar.gz
bootable_bootloader_goldelico_gta04-81bf139de7e98f87bfa0c9f1b0dc08a3fd4ca393.tar.bz2
added 800MHz/1GHz detection for DM3730
-rw-r--r--u-boot/arch/arm/cpu/armv7/omap3/sys_info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/u-boot/arch/arm/cpu/armv7/omap3/sys_info.c b/u-boot/arch/arm/cpu/armv7/omap3/sys_info.c
index 549ac19..ba5b528 100644
--- a/u-boot/arch/arm/cpu/armv7/omap3/sys_info.c
+++ b/u-boot/arch/arm/cpu/armv7/omap3/sys_info.c
@@ -319,7 +319,10 @@ int print_cpuinfo (void)
cpu_s = "36XX/37XX";
break;
}
- max_clk = "1 Ghz";
+ if(readw(0x4800244C) & (1<<9)) /* check the "Speed Binned" bit for AM/DM37xx */
+ max_clk = "1 Ghz";
+ else
+ max_clk = "800 Mhz";
break;
default:
cpu_family_s = "OMAP";