[4/5] soc/tegra: add is_automotive for tegra20

Message ID 20190207125408.8776-5-kejia.hu@codethink.co.uk
State New
Headers show
Series
  • [1/5] soc/tegra: initial tegra-automotive detection
Related show

Commit Message

Kejia Hu Feb. 7, 2019, 12:54 p.m.
From: Thomas Preston <thomas.preston@codethink.co.uk>

Add an is_automotive implementation for tegra20.

Signed-off-by: Thomas Preston <thomas.preston@codethink.co.uk>
---
 drivers/soc/tegra/fuse/fuse-tegra20.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/drivers/soc/tegra/fuse/fuse-tegra20.c b/drivers/soc/tegra/fuse/fuse-tegra20.c
index 49ff017f3ded..0184c9f62f80 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra20.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra20.c
@@ -167,6 +167,11 @@  static void __init tegra20_fuse_init(struct tegra_fuse *fuse)
 
 	tegra_init_revision();
 	fuse->soc->speedo_init(&tegra_sku_info);
+
+	if (tegra_sku_info.revision == TEGRA_REVISION_A04 &&
+			tegra_sku_info.sku_id == 44)
+		tegra_sku_info.is_automotive = true;
+
 	tegra20_fuse_add_randomness();
 }