diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-11 03:52:41 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-07-17 07:36:41 -0400 |
commit | 304664eab93f9e95a8d28fbd9702ede88bb10cc5 (patch) | |
tree | 9ce11babe79ed88006a40ad994ef30e2f1a55d14 /include/soc | |
parent | a0524acc94c91c72c2968a76eddc6f3afe82f9f2 (diff) |
ARM: tegra: Use a function to get the chip ID
Instead of using a simple variable access to get at the Tegra chip ID,
use a function so that we can run additional code. This can be used to
determine where the chip ID is being accessed without being available.
That in turn will be handy for resolving boot sequence dependencies in
order to convert more code to regular initcalls rather than a sequence
fixed by Tegra SoC setup code.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/tegra/fuse.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 85f555c89ad5..0e03f104fbf8 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h | |||
@@ -17,6 +17,16 @@ | |||
17 | #ifndef __SOC_TEGRA_FUSE_H__ | 17 | #ifndef __SOC_TEGRA_FUSE_H__ |
18 | #define __SOC_TEGRA_FUSE_H__ | 18 | #define __SOC_TEGRA_FUSE_H__ |
19 | 19 | ||
20 | #define TEGRA20 0x20 | ||
21 | #define TEGRA30 0x30 | ||
22 | #define TEGRA114 0x35 | ||
23 | #define TEGRA124 0x40 | ||
24 | |||
25 | #ifndef __ASSEMBLY__ | ||
26 | |||
20 | u32 tegra_read_chipid(void); | 27 | u32 tegra_read_chipid(void); |
28 | u8 tegra_get_chip_id(void); | ||
29 | |||
30 | #endif /* __ASSEMBLY__ */ | ||
21 | 31 | ||
22 | #endif /* __SOC_TEGRA_FUSE_H__ */ | 32 | #endif /* __SOC_TEGRA_FUSE_H__ */ |