From: Simon Glass Date: Sat, 19 Nov 2016 13:24:53 -0700 Subject: [U-Boot] [PATCH v2 04/63] spl: Allow CPU drivers to be used in SPL In-Reply-To: <1479587152-25065-1-git-send-email-sjg@chromium.org> References: <1479587152-25065-1-git-send-email-sjg@chromium.org> Message-ID: <1479587152-25065-5-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add a new Kconfig option to allow CPU drivers to be used in SPL. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/Kconfig | 10 ++++++++++ drivers/Makefile | 1 + 2 files changed, 11 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index bb99f1f..ae46157 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -123,6 +123,16 @@ config SPL_SHA256_SUPPORT SHA256 variant is supported: SHA512 and others are not currently supported in U-Boot. +config SPL_CPU_SUPPORT + bool "Support CPU drivers" + depends on SPL + help + Enable this to support CPU drivers in SPL. These drivers can set + up CPUs and provide information about them such as the model and + name. This can be useful in SPL since setting up the CPUs earlier + may improve boot performance. Enable this option to build the + drivers in drivers/cpu as part of an SPL build. + config SPL_CRYPTO_SUPPORT bool "Support crypto drivers" depends on SPL diff --git a/drivers/Makefile b/drivers/Makefile index 761d0b3..de8d22a 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_$(SPL_)RAM) += ram/ ifdef CONFIG_SPL_BUILD +obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/ obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/ obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/ obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/ -- 2.8.0.rc3.226.g39d4020