From patchwork Thu Feb 7 12:54:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kejia Hu X-Patchwork-Id: 1038048 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 43wJRP6VCfz9s4V for ; Fri, 8 Feb 2019 00:04:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbfBGND7 (ORCPT ); Thu, 7 Feb 2019 08:03:59 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:33031 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfBGND7 (ORCPT ); Thu, 7 Feb 2019 08:03:59 -0500 Received: from [167.98.27.226] (helo=devhw0) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1grjLR-0008LA-Dw; Thu, 07 Feb 2019 13:03:57 +0000 Received: from terry by devhw0 with local (Exim 4.89) (envelope-from ) id 1grjBx-0002IR-Nu; Thu, 07 Feb 2019 12:54:09 +0000 From: Kejia Hu To: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Ben Dooks , Kejia Hu Subject: [PATCH 2/5] soc/tegra: add is_automotive to sku and for tegra30 Date: Thu, 7 Feb 2019 12:54:05 +0000 Message-Id: <20190207125408.8776-3-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: 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