diff options
| author | Kurt Kanzenbach <[email protected]> | 2017-10-20 11:44:25 +0200 |
|---|---|---|
| committer | York Sun <[email protected]> | 2017-11-14 08:33:20 -0800 |
| commit | 99145c488f782efd9175cec50775ea6c1023b2c2 (patch) | |
| tree | a4ac78428c4691e746bd358fc7a02593794c8515 /include | |
| 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 <[email protected]>
Acked-by: Scott Wood <[email protected]>
[YS: reformatted commit message]
Reviewed-by: York Sun <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
