diff options
author | Peng Fan <van.freenix@gmail.com> | 2016-05-23 18:36:02 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-05-24 14:59:57 +0200 |
commit | 9aa550d2e8e9c6c2a149528d3d2b33870608a860 (patch) | |
tree | 5ebf72441239cf9849a4178c99a7d17afa2d5136 | |
parent | 492d60ac79aba67e8b9e98b251e3996746e58d60 (diff) |
mtd: nand: mxs: use simpler runtime cpu dection macros
Use simpler runtime cpu dection macros.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Scott Wood <oss@buserror.net>
-rw-r--r-- | drivers/mtd/nand/mxs_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c index b5bbd889ff..5528d4b45b 100644 --- a/drivers/mtd/nand/mxs_nand.c +++ b/drivers/mtd/nand/mxs_nand.c @@ -152,7 +152,7 @@ static inline uint32_t mxs_nand_get_ecc_strength(uint32_t page_data_size, int max_ecc_strength_supported; /* Refer to Chapter 17 for i.MX6DQ, Chapter 18 for i.MX6SX */ - if (is_cpu_type(MXC_CPU_MX6SX) || is_soc_type(MXC_SOC_MX7)) + if (is_mx6sx() || is_mx7()) max_ecc_strength_supported = 62; else max_ecc_strength_supported = 40; |