mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
86583384ff
NAND controller is present on BCM6328, BCM6362, BCM6368 and BCM63268. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
15 lines
492 B
Diff
15 lines
492 B
Diff
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c
|
|
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
|
|
@@ -537,8 +537,9 @@ static int brcmnand_revision_init(struct
|
|
} 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;
|
|
}
|
|
|