From: Simon Glass <sjg@chromium.org>
Date: Sat, 18 May 2019 17:59:53 +0000 (-0600)
Subject: blk: Allow control of the block cache in TPL
X-Git-Tag: v2025.01-rc5-pxa1908~2888^2~15
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/kyber.dk/phpMyBuilder/static/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=731ba3c0beaf4318cc97ece1e422a61fc5721f5b;p=u-boot.git

blk: Allow control of the block cache in TPL

Generally block devices are not enabled in TPL, but in case they are,
add a Kconfig option for the block cache. This allows the setting (default
off) to be found with CONFIG_IS_ENABLED().

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 33f4aa2418..1e6dad8692 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -56,6 +56,13 @@ config SPL_BLOCK_CACHE
 	help
 	  This option enables the disk-block cache in SPL
 
+config TPL_BLOCK_CACHE
+	bool "Use block device cache in TPL"
+	depends on TPL_BLK
+	default n
+	help
+	  This option enables the disk-block cache in TPL
+
 config IDE
 	bool "Support IDE controllers"
 	select HAVE_BLOCK_DEVICE