Skip to content
Snippets Groups Projects
Commit 99145c48 authored by Kurt Kanzenbach's avatar Kurt Kanzenbach Committed by York Sun
Browse files

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: default avatarKurt Kanzenbach <kurt@linutronix.de>
Acked-by: default avatarScott Wood <oss@buserror.net>
[YS: reformatted commit message]
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 6447eb06
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment