mtd: rawnand: brcmnand: Add platform data structure for BCMA
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 7 Jan 2022 18:46:11 +0000 (10:46 -0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 23 Jan 2022 15:37:18 +0000 (16:37 +0100)
commit02d1d0e4dfc3fdc5aa05b78e7def00dc1e62257e
treea99b36648a6b17dc8c9cd9e7f111496bff58b420
parentf5619f3774d0ef6ddbb8de4c782cc4e42966c524
mtd: rawnand: brcmnand: Add platform data structure for BCMA

Update the BCMA's chipcommon nand flash driver to detect which
chip-select is used and pass that information via platform data to the
brcmnand driver. Make sure that the brcmnand platform data structure is
always at the beginning of the platform data of the "nflash" device
created by BCMA to allow brcmnand to safely de-reference it.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220107184614.2670254-7-f.fainelli@gmail.com
MAINTAINERS
drivers/bcma/driver_chipcommon_nflash.c
include/linux/bcma/bcma_driver_chipcommon.h
include/linux/platform_data/brcmnand.h [new file with mode: 0644]