[U-Boot] [PATCH 16/17] blk: Allow control of the block cache in TPL

Simon Glass sjg at chromium.org
Sat May 18 17:59:53 UTC 2019


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 at chromium.org>
---

 drivers/block/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 33f4aa24185..1e6dad86927 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
-- 
2.21.0.1020.gf2820cf01a-goog



More information about the U-Boot mailing list