hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/mtd/maps/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 menu "Mapping drivers for chip access"
23 depends on MTD!=n
34 depends on HAS_IOMEM
....@@ -10,7 +11,7 @@
1011
1112 config MTD_PHYSMAP
1213 tristate "Flash device in physical memory map"
13
- depends on MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_LPDDR
14
+ depends on MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_RAM || MTD_LPDDR
1415 help
1516 This provides a 'mapping' driver which allows the NOR Flash and
1617 ROM driver code to communicate with chips which are mapped
....@@ -66,15 +67,26 @@
6667 used internally by the CFI drivers.
6768
6869 config MTD_PHYSMAP_OF
69
- tristate "Memory device in physical memory map based on OF description"
70
- depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_RAM)
70
+ bool "Memory device in physical memory map based on OF description"
71
+ depends on OF && MTD_PHYSMAP
7172 help
7273 This provides a 'mapping' driver which allows the NOR Flash, ROM
7374 and RAM driver code to communicate with chips which are mapped
7475 physically into the CPU's memory. The mapping description here is
7576 taken from OF device tree.
7677
77
-config MTD_PHYSMAP_OF_VERSATILE
78
+config MTD_PHYSMAP_BT1_ROM
79
+ bool "Baikal-T1 Boot ROMs OF-based physical memory map handling"
80
+ depends on MTD_PHYSMAP_OF
81
+ depends on MIPS_BAIKAL_T1 || COMPILE_TEST
82
+ select MTD_COMPLEX_MAPPINGS
83
+ select MULTIPLEXER
84
+ select MUX_MMIO
85
+ help
86
+ This provides some extra DT physmap parsing for the Baikal-T1
87
+ platforms, some detection and setting up ROMs-specific accessors.
88
+
89
+config MTD_PHYSMAP_VERSATILE
7890 bool "ARM Versatile OF-based physical memory map handling"
7991 depends on MTD_PHYSMAP_OF
8092 depends on MFD_SYSCON
....@@ -84,15 +96,36 @@
8496 platforms, basically to add a VPP (write protection) callback so
8597 the flash can be taken out of write protection.
8698
87
-config MTD_PHYSMAP_OF_GEMINI
99
+config MTD_PHYSMAP_GEMINI
88100 bool "Cortina Gemini OF-based physical memory map handling"
89101 depends on MTD_PHYSMAP_OF
90102 depends on MFD_SYSCON
103
+ select MTD_COMPLEX_MAPPINGS
91104 default ARCH_GEMINI
92105 help
93106 This provides some extra DT physmap parsing for the Gemini
94107 platforms, some detection and setting up parallel mode on the
95108 external interface.
109
+
110
+config MTD_PHYSMAP_IXP4XX
111
+ bool "Intel IXP4xx OF-based physical memory map handling"
112
+ depends on MTD_PHYSMAP_OF
113
+ depends on ARM
114
+ select MTD_COMPLEX_MAPPINGS
115
+ select MTD_CFI_BE_BYTE_SWAP if CPU_BIG_ENDIAN
116
+ default ARCH_IXP4XX
117
+ help
118
+ This provides some extra DT physmap parsing for the Intel IXP4xx
119
+ platforms, some elaborate endianness handling in particular.
120
+
121
+config MTD_PHYSMAP_GPIO_ADDR
122
+ bool "GPIO-assisted Flash Chip Support"
123
+ depends on MTD_PHYSMAP
124
+ depends on GPIOLIB || COMPILE_TEST
125
+ depends on MTD_COMPLEX_MAPPINGS
126
+ help
127
+ Extend the physmap driver to allow flashes to be partially
128
+ physically addressed and assisted by GPIOs.
96129
97130 config MTD_PMC_MSP_EVM
98131 tristate "CFI Flash device mapped on PMC-Sierra MSP"
....@@ -288,11 +321,11 @@
288321 help
289322 This provides a driver for the flash accessed using Intel's
290323 21285 bridge used with Intel's StrongARM processors. More info at
291
- <http://www.intel.com/design/bridge/docs/21285_documentation.htm>.
324
+ <https://www.intel.com/design/bridge/docs/21285_documentation.htm>.
292325
293326 config MTD_IXP4XX
294327 tristate "CFI Flash device mapped on Intel IXP4xx based systems"
295
- depends on MTD_CFI && MTD_COMPLEX_MAPPINGS && ARCH_IXP4XX
328
+ depends on MTD_CFI && MTD_COMPLEX_MAPPINGS && ARCH_IXP4XX && MTD_CFI_ADV_OPTIONS
296329 help
297330 This enables MTD access to flash devices on platforms based
298331 on Intel's IXP4xx family of network processors such as the
....@@ -333,16 +366,6 @@
333366 anything about themselves are assumed to be MTD cards.
334367
335368 If unsure, say N.
336
-
337
-config MTD_GPIO_ADDR
338
- tristate "GPIO-assisted Flash Chip Support"
339
- depends on GPIOLIB || COMPILE_TEST
340
- depends on MTD_COMPLEX_MAPPINGS
341
- help
342
- Map driver which allows flashes to be partially physically addressed
343
- and assisted by GPIOs.
344
-
345
- If compiled as a module, it will be called gpio-addr-flash.
346369
347370 config MTD_UCLINUX
348371 bool "Generic uClinux RAM/ROM filesystem support"
....@@ -399,14 +422,5 @@
399422 and/or MTD_PLATRAM according to the devices on your module.
400423
401424 When built as a module, it will be called pismo.ko
402
-
403
-config MTD_LATCH_ADDR
404
- tristate "Latch-assisted Flash Chip Support"
405
- depends on MTD_COMPLEX_MAPPINGS
406
- help
407
- Map driver which allows flashes to be partially physically addressed
408
- and have the upper address lines set by a board specific code.
409
-
410
- If compiled as a module, it will be called latch-addr-flash.
411425
412426 endmenu