spl: cache: Allow cache drivers in SPL
authorRick Chen <rick@andestech.com>
Thu, 14 Nov 2019 05:52:26 +0000 (13:52 +0800)
committerAndes <uboot@andestech.com>
Tue, 10 Dec 2019 00:23:10 +0000 (08:23 +0800)
When ax25-ae350 try to enable v5l2 cache
driver in SPL configuration, it need this
option for cache support in SPL.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: KC Lin <kclin@andestech.com>
Cc: Alan Kao <alankao@andestech.com>
common/spl/Kconfig
drivers/Makefile

index c8cb715c3a3ee6a79a8d08444e6ff4e3930814c8..a72412718bd89257104426baa195be71a44cec66 100644 (file)
@@ -439,6 +439,13 @@ config SPL_FIT_IMAGE_TINY
          ensure this information is available to the next image
          invoked).
 
+config SPL_CACHE_SUPPORT
+       bool "Support CACHE drivers"
+       help
+         Enable CACHE drivers in SPL. These drivers can keep data so that
+         future requests for that data can be served faster. Enable this option
+         to build the drivers in drivers/cache as part of an SPL build.
+
 config SPL_CPU_SUPPORT
        bool "Support CPU drivers"
        help
index 0d1d6bd851fd6ba2aa6a35df08f1318298a51ed3..e977f19af6822d527e74cb638c4189414527a800 100644 (file)
@@ -30,6 +30,7 @@ ifndef CONFIG_TPL_BUILD
 ifdef CONFIG_SPL_BUILD
 
 obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
+obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
 obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
 obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/