diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-11-13 20:31:50 +0900 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-11-26 19:53:19 -0600 |
commit | 65e4145a2093e6f80f19018f10a416bd02d0e816 (patch) | |
tree | 307b6705961338a08902bb077e3cedfa2db1dd62 /drivers/mtd/nand/denali.h | |
parent | 35c204d8a9d036fdc2b139dd88212ca3e70ed6e1 (diff) | |
download | u-boot-imx-65e4145a2093e6f80f19018f10a416bd02d0e816.zip u-boot-imx-65e4145a2093e6f80f19018f10a416bd02d0e816.tar.gz u-boot-imx-65e4145a2093e6f80f19018f10a416bd02d0e816.tar.bz2 |
mtd: denali: use CONFIG_SYS_NAND_SELF_INIT
Some variants of the Denali NAND controller need some registers
set up based on the device information that has been detected during
nand_scan_ident().
CONFIG_SYS_NAND_SELF_INIT has to be defined to insert code between
nand_scan_ident() and nand_scan_tail(). It is also helpful to reduce
the difference between this driver and its Linux counterpart because
this driver was ported from Linux. Moreover, doc/README.nand recommends
to use CONFIG_SYS_NAND_SELF_INIT.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Chin Liang See <clsee@altera.com>
Diffstat (limited to 'drivers/mtd/nand/denali.h')
-rw-r--r-- | drivers/mtd/nand/denali.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h index 3277da7..a258df0 100644 --- a/drivers/mtd/nand/denali.h +++ b/drivers/mtd/nand/denali.h @@ -434,9 +434,8 @@ struct nand_buf { #define DT 3 struct denali_nand_info { - struct mtd_info mtd; - struct nand_chip *nand; - + struct mtd_info *mtd; + struct nand_chip nand; int flash_bank; /* currently selected chip */ int status; int platform; |