diff options
Diffstat (limited to 'include/blk.h')
-rw-r--r-- | include/blk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/blk.h b/include/blk.h index 9503369db83..332481a90b8 100644 --- a/include/blk.h +++ b/include/blk.h @@ -21,6 +21,11 @@ typedef ulong lbaint_t; struct udevice; +static inline bool blk_enabled(void) +{ + return CONFIG_IS_ENABLED(BLK) || IS_ENABLED(CONFIG_HAVE_BLOCK_DEVICE); +} + /* Interface types: */ enum if_type { IF_TYPE_UNKNOWN = 0, |