diff options
author | Kurt Kanzenbach <kurt@linutronix.de> | 2017-10-20 11:44:25 +0200 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-11-14 08:33:20 -0800 |
commit | 99145c488f782efd9175cec50775ea6c1023b2c2 (patch) | |
tree | a4ac78428c4691e746bd358fc7a02593794c8515 /board/inversepath | |
parent | 6447eb062503eaa95f2b600256f241cd88d590c0 (diff) |
mtd: nand: fsl-ifc: fix support of multiple NAND devices
Currently the chipselect used to identify the corresponding NAND chip
is stored at the controller and only set during fsl_ifc_chip_init().
This way, only the last NAND chip is working, as the previous value
of cs_nand gets overwritten.
In order to solve this issue the chipselect is computed on demand by
evaluating the bank variable. Thus, the correct chipselect for each
NAND chip operation is used.
Tested on hardware with two NAND chips connected to the IFC
controller.
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Acked-by: Scott Wood <oss@buserror.net>
[YS: reformatted commit message]
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/inversepath')
0 files changed, 0 insertions, 0 deletions