mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
mtd: rawnand: brcmnand: fix CS0 layout
Only v3.3-v5.0 have a different CS0 layout.
Controllers before v3.3 use the same layout for every CS.
Fixes: 27c5b17cd1
("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200522121524.4161539-3-noltari@gmail.com
This commit is contained in:
parent
4fd639092b
commit
3d3fb3c5be
@ -605,8 +605,9 @@ static int brcmnand_revision_init(struct brcmnand_controller *ctrl)
|
||||
} else {
|
||||
ctrl->cs_offsets = brcmnand_cs_offsets;
|
||||
|
||||
/* v5.0 and earlier has a different CS0 offset layout */
|
||||
if (ctrl->nand_version <= 0x0500)
|
||||
/* v3.3-5.0 have a different CS0 offset layout */
|
||||
if (ctrl->nand_version >= 0x0303 &&
|
||||
ctrl->nand_version <= 0x0500)
|
||||
ctrl->cs0_offsets = brcmnand_cs_offsets_cs0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user