Message ID | 20230212231638.1134219-53-sjg@chromium.org |
---|---|
State | RFC |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) 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=Mn2HxlCV; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4PFPD35DCDz23qt for <incoming@patchwork.ozlabs.org>; Mon, 13 Feb 2023 10:42:59 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5AEE285727; Mon, 13 Feb 2023 00:42:39 +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="Mn2HxlCV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C9DD585854; Mon, 13 Feb 2023 00:18:18 +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-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 F114D857C5 for <u-boot@lists.denx.de>; Mon, 13 Feb 2023 00:17:54 +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-xd31.google.com with SMTP id z5so1240218iow.1 for <u-boot@lists.denx.de>; Sun, 12 Feb 2023 15:17:54 -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=42wMNSBNpW8v+Bc6nBTXWyKnPZDnb6zN9ZHaD8rf5+4=; b=Mn2HxlCVAFg4leAZHprl3vPbGV8QssH1IJmcqz3OnTqZ5mmQhCrhSbszO0mJrA7GJa Jod/9d51dlstm0VJoFlthuGtqb050T8dV4WUk4Kz21AWuFEwK7CA2zCVwMMKuwq2PG9D Kb0aLcoU1l2sgC0O9M6ACY4Vx2aCr8g5BCvZU= 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=42wMNSBNpW8v+Bc6nBTXWyKnPZDnb6zN9ZHaD8rf5+4=; b=NU98SL6KbOXgJ+bSqA0H17D+II0Jma1bCObp/lAQbrSRLOM3pPwMTC70Xq6G+iIo1a M3yePi+MWTpaczVuHJqyQEwtaE/KyTMIxgW/xXRFhBu6hLHsEiwY6CWRdIVQpYNTgN2Q wuxKoRA8LYuWl2LoYu1Ch1ostQqWIyUT0TC7jqFzhl/C4hftWA96R/DUsuJHFXrWvn8B /3PypIgY1PUXW41xeC9ZjaFI+FrdoinUYTAOleL/c27Mi1eBdwZ7KOGux0X9KumSG5ir rsYvq7DK2G7zjKgBcWLBERqtGTmGzRhmumnTNV1YK//1aCM5ZTPuSU5I+NyoA8Gd4fiG W/Qw== X-Gm-Message-State: AO0yUKXw6Xieor9LFEb1xuIR3sR+aQdtYFWTN5UmuPA0D7n+v/ReN5ie onx3qqKMBMug8BBhSuVXzO9GHfyopkja9CDs X-Google-Smtp-Source: AK7set8fhDxeab45hnUJzNxNqZs6St29G3Lk5herkaqeBbfYoBvJbnhibjv5M5uma5FZZE2VYrIY2Q== X-Received: by 2002:a6b:1541:0:b0:722:b81a:cccb with SMTP id 62-20020a6b1541000000b00722b81acccbmr19484148iov.16.1676243874490; Sun, 12 Feb 2023 15:17:54 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:17:54 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v3 52/95] sandbox: Tidy up I2C options Date: Sun, 12 Feb 2023 16:15:55 -0700 Message-Id: <20230212231638.1134219-53-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 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
RFC: Migrate to split config
|
expand
|
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index ec533f31b1a..b1b846da05f 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -47,6 +47,16 @@ config SPL_DM_I2C device (bus child) info is kept as parent platdata. The interface is defined in include/i2c.h. +config TPL_DM_I2C + bool "Enable Driver Model for I2C drivers in TPL" + depends on TPL_DM && DM_I2C + help + Enable driver model for I2C. The I2C uclass interface: probe, read, + write and speed, is implemented with the bus drivers operations, + which provide methods for bus setting and data transfer. Each chip + device (bus child) info is kept as parent platdata. The interface + is defined in include/i2c.h. + config VPL_DM_I2C bool "Enable Driver Model for I2C drivers in VPL" depends on VPL_DM && DM_I2C @@ -504,6 +514,16 @@ config SYS_I2C_ROCKCHIP config SYS_I2C_SANDBOX bool "Sandbox I2C driver" depends on SANDBOX && DM_I2C + default y + help + Enable I2C support for sandbox. This is an emulation of a real I2C + bus. Devices can be attached to the bus using the device tree + which specifies the driver to use. See sandbox.dts as an example. + +config SPL_SYS_I2C_SANDBOX + bool "Sandbox I2C driver (SPL)" + depends on SPL && SANDBOX && DM_I2C + default y help Enable I2C support for sandbox. This is an emulation of a real I2C bus. Devices can be attached to the bus using the device tree
At present we enable the sandbox I2C driver for all builds. Add a separate Kconfig option to control this, so that it can be disabled in TPL, where it is not needed. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) drivers/i2c/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)