mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 22:24:56 +07:00
a9cadf72bf
The driver supports board files specificating the flash device, by passing a pxa3xx_nand_flash struct (with flash parameters) in the platform data struct. Currently this support is not being used by any board file. Moreover, we'd like to deprecate such usage in favor of using the device table in nand_ids.c. So let's remove the ad-hoc flash specification. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
#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.
|
|
*
|
|
* Notice should be taken that:
|
|
* When you want to use this feature, you should not enable the
|
|
* keep configuration feature, for two chip select could be
|
|
* attached with different nand chip. The different page size
|
|
* and timing requirement make the keep configuration impossible.
|
|
*/
|
|
|
|
/* The max num of chip select current support */
|
|
#define NUM_CHIP_SELECT (2)
|
|
struct pxa3xx_nand_platform_data {
|
|
|
|
/* the data flash bus is shared between the Static Memory
|
|
* Controller and the Data Flash Controller, the arbiter
|
|
* controls the ownership of the bus
|
|
*/
|
|
int enable_arbiter;
|
|
|
|
/* allow platform code to keep OBM/bootloader defined NFC config */
|
|
int keep_config;
|
|
|
|
/* indicate how many chip selects will be used */
|
|
int num_cs;
|
|
|
|
/* use an flash-based bad block table */
|
|
bool flash_bbt;
|
|
|
|
/* requested ECC strength and ECC step size */
|
|
int ecc_strength, ecc_step_size;
|
|
|
|
const struct mtd_partition *parts[NUM_CHIP_SELECT];
|
|
unsigned int nr_parts[NUM_CHIP_SELECT];
|
|
};
|
|
|
|
extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info);
|
|
#endif /* __ASM_ARCH_PXA3XX_NAND_H */
|