From patchwork Thu Feb 24 18:05:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 545596 Delivered-To: patch@linaro.org Received: by 2002:ac0:d8d1:0:0:0:0:0 with SMTP id b17csp437774imj; Thu, 24 Feb 2022 10:07:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxq91WPG1R2mvPw2qaYWWX1983awS6pBm4t1Gcyj7EJ3wRWSLMc+xUwbDxOBFoEbbmVLVy8 X-Received: by 2002:a17:906:1e13:b0:6d1:5042:e8c1 with SMTP id g19-20020a1709061e1300b006d15042e8c1mr3280891ejj.354.1645726047678; Thu, 24 Feb 2022 10:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645726047; cv=none; d=google.com; s=arc-20160816; b=rggio2kxdVc8OqtPyMxWlGyOOQnrnp2Mvn6UJL25E3Y6orPae6tmHa9Oow1zY8fhM0 S04ynF+jhVrf0+5HMllZvkJm/TUEFI0c9rVPOiOTF7vVU2AOMcUV3vgJlZZzFfOLJ0FD qVJLn5+fPtuL2vgZR4LuJcd8c9Dn+mHky0nnPEYJ2Y1q0DM8rkeBGLO/vfVQdjmGOo4M LP92yHmfHJ58lvhowPoJA9V98jaFMnygkChTPIgeGfi/E5NDoI47SAc2lb8/1NGLhLPZ Fzjfyhu4/utg+ISrVCHef44ktx/YKJd7StavRJdMSBr9ftyRUcaGDARs9b/BZ/ZiK6X1 NXJA== 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=yqyEj5av+V8ogbF4xRgDw7myihYckdxfh1QMiuc9iPs=; b=tUKrDt7eF5hPWd8W1kwntyMSuhpba2CR1NsG8zcmcRmlbToua0yl971iRLE64lkLKB w9DPvFGex1QS/+4nUTx0jz2TCxgabLmcI0wJhKtSn75NvsOYzKTBMNO5pApQtl+tYw89 cNBTHIB4lo6V4maJuD5BvrdIEfPi2nKHe9dQXxmwueP3pdzf4KSkxMuE31Yh0yQ2QRqW ODUezR0TF7szr6cisXT/r7Bgjsnu59T9IoUIBJUUUTr4JJFX4LqIEhEvkyjPY/87z8s6 u4V3H7DiqMwjO2QCZfpXHoBhS0mm1eNH75mDKy8dB1VKAb3jMQJ3Ydo73i3GnmoPIk3J 6hWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id s8-20020a50dac8000000b00412e72fc6d1si227222edj.178.2022.02.24.10.07.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 10:07:27 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 9769F83CBF; Thu, 24 Feb 2022 19:06:50 +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 7F1E783CE4; Thu, 24 Feb 2022 19:06:38 +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 9176883CB1 for ; Thu, 24 Feb 2022 19:06:31 +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 D8045106F; Thu, 24 Feb 2022 10:06:30 -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 765F73F70D; Thu, 24 Feb 2022 10:06:28 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Mario Six , Sughosh Ganu Subject: [PATCH 06/10] configs: chromebook_coral: Build TPMV1 library routines Date: Thu, 24 Feb 2022 23:35:48 +0530 Message-Id: <20220224180552.26901-7-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. Chromebook Coral is one of the platforms where the TPMV1 code is disabled at build time. With this, calling TPM api's from the TPM uclass driver results in link errors. Enable TPMV1 library routines and determine the TPM version at runtime like other platforms. Signed-off-by: Sughosh Ganu --- configs/chromebook_coral_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/chromebook_coral_defconfig b/configs/chromebook_coral_defconfig index 0cd8f39aa3..4704ce25c8 100644 --- a/configs/chromebook_coral_defconfig +++ b/configs/chromebook_coral_defconfig @@ -104,7 +104,6 @@ CONFIG_SPI=y CONFIG_ICH_SPI=y # CONFIG_SYSINFO_SMBIOS is not set CONFIG_TPL_SYSRESET=y -# CONFIG_TPM_V1 is not set CONFIG_TPM2_CR50_I2C=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_STORAGE=y