From patchwork Thu Feb 7 12:54:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kejia Hu X-Patchwork-Id: 1038047 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 43wJRP1CWxz9s9G for ; Fri, 8 Feb 2019 00:04:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727070AbfBGND7 (ORCPT ); Thu, 7 Feb 2019 08:03:59 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:33024 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbfBGND6 (ORCPT ); Thu, 7 Feb 2019 08:03:58 -0500 Received: from [167.98.27.226] (helo=devhw0) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1grjLR-0008L6-1D; Thu, 07 Feb 2019 13:03:57 +0000 Received: from terry by devhw0 with local (Exim 4.89) (envelope-from ) id 1grjBx-0002IV-UW; Thu, 07 Feb 2019 12:54:09 +0000 From: Kejia Hu To: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Thomas Preston Subject: [PATCH 4/5] soc/tegra: add is_automotive for tegra20 Date: Thu, 7 Feb 2019 12:54:07 +0000 Message-Id: <20190207125408.8776-5-kejia.hu@codethink.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190207125408.8776-1-kejia.hu@codethink.co.uk> References: <20190207125408.8776-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(); }