summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-06-24 14:02:50 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:36 -0700
commitccef09b77676858d87b62ec57a6691719d552df4 (patch)
tree5ce578f7131cf347f45e38e448e714ce2d217897
parentf261d509004e3f7206378a9ce5b5bff9eadd0ef9 (diff)
Display oscillator setting at boot when debugging
Now that we have boards with differen oscillator settings it makes sense to display this value also. BUG=chromium-os:11623 TEST=build and observe new output: TEGRA2 Board: Google Aebl DRAM: 1 GiB Osc = 26000000 PLLM = 760000000 PLLP = 216000000 Change-Id: I0302f8f5bf47c95243e9b1c7e7ad474fb9bb55a1 Reviewed-on: http://gerrit.chromium.org/gerrit/3251 Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anton Staaf <robotboy@chromium.org>
-rw-r--r--arch/arm/cpu/armv7/tegra2/clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/tegra2/clock.c b/arch/arm/cpu/armv7/tegra2/clock.c
index fba6234f57..f499d63ab7 100644
--- a/arch/arm/cpu/armv7/tegra2/clock.c
+++ b/arch/arm/cpu/armv7/tegra2/clock.c
@@ -873,6 +873,7 @@ void clock_init(void)
pll_rate[CLOCK_ID_PERIPH] = clock_get_rate(CLOCK_ID_PERIPH);
pll_rate[CLOCK_ID_OSC] = clock_get_rate(CLOCK_ID_OSC);
pll_rate[CLOCK_ID_SFROM32KHZ] = 32768;
+ debug("Osc = %d\n", pll_rate[CLOCK_ID_OSC]);
debug("PLLM = %d\n", pll_rate[CLOCK_ID_MEMORY]);
debug("PLLP = %d\n", pll_rate[CLOCK_ID_PERIPH]);
}