From patchwork Fri Mar 1 15:35:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kejia Hu X-Patchwork-Id: 1050261 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 449v8F1ZcDz9s47 for ; Sat, 2 Mar 2019 02:53:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388782AbfCAPww (ORCPT ); Fri, 1 Mar 2019 10:52:52 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:34221 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388736AbfCAPww (ORCPT ); Fri, 1 Mar 2019 10:52:52 -0500 Received: from [167.98.27.226] (helo=devhw0) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1gzkSw-0001d4-9X; Fri, 01 Mar 2019 15:52:50 +0000 Received: from terry by devhw0 with local (Exim 4.89) (envelope-from ) id 1gzkCL-0003wD-OL; Fri, 01 Mar 2019 15:35:41 +0000 From: Kejia Hu To: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, digetx@gmail.com Cc: Ben Dooks , Kejia Hu Subject: [PATCH v2 2/6] soc/tegra: fuse: add is_automotive for tegra30 Date: Fri, 1 Mar 2019 15:35:36 +0000 Message-Id: <20190301153540.14954-3-kejia.hu@codethink.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190301153540.14954-1-kejia.hu@codethink.co.uk> References: <20190301153540.14954-1-kejia.hu@codethink.co.uk> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Ben Dooks 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 Signed-off-by: Kejia Hu --- drivers/soc/tegra/fuse/fuse-tegra30.c | 4 ++++ 1 file changed, 4 insertions(+) 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