]> git.sur5r.net Git - u-boot/commitdiff
spl: Allow CPU drivers to be used in SPL
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:03:29 +0000 (07:03 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 6 Feb 2017 03:38:46 +0000 (11:38 +0800)
Add a new Kconfig option to allow CPU drivers to be used in SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/spl/Kconfig
drivers/Makefile

index b2ba492abd3b075543e4bf4758b1987afc60faf6..bf5339332fb27ba215d64f881048fc1c1de22381 100644 (file)
@@ -149,6 +149,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
index c19fa142f3a8dc57e05b0ff449f1af5e9621e813..4ced2bbb6c520260c5e73d009a3b5a417c003afe 100644 (file)
@@ -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/