diff options
author | Thierry Reding <treding@nvidia.com> | 2020-09-17 12:07:45 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-09-18 15:55:22 +0200 |
commit | 775edf7856d81fde852968212cd58fc9a3f8cd7d (patch) | |
tree | f84a697349d98656c767bfd5b2f469ef0a7033e5 /include/soc/tegra | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) | |
download | linux-775edf7856d81fde852968212cd58fc9a3f8cd7d.tar.bz2 |
soc/tegra: fuse: Extract tegra_get_platform()
This function extracts the PRE_SI_PLATFORM field from the HIDREV
register and can be used to determine which platform the kernel runs on
(silicon, simulation, ...). Note that while only Tegra194 and later
define this field, it should be safe to call this on prior generations
as well since this field should read as 0, indicating silicon.
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc/tegra')
-rw-r--r-- | include/soc/tegra/fuse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 1097feca41ed..214908fc5581 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -23,6 +23,7 @@ u32 tegra_read_chipid(void); u8 tegra_get_chip_id(void); +u8 tegra_get_platform(void); enum tegra_revision { TEGRA_REVISION_UNKNOWN = 0, |