summaryrefslogtreecommitdiffstats
path: root/include/soc/tegra/fuse.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2020-09-17 12:07:46 +0200
committerThierry Reding <treding@nvidia.com>2020-09-18 15:55:26 +0200
commit52e6d399a41da68125ec107f5f5f688a74ab7ac4 (patch)
treec4cb3e66270fc65b90d1fcd3dfa265aa268e4b78 /include/soc/tegra/fuse.h
parentsoc/tegra: fuse: Extract tegra_get_platform() (diff)
downloadlinux-52e6d399a41da68125ec107f5f5f688a74ab7ac4.tar.xz
linux-52e6d399a41da68125ec107f5f5f688a74ab7ac4.zip
soc/tegra: fuse: Implement tegra_is_silicon()
This function can be used by drivers to determine whether code is running on silicon or on a simulation platform. Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc/tegra/fuse.h')
-rw-r--r--include/soc/tegra/fuse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h
index 214908fc5581..a9db917a1d06 100644
--- a/include/soc/tegra/fuse.h
+++ b/include/soc/tegra/fuse.h
@@ -24,6 +24,7 @@
u32 tegra_read_chipid(void);
u8 tegra_get_chip_id(void);
u8 tegra_get_platform(void);
+bool tegra_is_silicon(void);
enum tegra_revision {
TEGRA_REVISION_UNKNOWN = 0,