diff options
author | Tom Rini <trini@konsulko.com> | 2016-09-09 09:45:32 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-09 09:45:32 -0400 |
commit | 16f416661ec5ffa46b3f879a0b83907bbec13714 (patch) | |
tree | 4674f10254e3d773b39a21552c108214795dddec /drivers/mtd | |
parent | 01c5075506afcb7a74e0db8600af8979f45881b5 (diff) | |
parent | d4ee5043f36e7a418c3fb5be2e76eb5f6ee2cd9f (diff) | |
download | u-boot-16f416661ec5ffa46b3f879a0b83907bbec13714.tar.gz |
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/mxs_nand.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c index 94fc5c18a0..4bf564e4f5 100644 --- a/drivers/mtd/nand/mxs_nand.c +++ b/drivers/mtd/nand/mxs_nand.c @@ -37,7 +37,12 @@ #endif #define MXS_NAND_METADATA_SIZE 10 #define MXS_NAND_BITS_PER_ECC_LEVEL 13 + +#if !defined(CONFIG_SYS_CACHELINE_SIZE) || CONFIG_SYS_CACHELINE_SIZE < 32 #define MXS_NAND_COMMAND_BUFFER_SIZE 32 +#else +#define MXS_NAND_COMMAND_BUFFER_SIZE CONFIG_SYS_CACHELINE_SIZE +#endif #define MXS_NAND_BCH_TIMEOUT 10000 |