diff options
author | Simon Glass <sjg@chromium.org> | 2013-04-03 08:54:30 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-05-01 16:24:01 -0400 |
commit | 8bfa195e4e7ecbbabd4f070a3640212a5ac4ebde (patch) | |
tree | 4c44de1b4e79066a0cbcdf63cd4b5ea2dd7447dd /include | |
parent | 3f9315c04f3be076b81c04260c351e26adb47f30 (diff) |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index f0d48206273..8bbc6b6ebec 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; |