diff options
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-tegra/ap20.h | 11 | ||||
-rw-r--r-- | arch/arm/include/asm/arch-tegra/tegra.h | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra/ap20.h b/arch/arm/include/asm/arch-tegra/ap20.h index 0bc239977b..6c1e57eea3 100644 --- a/arch/arm/include/asm/arch-tegra/ap20.h +++ b/arch/arm/include/asm/arch-tegra/ap20.h @@ -118,3 +118,14 @@ void ap20_init_pllx(int slow); * @return number of CPUs (1-4) */ int ap20_get_num_cpus(void); + +/** + * Works out the SOC type used for clocks settings + * + * Note that T30 will return TEGRA_SOC_T30 until we have the fdt set up, + * when it may change to TEGRA_SOC_T30_408MHZ depending on what we set PLLP + * to. + * + * @return SOC type - see TEGRA_SOC... + */ +int tegra_get_chip_type(void); diff --git a/arch/arm/include/asm/arch-tegra/tegra.h b/arch/arm/include/asm/arch-tegra/tegra.h index 3820918c04..b7119c00b0 100644 --- a/arch/arm/include/asm/arch-tegra/tegra.h +++ b/arch/arm/include/asm/arch-tegra/tegra.h @@ -89,6 +89,12 @@ enum { SKU_ID_T30 = 0x81, /* TBD use real Cardhu value */ }; +/* + * These are used to distinguish SOC types for setting up clocks. Mostly + * we can tell the clocking required by looking at the SOC sku_id, but + * for T30 it is a user option as to whether to run PLLP in fast or slow + * mode, so we have two options there. + */ enum { TEGRA_SOC_T20, TEGRA_SOC_T25, |