Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 lines
812 B
C
28 lines
812 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_ARCH_PXA3XX_NAND_H
|
|
#define __ASM_ARCH_PXA3XX_NAND_H
|
|
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
/*
|
|
* Current pxa3xx_nand controller has two chip select which both be workable but
|
|
* historically all platforms remaining on platform data used only one. Switch
|
|
* to device tree if you need more.
|
|
*/
|
|
struct pxa3xx_nand_platform_data {
|
|
/* Keep OBM/bootloader NFC timing configuration */
|
|
bool keep_config;
|
|
/* Use a flash-based bad block table */
|
|
bool flash_bbt;
|
|
/* Requested ECC strength and ECC step size */
|
|
int ecc_strength, ecc_step_size;
|
|
/* Partitions */
|
|
const struct mtd_partition *parts;
|
|
unsigned int nr_parts;
|
|
};
|
|
|
|
extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info);
|
|
|
|
#endif /* __ASM_ARCH_PXA3XX_NAND_H */
|