diff options
author | Simon Glass <sjg@chromium.org> | 2011-10-03 13:21:11 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-10-06 19:24:30 -0700 |
commit | 5605de2e1851d005c226643af2040bffca9c6c39 (patch) | |
tree | 8453e0a549f447ef76307c888b901d0703230b97 /arch/arm/include/asm/arch-tegra/ap20.h | |
parent | 4a4703b398df9a3e5d29623e5e3dcf1d99336ebc (diff) |
tegra: Detect the number of CPUs
This adds ap20_get_num_cpus() which returns the number of CPUs in the
system, and adjusts a clock function to use it.
BUG=chromium-os:19004
TEST=build and boot on Seaboard
Change-Id: If7b56a2cecfb3d856308cac43dfcb32d3f1fef14
Reviewed-on: http://gerrit.chromium.org/gerrit/8688
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/arch-tegra/ap20.h')
-rw-r--r-- | arch/arm/include/asm/arch-tegra/ap20.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra/ap20.h b/arch/arm/include/asm/arch-tegra/ap20.h index 4f7d7ce714..d2251a2902 100644 --- a/arch/arm/include/asm/arch-tegra/ap20.h +++ b/arch/arm/include/asm/arch-tegra/ap20.h @@ -110,3 +110,10 @@ int ap20_cpu_is_cortexa9(void); * @param slow 1 to run in safe/slow mode, 0 to run at full speed */ void ap20_init_pllx(int slow); + +/** + * Returns the number of CPUs supported by the SOC + * + * @return number of CPUs (1-4) + */ +int ap20_get_num_cpus(void); |