aboutsummaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-05-18 11:59:53 -0600
committerSimon Glass <sjg@chromium.org>2019-07-10 16:52:58 -0600
commit731ba3c0beaf4318cc97ece1e422a61fc5721f5b (patch)
tree517057aaff18a5bf76ef0f31da7b65e88d5b802e /drivers/block
parent59d0452df36c92015eb68163519f1581e68d6392 (diff)
downloadu-boot-731ba3c0beaf4318cc97ece1e422a61fc5721f5b.zip
u-boot-731ba3c0beaf4318cc97ece1e422a61fc5721f5b.tar.gz
u-boot-731ba3c0beaf4318cc97ece1e422a61fc5721f5b.tar.bz2
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 33f4aa2..1e6dad8 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