mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
![Florian Fainelli](/assets/img/avatar_default.png)
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
12 lines
286 B
C
12 lines
286 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef BRCMNAND_PLAT_DATA_H
|
|
#define BRCMNAND_PLAT_DATA_H
|
|
|
|
struct brcmnand_platform_data {
|
|
int chip_select;
|
|
const char * const *part_probe_types;
|
|
unsigned int ecc_stepsize;
|
|
unsigned int ecc_strength;
|
|
};
|
|
|
|
#endif /* BRCMNAND_PLAT_DATA_H */
|