aboutsummaryrefslogtreecommitdiff
path: root/include/blk.h
diff options
context:
space:
mode:
authorBin Meng2023-09-26 16:43:31 +0800
committerTom Rini2023-10-10 16:19:29 -0400
commit7020b2eca49e2c902bb443273ba21df2050d7f1e (patch)
tree3ab43cd31eb25f3f4dbde1f07f6e4439242225b5 /include/blk.h
parent833ff23047c50e4053fb1bda21f4e2c9f6a3aa6a (diff)
blk: Use a macro for the typical block size
Avoid using the magic number 512 directly. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/blk.h')
-rw-r--r--include/blk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/blk.h b/include/blk.h
index 95e86e2d5d1..bbff057aed4 100644
--- a/include/blk.h
+++ b/include/blk.h
@@ -21,6 +21,8 @@ typedef ulong lbaint_t;
#define LBAF "%" LBAFlength "x"
#define LBAFU "%" LBAFlength "u"
+#define DEFAULT_BLKSZ 512
+
struct udevice;
static inline bool blk_enabled(void)