From patchwork Fri Mar 1 15:35:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kejia Hu X-Patchwork-Id: 1050260 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 449v8D3X7lz9s70 for ; Sat, 2 Mar 2019 02:53:00 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388785AbfCAPwx (ORCPT ); Fri, 1 Mar 2019 10:52:53 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:34228 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387538AbfCAPww (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-0001d8-PA; Fri, 01 Mar 2019 15:52:50 +0000 Received: from terry by devhw0 with local (Exim 4.89) (envelope-from ) id 1gzkCL-0003wF-R4; 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: Thomas Preston Subject: [PATCH v2 3/6] soc/tegra: fuse: Add is_automotive for tegra20 Date: Fri, 1 Mar 2019 15:35:37 +0000 Message-Id: <20190301153540.14954-4-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: Thomas Preston Add an is_automotive implementation for tegra20. Signed-off-by: Thomas Preston --- drivers/soc/tegra/fuse/fuse-tegra20.c | 5 +++++ 1 file changed, 5 insertions(+) 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(); }