From patchwork Thu Feb 24 18:05:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 545595 Delivered-To: patch@linaro.org Received: by 2002:ac0:d8d1:0:0:0:0:0 with SMTP id b17csp437666imj; Thu, 24 Feb 2022 10:07:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeVa8InD7nl7a332JQVqZPytf4HQtqTrLmUdvNvr2wywPJAbXFHxV1j/8Jql9m4gwKKOSp X-Received: by 2002:a50:ef09:0:b0:412:e8d5:5c9d with SMTP id m9-20020a50ef09000000b00412e8d55c9dmr3472095eds.57.1645726041515; Thu, 24 Feb 2022 10:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645726041; cv=none; d=google.com; s=arc-20160816; b=unLddzySWYI3NylXMlfsVRTDX5Y31pbTDFhg29/51jtUAGFCIN+F0AjI0a0QFOehk+ m14vbDLjoe5gCD3r2cV24cS2IBRCHW2onMbVBvnQ31d+wUBuyFHMNBbJ+YSQdDNKW3ui Hkdimjq6Bcqp5a9GPb/1qEcunXbCa7U+sZzkq2N6mj9c0mPJKbOvbwPUIibRNQdfqo53 yJruHcI7GPcwuwRS+z3Ik91anH6zQtsH7dJPmG9bpVMdIGA0ekyqEP2C9acXUfFCV+qU DG4IMZ59RejkaqtdMuNJcSbpePtw5AhKk140AFQohBhjd0YCwq7kVKLNl1X/ejNrAYaT Grkg== 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:references:in-reply-to :message-id:date:subject:cc:to:from; bh=TuGc8kqZDtMYiAHwbIfIhCwYyEJG74tkpuaWRP0FLwE=; b=t3w03pzDqWKujouhImt73HDt0ni0hkLSU4p80EyjtlEtq5tt9EuOtWZ2kFeLClnImZ 2EgQP3KwRLO9zHUuylMySnudJAcjvYQP8soH4TlbKRGYy0ZKCMRnQ8CFFTXjagGrulv5 MKS7tq6LCVtm28JT7hYJ+r61q4/r1HyQbxxJ/DKYoK727hK7sB0Ie6x8ll70ioWVZyIr +0ryMa1s7tI20xPGUSzkztReCvxj8p6YXqUQAbX01OUDAEA5mBewvAR2UbjUZqgiikXl JIL41fYIKNP+OHykKjn/W691Kir+935cBsvUkOoe6PQFlVngG2ZINMoHYAVlRd9Qs4jr nrzw== 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 f18-20020a50a6d2000000b0040aa9eefc2dsi175579edc.310.2022.02.24.10.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 10:07:21 -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 9C7BE83CE1; Thu, 24 Feb 2022 19:06:45 +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 51BED83CE0; Thu, 24 Feb 2022 19:06:34 +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 AA4EC83CE1 for ; Thu, 24 Feb 2022 19:06:28 +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 DCC9F106F; Thu, 24 Feb 2022 10:06:27 -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 7B3F33F70D; Thu, 24 Feb 2022 10:06:25 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Mario Six , Sughosh Ganu Subject: [PATCH 05/10] configs: gazerbeam: Build TPMV2 library routines Date: Thu, 24 Feb 2022 23:35:47 +0530 Message-Id: <20220224180552.26901-6-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220224180552.26901-1-sughosh.ganu@linaro.org> References: <20220224180552.26901-1-sughosh.ganu@linaro.org> 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 --- configs/gazerbeam_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/gazerbeam_defconfig b/configs/gazerbeam_defconfig index 5d8d1998d6..505cd49843 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