From patchwork Sun Feb 12 23:15:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1741242 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=mMUUC0u/; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PFP111f98z23r9 for ; Mon, 13 Feb 2023 10:33:25 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3EAE859A8; Mon, 13 Feb 2023 00:26:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="mMUUC0u/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7B54C8583E; Mon, 13 Feb 2023 00:22:45 +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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DC28985822 for ; Mon, 13 Feb 2023 00:18:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd34.google.com with SMTP id o1so3942883ioo.10 for ; Sun, 12 Feb 2023 15:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2AUUrPb++/vsUkWGMqFFt1Rso26ImNw7rcbC4PRnPIg=; b=mMUUC0u/I3tkZJFwJ8ueWam5ySyzFxx8od2lGaAUJFOMjTdp7fXqlgFNw4FGmyGHJX XAytbjn7EuSuR5gM2GCwR6JEANsLv2/dlJJDc0bjpUoiUz5AVsIrumF2IhO1XONsS9kl ejdYt9dt2vPMm6Lxr50hLgmqCsiO5g7QMkb/M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2AUUrPb++/vsUkWGMqFFt1Rso26ImNw7rcbC4PRnPIg=; b=FEvd6B6khoZiKqZiPg78WxB6YZZczaJ27k0IAQTH+daPDH6WrvijlNWYmSx5y5gPr+ 2eKyyBTwX97tA1FG8IpzIyYC47Wg1YPMiHLxxxRa7eeUC2n6yI2186eIUDe6DWgIZj5H 7G6bwhyyC7VQSnQ7qYnhTsMg3pqbtM7vnyuu6ldD+zZ65QA92B8iyCGRF9/uKptbWVIy g9eYCwlA0nebK3ZRspzB2yxcajJm4Jtmpy2fzdSbtrFhc6mOzSkyaV4l582fIkkbu5Us n7jKb1cGeZJ8FVOMPejeNcIV5/frbOFhm513T2/G5kYVOK+T0jZzc3LVydtWS40sZjMZ s8XA== X-Gm-Message-State: AO0yUKXH+zOd50WmwhhyyOt7g8YoQgSKDu8dI4W2Aa2I33WLLiZ3Pk6j JJWsqc+NaKqpp0geP9/mQBALwSYSmyWJWPZd X-Google-Smtp-Source: AK7set/ct8QuEfnWvz0kdUMcs4MV6/mrIXLS17sCynM7O/GZbPN+iDGcCpsI/+TgiVGsw+ozXrtCLw== X-Received: by 2002:a6b:cdc1:0:b0:71c:cf2e:92ec with SMTP id d184-20020a6bcdc1000000b0071ccf2e92ecmr18576823iog.0.1676243867094; Sun, 12 Feb 2023 15:17:47 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n16-20020a6b8b10000000b006dfbd35e995sm3627849iod.21.2023.02.12.15.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:17:46 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v3 42/95] cros_ec: Add SPL Kconfigs for cros_ec features Date: Sun, 12 Feb 2023 16:15:45 -0700 Message-Id: <20230212231638.1134219-43-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.581.gbfd45094c4-goog In-Reply-To: <20230212231638.1134219-1-sjg@chromium.org> References: <20230212231638.1134219-1-sjg@chromium.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.6 at phobos.denx.de X-Virus-Status: Clean At present we rely on this not existing to avoid building various EC features. But with the new split configs this does not work. Add separates Kconfigs instead. Signed-off-by: Simon Glass --- Changes in v3: - Use a consistent format for the comment drivers/i2c/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 427074bff83..ec533f31b1a 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -97,6 +97,9 @@ config I2C_CROS_EC_TUNNEL I2C or LPC). Some Chromebooks use this when the hardware design does not allow direct access to the main PMIC from the AP. +config SPL_I2C_CROS_EC_TUNNEL + def_bool n # Chrome OS EC tunnel I2C bus (SPL) + config I2C_CROS_EC_LDO bool "Provide access to LDOs on the Chrome OS EC" depends on CROS_EC @@ -111,6 +114,9 @@ config I2C_CROS_EC_LDO avoid duplicating the logic in the TPS65090 regulator driver for enabling/disabling an LDO. +config SPL_I2C_CROS_EC_LDO + def_bool n # Provide access to LDOs on the Chrome OS EC (SPL) + config I2C_SET_DEFAULT_BUS_NUM bool "Set default I2C bus number" depends on DM_I2C