summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-04-03 08:54:30 +0000
committerTom Rini <trini@ti.com>2013-05-01 16:24:01 -0400
commit8bfa195e4e7ecbbabd4f070a3640212a5ac4ebde (patch)
tree4c44de1b4e79066a0cbcdf63cd4b5ea2dd7447dd /include
parent3f9315c04f3be076b81c04260c351e26adb47f30 (diff)
downloadu-boot-imx-8bfa195e4e7ecbbabd4f070a3640212a5ac4ebde.zip
u-boot-imx-8bfa195e4e7ecbbabd4f070a3640212a5ac4ebde.tar.gz
u-boot-imx-8bfa195e4e7ecbbabd4f070a3640212a5ac4ebde.tar.bz2
mmc: Define a constant for the maximum block size
The number 512 appears quite a bit in the mmc code. Add a constant for this so that it can be used here and in other parts of the code (e.g. SPL code which loads from mmc). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/mmc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index f0d4820..8bbc6b6 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -207,6 +207,9 @@
#define PART_ACCESS_MASK (0x7)
#define PART_SUPPORT (0x1)
+/* Maximum block size for MMC */
+#define MMC_MAX_BLOCK_LEN 512
+
struct mmc_cid {
unsigned long psn;
unsigned short oid;