projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
492d60a
)
mtd: nand: mxs: use simpler runtime cpu dection macros
author
Peng Fan
<van.freenix@gmail.com>
Mon, 23 May 2016 10:36:02 +0000
(18:36 +0800)
committer
Stefano Babic
<sbabic@denx.de>
Tue, 24 May 2016 12:59:57 +0000
(14:59 +0200)
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>
drivers/mtd/nand/mxs_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/mxs_nand.c
b/drivers/mtd/nand/mxs_nand.c
index b5bbd889ffc711df89ec453b3a5bac2324595da2..5528d4b45bc8cc1685cd69c6772f0358984965f1 100644
(file)
--- 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;