From patchwork Mon Feb 28 12:06:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 546691 Delivered-To: patch@linaro.org Received: by 2002:ac0:9f50:0:0:0:0:0 with SMTP id l16csp2675498imf; Mon, 28 Feb 2022 04:08:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwy6hoSY9LhO+KU6mIXkfvwFlIeCdr3P8konPkq85M8tJJ4GlZktiXCWOJ5sadT4F/V7knN X-Received: by 2002:a50:9f64:0:b0:413:2e49:5bc2 with SMTP id b91-20020a509f64000000b004132e495bc2mr19274775edf.47.1646050112331; Mon, 28 Feb 2022 04:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646050112; cv=none; d=google.com; s=arc-20160816; b=Jw9x55t6XYR8MOIO/+Da2wG8xN8ir59srrWjmpeZ+sIlBSdPEjbyncfWtv8py0zQ/d 9/RqVzp+UeNtWvfkOlzyhGl5xeFHns/MXUi8GM1Hz4qXuIJF226NB436EQo+TKvidDcI Or0tezDtsTgP0Vy950rlMpMS5HhCTnAvduv+8F+QEBvtzdBU+dK+QhKp4F9avvEtwnny vatuuSvsZbn7dFd9Rnl7LgVs0H11ZCOBVuaFd+/gX0OJ/oE/dpQTgAC+KRZD/Y9cNnA7 1ATN+X2GUuyo1sREpmwg0fuEV/Gm0GWrcC568kl59wOe9mWUgbDFwypKzGsKkSHpqfW3 8HuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Eh8sQWWU2VP3Zm+ExxJt0xNQPPWs77GEXvnq4K1e91g=; b=gXIgtTRL4BuQrV7TsqVpkZrpUbTDwEBgoHCX7o4zJu1Gf2gHB+PR66epXpwyFnJnkO +ABr+X1qpOiG5HbcQerSFCFdLT2beVbKqg2RL/UxMjH/S42sMyjYBl1olzdh5gvXIvdL +L4ptS0YNfZs6ugJx6Cxtq3eupSRTfZe667vZAoMEo3b4Hu2y93HeutU3K9zNaw4dOi0 7phyLvSoMDhXYvXGt5sCIYL9gk1qT/H7Ywch/gojcerGJL59LpJpF0eYw4BZfMARevN1 7GRu1YfJ1iVZ59pl0J6LrENuqQ2517LvfxrF9t68j7b5h8rj7C9V2fULjtTJC0wiRhv/ uF+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id j18-20020a170906535200b006b27a6cae2bsi5649673ejo.762.2022.02.28.04.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 04:08:32 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 21F9A83CBC; Mon, 28 Feb 2022 13:08:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 6206983C00; Mon, 28 Feb 2022 13:07:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id B72E683B74 for ; Mon, 28 Feb 2022 13:07:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D38AAED1; Mon, 28 Feb 2022 04:07:37 -0800 (PST) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC27D3F73D; Mon, 28 Feb 2022 04:07:35 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Mario Six , Sughosh Ganu Subject: [PATCH v2 05/10] configs: gazerbeam: Build TPMV2 library routines Date: Mon, 28 Feb 2022 17:36:33 +0530 Message-Id: <20220228120638.678137-6-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228120638.678137-1-sughosh.ganu@linaro.org> References: <20220228120638.678137-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The TPM code currently does a runtime detection of the TPM version and calls appropriate functions. Gazerbeam is one of the platforms where the TPMV2 code is disabled at build time. With this, calling TPM api's from the TPM uclass driver results in link errors. Enable TPMV2 library routines and determine the TPM version at runtime like other platforms. Signed-off-by: Sughosh Ganu --- Changes since V1: None configs/gazerbeam_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/gazerbeam_defconfig b/configs/gazerbeam_defconfig index 199afb4d16..b18194aa0f 100644 --- a/configs/gazerbeam_defconfig +++ b/configs/gazerbeam_defconfig @@ -213,7 +213,6 @@ CONFIG_TIMER=y CONFIG_MPC83XX_TIMER=y CONFIG_TPM_ATMEL_TWI=y CONFIG_TPM_AUTH_SESSIONS=y -# CONFIG_TPM_V2 is not set CONFIG_DM_VIDEO=y CONFIG_DISPLAY=y CONFIG_LOGICORE_DP_TX=y