diff options
author | Simon Glass <sjg@chromium.org> | 2011-12-19 15:42:00 -0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2011-12-20 17:21:13 -0800 |
commit | 63b3a649ddf4df0bb5b010b0a8d1e3c6c31f85f2 (patch) | |
tree | c8f3114ec9858d8157fa7905ff3dda96a0a4dab3 /arch | |
parent | 4bb9fddcf0c366008c276aee8a08590dc85ea83d (diff) |
tegra: Add debugging to display clocks during init
When DEBUG is enabled, display important clocks during init.
BUG=chromium-os:22938
TEST=build and boot on Kaen
Change-Id: Ic27e7d79bdcd9cf44d94ec25c52fc8776ddc7d04
Reviewed-on: https://gerrit.chromium.org/gerrit/13205
Commit-Ready: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/tegra-common/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/tegra-common/board.c b/arch/arm/cpu/armv7/tegra-common/board.c index e40da9af9b1..df79d95716f 100644 --- a/arch/arm/cpu/armv7/tegra-common/board.c +++ b/arch/arm/cpu/armv7/tegra-common/board.c @@ -95,4 +95,7 @@ int arch_cpu_init(void) void arch_full_speed(void) { ap20_init_pllx(0); + debug("CPU at %d\n", clock_get_rate(CLOCK_ID_XCPU)); + debug("Memory at %d\n", clock_get_rate(CLOCK_ID_MEMORY)); + debug("Periph at %d\n", clock_get_rate(CLOCK_ID_PERIPH)); } |