From patchwork Mon Feb 28 12:06:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 546693 Delivered-To: patch@linaro.org Received: by 2002:ac0:9f50:0:0:0:0:0 with SMTP id l16csp2675823imf; Mon, 28 Feb 2022 04:08:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGpko2YhB77I9xdkcCfU0CNFjeD/TmsHSVJFU0a+/1WGf93GtBK66GEZDrK4UoFxZA1ED+ X-Received: by 2002:a17:906:18b2:b0:6d0:ee54:1add with SMTP id c18-20020a17090618b200b006d0ee541addmr15037414ejf.499.1646050134290; Mon, 28 Feb 2022 04:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646050134; cv=none; d=google.com; s=arc-20160816; b=pZjEZAiPH00y4OCCxH7Y5BAmL9RkLbQTjsJb8veRHN7thKurVGWLU5OIuYZuSjL3GF eCG315C6hqEiWXTv8uQU5Hvz4Xid8kB5clFKgDJ9PCGwJDWm+/R2TupsEyIJYj3qeH5E N7tWnYwKLfRIykpg51L1z85j/N22FMaU1QZLpU9oSnsrZ7ec2C+kYZnM1BDhGxK1gfNV xZRDfNViIgetRE6zjaC9GZefSl+LdjIthkyzMj6y7HQL74AfgLPgbtCfYHfptHce4JWe oWwXQoyfPWdKRM16iweCM+NTRkuJo8tn94cyuum3LT96WjKtEnmOatBVIQ5CofRacUWF vpWQ== 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=1kWL7I/TGJOHSEtlW/v8vqkEQG7OoUsEJfvP2qFycSo=; b=X5Zv30PDgTDtUPVCrpAbLzdTvCOjaVrJQ0YgwKHP9F6MwcN50C1tVQ9FM4dGiZMg+9 tw6RbrGlqNUfZPm8fwcgW5LL4NzFscEzVkbUdJ11I9lw60/0jdp4yZ+C15IuDxP3fwIz QpK2F7q3UBp8MBcqg0UNhOSGwylnkbPMN/2G01bsPOopMR5o0dVEJ0D92R+i0MeXa6EV iwGq+mEEBjBcMfzEToD4RBSqJaNOpYN9b0Fa7aOK9xpeTlPK2oZsOLQGG04dqNvbe+rZ pvYF9JLhKRG6Cm8SMURejBkqRe9ZdqqeKFJqYalQzlNgkqehSShhoVQ49lzjcxufn+O4 B28w== 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 f7-20020a50a6c7000000b0041357fadae3si6929042edc.367.2022.02.28.04.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 04:08:54 -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 4C37283C29; Mon, 28 Feb 2022 13:08: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 E449C83BDE; Mon, 28 Feb 2022 13:07:49 +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 BB2B183BDE for ; Mon, 28 Feb 2022 13:07:40 +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 31F79ED1; Mon, 28 Feb 2022 04:07:40 -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 4D1AF3F73D; Mon, 28 Feb 2022 04:07:38 -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 06/10] configs: chromebook_coral: Build TPMV1 library routines Date: Mon, 28 Feb 2022 17:36:34 +0530 Message-Id: <20220228120638.678137-7-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. 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 --- Changes since V1: None 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