summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-01 09:46:04 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-01 09:46:04 +0000
commit0dfca05fbedad2e31da249f16a035f5117463fbb (patch)
tree38c2d2d4e1f89a93fb3c0bd974a055f5308f93e0 /target/linux/ar71xx
parentf42bf4d6cfcde855cb92c19484a48af5ed33d155 (diff)
downloadmtk-20170518-0dfca05fbedad2e31da249f16a035f5117463fbb.zip
mtk-20170518-0dfca05fbedad2e31da249f16a035f5117463fbb.tar.gz
mtk-20170518-0dfca05fbedad2e31da249f16a035f5117463fbb.tar.bz2
print some informations about the SoC at bootup
SVN-Revision: 14338
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/setup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
index 25ef3de..a83f7d1 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
@@ -258,6 +258,13 @@ void __init plat_mem_setup(void)
ar71xx_detect_sys_type();
detect_sys_frequency();
+ printk(KERN_INFO
+ "%s, CPU:%u.%03u MHz, AHB:%u.%03u MHz, DDR:%u.%03u MHz\n",
+ ar71xx_sys_type,
+ ar71xx_cpu_freq / 1000000, (ar71xx_cpu_freq / 1000) % 1000,
+ ar71xx_ahb_freq / 1000000, (ar71xx_ahb_freq / 1000) % 1000,
+ ar71xx_ddr_freq / 1000000, (ar71xx_ddr_freq / 1000) % 1000);
+
_machine_restart = ar71xx_restart;
_machine_halt = ar71xx_halt;
pm_power_off = ar71xx_halt;