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 58B5AC433EF for ; Tue, 10 May 2022 15:08:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1C1F383DAF; Tue, 10 May 2022 17:08:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com 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 A687C8428B; Tue, 10 May 2022 17:08:49 +0200 (CEST) Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (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 3FEE183D8F for ; Tue, 10 May 2022 17:08:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qv1-f44.google.com with SMTP id kl21so12807117qvb.9 for ; Tue, 10 May 2022 08:08:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=GL/z/GHFg4e67bD0u9ECCm9gqJqswX1HkkUCL3miQw0=; b=IhXhWi2mVvt6TLnO0DPCpYII3Td+vbilKRIt7e7UxTsBn/cZr50wgVOknoIq5ObBs+ sduFbwAN8jg+hp9KumoZvbVSKDIXqVqvxbE5Zq4JEqD6zboBnOSIyrxN+fPZ9guBlr31 gbPcz/zH5rK0JrZK3YUwzlw7DOQL4RhMsK/SS114zp1f6qIJKVl+3DKmGLHxv2ni+Kne Lef/xZ2a+4GThVztcdjxw2m8AqUFNdKlkkcYcIi86iFShrzAYV6O7OeDGVnpa6UfK6Xk 7JdSVh3Xww1uqB0azY/5bJfXSio8YaO8tj90HoJWV+xgTuNGQD/H5Ht/XJZ2Ivib0OAC zA6Q== X-Gm-Message-State: AOAM533RrGDShARP8GUUrTvzSr/TxQxGFS9TkBjsjO4Vld15ceV5ZD0V iY+veUPc+9Qs4/OWb31/OZLlIQDjJw== X-Google-Smtp-Source: ABdhPJw2pogGuWAyKrpHlLEAgR4L9Sez6fosFMm6Oy3StpR5VrqEyKMr5zgRS19FMzr17H1VkkbQew== X-Received: by 2002:a05:6214:29c4:b0:45a:85af:57b3 with SMTP id gh4-20020a05621429c400b0045a85af57b3mr18536865qvb.94.1652195324840; Tue, 10 May 2022 08:08:44 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-4500-b057-3c7b-12c2-aabf.res6.spectrum.com. [2603:6081:7b01:4500:b057:3c7b:12c2:aabf]) by smtp.gmail.com with ESMTPSA id h65-20020a375344000000b0069fc13ce1f5sm8956098qkb.38.2022.05.10.08.08.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 08:08:44 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH] misc: Correct Kconfig dependencies for a number of options Date: Tue, 10 May 2022 11:08:41 -0400 Message-Id: <20220510150841.786496-1-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 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.5 at phobos.denx.de X-Virus-Status: Clean We have many cases of SPL (or TPL or VPL) drivers that don't depend on SPL_MISC (and so on) but rather just MISC. Signed-off-by: Tom Rini --- drivers/misc/Kconfig | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index c829939622b0..ebe84b15a49a 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -115,7 +115,7 @@ config CROS_EC config SPL_CROS_EC bool "Enable Chrome OS EC in SPL" - depends on SPL + depends on SPL && SPL_MISC help Enable access to the Chrome OS EC in SPL. This is a separate microcontroller typically available on a SPI bus on Chromebooks. It @@ -125,7 +125,7 @@ config SPL_CROS_EC config TPL_CROS_EC bool "Enable Chrome OS EC in TPL" - depends on TPL + depends on TPL && TPL_MISC help Enable access to the Chrome OS EC in TPL. This is a separate microcontroller typically available on a SPI bus on Chromebooks. It @@ -135,7 +135,7 @@ config TPL_CROS_EC config VPL_CROS_EC bool "Enable Chrome OS EC in VPL" - depends on VPL + depends on VPL && VPL_MISC help Enable access to the Chrome OS EC in VPL. This is a separate microcontroller typically available on a SPI bus on Chromebooks. It @@ -163,7 +163,7 @@ config CROS_EC_LPC config SPL_CROS_EC_LPC bool "Enable Chrome OS EC LPC driver in SPL" - depends on CROS_EC + depends on CROS_EC && SPL_MISC help Enable I2C access to the Chrome OS EC. This is used on x86 Chromebooks such as link and falco. The keyboard is provided @@ -172,7 +172,7 @@ config SPL_CROS_EC_LPC config TPL_CROS_EC_LPC bool "Enable Chrome OS EC LPC driver in TPL" - depends on CROS_EC + depends on CROS_EC && TPL_MISC help Enable I2C access to the Chrome OS EC. This is used on x86 Chromebooks such as link and falco. The keyboard is provided @@ -181,7 +181,7 @@ config TPL_CROS_EC_LPC config VPL_CROS_EC_LPC bool "Enable Chrome OS EC LPC driver in VPL" - depends on CROS_EC + depends on CROS_EC && VPL_MISC help Enable I2C access to the Chrome OS EC. This is used on x86 Chromebooks such as link and falco. The keyboard is provided @@ -274,7 +274,7 @@ config MXC_OCOTP config SPL_MXC_OCOTP bool "Enable MXC OCOTP driver in SPL" - depends on SPL && (ARCH_IMX8M || ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_VF610) + depends on SPL_MISC && (ARCH_IMX8M || ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_VF610) default y help If you say Y here, you will get support for the One Time @@ -304,7 +304,7 @@ config P2SB config SPL_P2SB bool "Intel Primary to Sideband Bridge in SPL" - depends on SPL && (X86 || SANDBOX) + depends on SPL_MISC && (X86 || SANDBOX) help The Primary to Sideband Bridge is used to access various peripherals through memory-mapped I/O in a large chunk of PCI space. The space is @@ -314,7 +314,7 @@ config SPL_P2SB config TPL_P2SB bool "Intel Primary to Sideband Bridge in TPL" - depends on TPL && (X86 || SANDBOX) + depends on TPL_MISC && (X86 || SANDBOX) help The Primary to Sideband Bridge is used to access various peripherals through memory-mapped I/O in a large chunk of PCI space. The space is @@ -333,7 +333,7 @@ config PWRSEQ config SPL_PWRSEQ bool "Enable power-sequencing drivers for SPL" - depends on PWRSEQ + depends on SPL_MISC && PWRSEQ help Power-sequencing drivers provide support for controlling power for devices. They are typically referenced by a phandle from another @@ -441,7 +441,7 @@ config I2C_EEPROM config SPL_I2C_EEPROM bool "Enable driver for generic I2C-attached EEPROMs for SPL" - depends on MISC && SPL && SPL_DM + depends on SPL_MISC help This option is an SPL-variant of the I2C_EEPROM option. See the help of I2C_EEPROM for details. @@ -494,7 +494,7 @@ config FS_LOADER config SPL_FS_LOADER bool "Enable loader driver for file system" + depends on SPL help This is file system generic loader which can be used to load the file image from the storage into target such as memory. -- 2.25.1