From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5743FC38142 for ; Tue, 31 Jan 2023 15:29:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 71D8B85AF8; Tue, 31 Jan 2023 16:28:56 +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="EC0ULxqv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A1A1085AF6; Tue, 31 Jan 2023 16:27:54 +0100 (CET) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (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 B124185AE4 for ; Tue, 31 Jan 2023 16:27:45 +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-il1-x12f.google.com with SMTP id g16so6634713ilr.1 for ; Tue, 31 Jan 2023 07:27:45 -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=d0m3AtkLQip3FMbL+9ZoYIh2ssL8ObVtYpGEO5MsNXQ=; b=EC0ULxqv1IcqDzE798VaWnj8pk1nEGQMQ7FYidkQljcg9Ob1wU84ekPfNVuDXWmCC5 IDGGnBA+5mrcyTspuh5XCfSC0GaZWIg+WJAyY0IeplQWplbkFg32FK3Ed0j75eS4kUbL ZrdLKgeYhSDt4auaVtWbMNE9yq9J8CeQtjZ9c= 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=d0m3AtkLQip3FMbL+9ZoYIh2ssL8ObVtYpGEO5MsNXQ=; b=liztECFBwKNwDgnRfw5hTFpvFFAmosEYKLH9FVmLQRzwkujdfZB45TkX3uQdq7Bh7Y hBPdc9z+zVJ5ur8qqZEvkFa1XDqCSvuRY5ulZxr89B3nt8xfJwS3fRKUjxjeI7uiaYf8 YvuVWZwNYJyOgKiAhHXyl3H1nGPWjI0JitU9WNi+luRRzCBdC4TdQ/BRvskF4IZNQ2JI Xo/2Uxr0+1YATW6L1Mg8Tubzk40pibs0OYG9UqeYcCPIY7etK8x++NvEogk92hwUTCQB 18RayPbQQ76gNbXxLPfWDXTGt/+L13NKcR1pC7PNd7yIcsR4pyAdbqX+RSWNUSqj0WFR ihaQ== X-Gm-Message-State: AO0yUKWDGBAGZtuVG0k3HM7Zn0ZSdm5G7UopOdBOGaM3OLkQ0V4pvmXH X5HLBdba4oHxsdMGBtT9NSeRKbpwcMtBen7D X-Google-Smtp-Source: AK7set/5E9JCGPissVvq3eJB+6D3+O8fBeUFmJ/LOZvBG8byVtMr40G/8bc8dH9RwITma70nDJ3nkg== X-Received: by 2002:a05:6e02:1a08:b0:310:fa98:25d5 with SMTP id s8-20020a056e021a0800b00310fa9825d5mr5435234ild.11.1675178863993; Tue, 31 Jan 2023 07:27:43 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id u4-20020a02cb84000000b0039db6cffcbasm5649328jap.71.2023.01.31.07.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 07:27:43 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 06/32] cros_ec: Add SPL Kconfigs for cros_ec features Date: Tue, 31 Jan 2023 08:26:36 -0700 Message-Id: <20230131152702.249197-7-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230131152702.249197-1-sjg@chromium.org> References: <20230131152702.249197-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- drivers/i2c/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 70ed69b22e1..347ba4d7822 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -97,6 +97,11 @@ 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 + help + Dummy option to ensure that this feature is not enabled in SPL. + config I2C_CROS_EC_LDO bool "Provide access to LDOs on the Chrome OS EC" depends on CROS_EC @@ -111,6 +116,11 @@ 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 + help + Dummy option to ensure that this feature is not enabled in SPL. + config I2C_SET_DEFAULT_BUS_NUM bool "Set default I2C bus number" depends on DM_I2C -- 2.39.1.456.gfc5497dd1b-goog