aboutsummaryrefslogtreecommitdiff
path: root/include/blk.h
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2018-06-11 17:17:48 -0500
committerTom Rini <trini@konsulko.com>2018-06-18 14:43:13 -0400
commit6fef62cc47a0ad2a1ef6b58fda18f1e333869003 (patch)
tree65f137aee05eb41d7fab18473a22883ea53ce346 /include/blk.h
parenta1b73c18724eb8cb75f7a60d851578d933c78095 (diff)
downloadu-boot-6fef62cc47a0ad2a1ef6b58fda18f1e333869003.zip
u-boot-6fef62cc47a0ad2a1ef6b58fda18f1e333869003.tar.gz
u-boot-6fef62cc47a0ad2a1ef6b58fda18f1e333869003.tar.bz2
block: Add SPL_BLOCK_CACHE and default n
When enabling BLOCK_CACHE on devices with limited RAM during SPL, some devices may not boot. This creates an option to enable block caching in SPL by defaults off. It is dependent on SPL_BLK Fixes: 46960ad6d09b ("block: Have BLOCK_CACHE default to y in some cases") Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'include/blk.h')
-rw-r--r--include/blk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/blk.h b/include/blk.h
index fc0c239..86f6d50 100644
--- a/include/blk.h
+++ b/include/blk.h
@@ -111,7 +111,7 @@ struct blk_desc {
#define PAD_TO_BLOCKSIZE(size, blk_desc) \
(PAD_SIZE(size, blk_desc->blksz))
-#ifdef CONFIG_BLOCK_CACHE
+#if CONFIG_IS_ENABLED(BLOCK_CACHE)
/**
* blkcache_read() - attempt to read a set of blocks from cache
*