diff options
author | Jimmy Zhang <jimmzhang@nvidia.com> | 2011-06-08 17:59:50 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:39:23 -0700 |
commit | d163e35c341f08091813cae034eb7daf4a583ee2 (patch) | |
tree | 175c94de78ffd4a771ad9e228af7c04576fcbb2d /arch/arm/include | |
parent | a299c32c4b3f4fc7352c9c80a9a5dc7e4e6e5941 (diff) |
Init Pllx based on sku id and OSC freq
This fix sets up cpu clock appropriately according to its sku id and the
external oscillator frequency. Previously, the cpu clock is set to 1.0GHz
with assumed oscillator frequency of 12MHz. On a 26MHz based Kaen board,
current code will cause cpu over clocked. With this fix, the cpu clock
will be set to 1.0GHz and 1.2GHz respectively for t20 and t25 with all
different oscillator frequencies.
BUG=none
TEST=unit test done on t20 and t25. cpu clocks were set as expected.
Change-Id: Ic886854d31602442763a835c46918505fd8d6705
Reviewed-on: http://gerrit.chromium.org/gerrit/2361
Tested-by: Jimmy Zhang <jimmzhang@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-tegra2/tegra2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra2/tegra2.h b/arch/arm/include/asm/arch-tegra2/tegra2.h index 77ecb99c948..dfefa3ce49a 100644 --- a/arch/arm/include/asm/arch-tegra2/tegra2.h +++ b/arch/arm/include/asm/arch-tegra2/tegra2.h @@ -76,5 +76,6 @@ struct timerus { #define TEGRA_SOC_UNKNOWN (-1) #define TEGRA_SOC_T20 (0) #define TEGRA_SOC_T25 (1) +#define TEGRA_SOC_COUNT (2) #endif /* TEGRA2_H */ |