diff mbox series

[v2,2/6] soc/tegra: fuse: add is_automotive for tegra30

Message ID 20190301153540.14954-3-kejia.hu@codethink.co.uk
State Deferred
Headers show
Series [v2,1/6] soc/tegra: initial tegra-automotive detection | expand

Commit Message

Kejia Hu March 1, 2019, 3:35 p.m. UTC
From: Ben Dooks <ben.dooks@codethink.co.uk>

Add an is_automotive flag to the tegra-sku info, and
add an implementation for the tegra30 from what we
know from all the autotmotive parts we've seen.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Kejia Hu <kejia.hu@codethink.co.uk>
---
 drivers/soc/tegra/fuse/fuse-tegra30.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/drivers/soc/tegra/fuse/fuse-tegra30.c b/drivers/soc/tegra/fuse/fuse-tegra30.c
index 257e254c6137..d92025e486e0 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra30.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra30.c
@@ -106,6 +106,10 @@  static void __init tegra30_fuse_init(struct tegra_fuse *fuse)
 	if (fuse->soc->speedo_init)
 		fuse->soc->speedo_init(&tegra_sku_info);
 
+	if (tegra_sku_info.revision == TEGRA_REVISION_A03 &&
+	    tegra_sku_info.sku_id == 176)
+		tegra_sku_info.is_automotive = true;
+
 	tegra30_fuse_add_randomness();
 }
 #endif