diff options
author | Simon Glass <sjg@chromium.org> | 2012-04-02 13:18:50 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-05-15 06:31:37 (GMT) |
commit | d515362d4d6f83be818f71d37a4600041a520ab5 (patch) | |
tree | 30b7c1e6fc2c319377369ba1eebf815fead3dcb3 /arch/arm/include/asm/arch-tegra2/ap20.h | |
parent | f6f767a4040110b400726e9859ea51a7ade10474 (diff) | |
download | u-boot-d515362d4d6f83be818f71d37a4600041a520ab5.tar.xz |
tegra: Add tegra_get_chip_type() to detect SKU
We want to know which type of chip we are running on - the Tegra
family has several SKUs. This can be determined by reading a
fuse register, so add this function to ap20.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/include/asm/arch-tegra2/ap20.h')
-rw-r--r-- | arch/arm/include/asm/arch-tegra2/ap20.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra2/ap20.h b/arch/arm/include/asm/arch-tegra2/ap20.h index a4b4d73..d222c44 100644 --- a/arch/arm/include/asm/arch-tegra2/ap20.h +++ b/arch/arm/include/asm/arch-tegra2/ap20.h @@ -100,3 +100,10 @@ void tegra2_start(void); /* This is the main entry into U-Boot, used by the Cortex-A9 */ extern void _start(void); + +/** + * Works out the SOC type used for clocks settings + * + * @return SOC type - see TEGRA_SOC... + */ +int tegra_get_chip_type(void); |