aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-03-12 10:27:14 -0400
committerArnd Bergmann <arnd@arndb.de>2018-03-12 10:27:14 -0400
commitfdda85f6969cadf4fda8c1eb15c1ac7ec8798bcd (patch)
treecbb17c3c986fbf84df25c0cd4d3e63d9e9d46ba3 /include/linux/platform_data
parent40590db64fabb35d9e19d66bd0880dda9631ab6a (diff)
parent0b8129278fdc30fa3281f435db419ab2d610085b (diff)
Merge tag 'pxa-for-4.17' of https://github.com/rjarzmik/linux into next/soc
Pull "This is the pxa changes for v4.17 cycle" from Robert Jarzmik: - minor changes for property API - clock API fix for ULPI driver warning It exceptionally contains a merge from the mtd tree from Boris to prevent any merge conflicts in the PXA tree. * tag 'pxa-for-4.17' of https://github.com/rjarzmik/linux: ARM: pxa/raumfeld: use PROPERTY_ENTRY_U32() directly ARM: pxa: ulpi: fix ulpi timeout and slowpath warn ARM: pxa: cm-x300: remove inline directive ARM: pxa: fix static checker warning in pxa3xx-ulpi MAINTAINERS: remove entry for deleted pxa3xx_nand driver arm: dts: pxa: use reworked NAND controller driver dt-bindings: mtd: remove pxa3xx NAND controller documentation mtd: nand: remove useless fields from pxa3xx NAND platform data mtd: nand: remove deprecated pxa3xx_nand driver mtd: nand: use Marvell reworked NAND controller driver with all platforms
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/mtd-nand-pxa3xx.h43
1 files changed, 12 insertions, 31 deletions
diff --git a/include/linux/platform_data/mtd-nand-pxa3xx.h b/include/linux/platform_data/mtd-nand-pxa3xx.h
index b42ad83cbc20..4fd0f592a2d2 100644
--- a/include/linux/platform_data/mtd-nand-pxa3xx.h
+++ b/include/linux/platform_data/mtd-nand-pxa3xx.h
@@ -6,41 +6,22 @@
6#include <linux/mtd/partitions.h> 6#include <linux/mtd/partitions.h>
7 7
8/* 8/*
9 * Current pxa3xx_nand controller has two chip select which 9 * Current pxa3xx_nand controller has two chip select which both be workable but
10 * both be workable. 10 * historically all platforms remaining on platform data used only one. Switch
11 * 11 * to device tree if you need more.
12 * Notice should be taken that:
13 * When you want to use this feature, you should not enable the
14 * keep configuration feature, for two chip select could be
15 * attached with different nand chip. The different page size
16 * and timing requirement make the keep configuration impossible.
17 */ 12 */
18
19/* The max num of chip select current support */
20#define NUM_CHIP_SELECT (2)
21struct pxa3xx_nand_platform_data { 13struct pxa3xx_nand_platform_data {
22 14 /* Keep OBM/bootloader NFC timing configuration */
23 /* the data flash bus is shared between the Static Memory 15 bool keep_config;
24 * Controller and the Data Flash Controller, the arbiter 16 /* Use a flash-based bad block table */
25 * controls the ownership of the bus 17 bool flash_bbt;
26 */ 18 /* Requested ECC strength and ECC step size */
27 int enable_arbiter;
28
29 /* allow platform code to keep OBM/bootloader defined NFC config */
30 int keep_config;
31
32 /* indicate how many chip selects will be used */
33 int num_cs;
34
35 /* use an flash-based bad block table */
36 bool flash_bbt;
37
38 /* requested ECC strength and ECC step size */
39 int ecc_strength, ecc_step_size; 19 int ecc_strength, ecc_step_size;
40 20 /* Partitions */
41 const struct mtd_partition *parts[NUM_CHIP_SELECT]; 21 const struct mtd_partition *parts;
42 unsigned int nr_parts[NUM_CHIP_SELECT]; 22 unsigned int nr_parts;
43}; 23};
44 24
45extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info); 25extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info);
26
46#endif /* __ASM_ARCH_PXA3XX_NAND_H */ 27#endif /* __ASM_ARCH_PXA3XX_NAND_H */