From patchwork Sat Aug 24 18:50:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1152712 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nkqqyUrn"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46G6mQ3RvBz9s00 for ; Sun, 25 Aug 2019 04:51:00 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C44DCC21E4F; Sat, 24 Aug 2019 18:50:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 43A31C21C38; Sat, 24 Aug 2019 18:50:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 72D52C21C38; Sat, 24 Aug 2019 18:50:47 +0000 (UTC) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by lists.denx.de (Postfix) with ESMTPS id DB6D4C21BE5 for ; Sat, 24 Aug 2019 18:50:46 +0000 (UTC) Received: by mail-io1-f68.google.com with SMTP id x4so27733499iog.13 for ; Sat, 24 Aug 2019 11:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=eSnBiIKZVa4oCb1uo6N3acpMcS6uJVpkxBLg9dWUGjQ=; b=nkqqyUrnh+qggtA9RUggkClYzdvDVfGtGHNOFV8XgHvsmSYY/HquzVj3dnLKQ9AesJ UHCmd8mwgqywtN0ZnGZE2bbeHa3sSkGVqYCc/1zyTEyL2MpV2iGbHlTSOu3B7rJy53JR wZUnpbOqj/Xfrp9cw3Jeg4J7ET0OkhE8MdeN644ympTIvOZtqMnCjBWQerhugqSQ2dBS /TR8a5Nm3pI8sa7wmCrcT5mRt3IukZ1mz22l2s9BVdBxnPKec/VZTlzYjs6HSt2XIA0x Eenib3yP6FUCfJeeTSDBe8n0WEDSV31nz4+8+8BBNlfSVdWNzhTiZxoVBRSzntdt0ow8 8z4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eSnBiIKZVa4oCb1uo6N3acpMcS6uJVpkxBLg9dWUGjQ=; b=hpAnoe0lWbTuioLAy9biCYcSYxvwnrrCNKUQkYTl91heOWuwJAc5o3t28djo96JuH+ vL5hUH8Qc4EWEav2W+4RCmDOqe2EEvR4M7JrnoHqML0BakF9OJNeh0pEJZIFphSt73G7 hC72rNJPkKXGrEpoK2GK8NDQySNLshyOA1mokg6tDyYKKVtgWCpQeMds5Ra8cLNmLfvk UGEDuE9Sz5ImqaI4Xbbj+jSatetcVIM5FFl6WQpPofRAWvc7tmqQsUl0GDgeEom72Bnz djoq/Znpuf0ZSBCZjIwePsuEZO8xj/GV2+ks9FLKpluQL63yZsvG/AOGm2QWXHZGVGhF RJmw== X-Gm-Message-State: APjAAAV21kcIiNEtUs/UoFVWQCGNGW5y0y62PX8jxpIfN6IB0YAXylUs 56zk0URYHxspaj3aEk5Rpu0jfc7A6Ns= X-Google-Smtp-Source: APXvYqxXH2n6N+25zSjC90B1JBCXuR6fhoS8DcvVUqrd4UD8uW65tHnVFpJZ8PPiZeS9Qjbum93f6Q== X-Received: by 2002:a6b:7f4b:: with SMTP id m11mr15182906ioq.171.1566672644975; Sat, 24 Aug 2019 11:50:44 -0700 (PDT) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id y17sm5120720ioa.52.2019.08.24.11.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Aug 2019 11:50:43 -0700 (PDT) From: Adam Ford To: u-boot@lists.denx.de Date: Sat, 24 Aug 2019 13:50:34 -0500 Message-Id: <20190824185034.30478-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 Cc: adam.ford@logicpd.com Subject: [U-Boot] [PATCH] Kconfig: Varios: Fix more SPL, TPL dependencies X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Several options are presenting themselves on a various boards where the options are clearly not used. (ie, SPL/TPL options when SPL or TPL are not defined) This patch is not attempting to be a complete list of items, but more like low hanging fruit. In some instances, I wasn't sure of DM was required, so I simply made them SPL or TPL. This patch attempts to reduce some of the menuconfig noise by defining dependencies so they don't appear when not used. Signed-off-by: Adam Ford diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 660aa66d84..5b70f1e4ff 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -435,6 +435,7 @@ config SPL_HASH_SUPPORT config TPL_HASH_SUPPORT bool "Support hashing drivers in TPL" + depends on TPL select SHA1 select SHA256 help diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 82cd8f623c..95fe0aea2c 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -48,6 +48,7 @@ config CLK_BOSTON config SPL_CLK_CCF bool "SPL Common Clock Framework [CCF] support " + depends on SPL help Enable this option if you want to (re-)use the Linux kernel's Common Clock Framework [CCF] code in U-Boot's SPL. diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 2d195ae35e..3b95b5387b 100644 --- a/drivers/core/Kconfig +++ b/drivers/core/Kconfig @@ -92,7 +92,7 @@ config DM_SEQ_ALIAS config SPL_DM_SEQ_ALIAS bool "Support numbered aliases in device tree in SPL" - depends on DM + depends on SPL_DM default n help Most boards will have a '/aliases' node containing the path to diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index cb8b5c04db..8037b6ee2d 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -88,6 +88,7 @@ config CROS_EC config SPL_CROS_EC bool "Enable Chrome OS EC in SPL" + depends on SPL help Enable access to the Chrome OS EC in SPL. This is a separate microcontroller typically available on a SPI bus on Chromebooks. It @@ -97,6 +98,7 @@ config SPL_CROS_EC config TPL_CROS_EC bool "Enable Chrome OS EC in TPL" + depends on TPL help Enable access to the Chrome OS EC in TPL. This is a separate microcontroller typically available on a SPI bus on Chromebooks. It diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 3942f035eb..02312273e2 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -19,7 +19,7 @@ config PHY config SPL_PHY bool "PHY Core in SPL" - depends on DM + depends on DM && SPL help PHY support in SPL. diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 8a447fd6e3..ae2d819ba9 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -45,7 +45,7 @@ config SERIAL_PRESENT config SPL_SERIAL_PRESENT bool "Provide a serial driver in SPL" - depends on DM_SERIAL + depends on DM_SERIAL && SPL default y help In very space-constrained devices even the full UART driver is too @@ -55,7 +55,7 @@ config SPL_SERIAL_PRESENT config TPL_SERIAL_PRESENT bool "Provide a serial driver in TPL" - depends on DM_SERIAL + depends on DM_SERIAL && TPL default y help In very space-constrained devices even the full UART driver is too