Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config MTD_AR7_PARTS
  3. tristate "TI AR7 partitioning parser"
  4. help
  5. TI AR7 partitioning parser support
  6. config MTD_BCM47XX_PARTS
  7. tristate "BCM47XX partitioning parser"
  8. depends on BCM47XX || ARCH_BCM_5301X
  9. help
  10. This provides partitions parser for devices based on BCM47xx
  11. boards.
  12. config MTD_BCM63XX_PARTS
  13. bool "BCM63XX CFE partitioning parser"
  14. depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST
  15. select CRC32
  16. select MTD_PARSER_IMAGETAG
  17. help
  18. This provides partition parsing for BCM63xx devices with CFE
  19. bootloaders.
  20. config MTD_BRCM_U_BOOT
  21. tristate "Broadcom's U-Boot partition parser"
  22. depends on ARCH_BCMBCA || COMPILE_TEST
  23. help
  24. Broadcom uses a custom way of storing U-Boot environment variables.
  25. They are placed inside U-Boot partition itself at unspecified offset.
  26. It's possible to locate them by looking for a custom header with a
  27. magic value. This driver does that and creates subpartitions for
  28. each found environment variables block.
  29. config MTD_CMDLINE_PARTS
  30. tristate "Command line partition table parsing"
  31. depends on MTD
  32. help
  33. Allow generic configuration of the MTD partition tables via the kernel
  34. command line. Multiple flash resources are supported for hardware where
  35. different kinds of flash memory are available.
  36. You will still need the parsing functions to be called by the driver
  37. for your particular device. It won't happen automatically. The
  38. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  39. example.
  40. The format for the command line is as follows:
  41. mtdparts=<mtddef>[;<mtddef]
  42. <mtddef> := <mtd-id>:<partdef>[,<partdef>]
  43. <partdef> := <size>[@offset][<name>][ro]
  44. <mtd-id> := unique id used in mapping driver/device
  45. <size> := standard linux memsize OR "-" to denote all
  46. remaining space
  47. <name> := (NAME)
  48. Due to the way Linux handles the command line, no spaces are
  49. allowed in the partition definition, including mtd id's and partition
  50. names.
  51. Examples:
  52. 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
  53. mtdparts=sa1100:-
  54. Same flash, but 2 named partitions, the first one being read-only:
  55. mtdparts=sa1100:256k(ARMboot)ro,-(root)
  56. If unsure, say 'N'.
  57. config MTD_OF_PARTS
  58. tristate "OpenFirmware (device tree) partitioning parser"
  59. default y
  60. depends on OF
  61. help
  62. This provides a open firmware device tree partition parser
  63. which derives the partition map from the children of the
  64. flash memory node, as described in
  65. Documentation/devicetree/bindings/mtd/partition.txt.
  66. config MTD_OF_PARTS_BCM4908
  67. bool "BCM4908 partitioning support"
  68. depends on MTD_OF_PARTS && (ARCH_BCMBCA || COMPILE_TEST)
  69. default ARCH_BCMBCA
  70. help
  71. This provides partitions parser for BCM4908 family devices
  72. that can have multiple "firmware" partitions. It takes care of
  73. finding currently used one and backup ones.
  74. config MTD_OF_PARTS_LINKSYS_NS
  75. bool "Linksys Northstar partitioning support"
  76. depends on MTD_OF_PARTS && (ARCH_BCM_5301X || ARCH_BCMBCA || COMPILE_TEST)
  77. default ARCH_BCM_5301X
  78. help
  79. This provides partitions parser for Linksys devices based on Broadcom
  80. Northstar architecture. Linksys commonly uses fixed flash layout with
  81. two "firmware" partitions. Currently used firmware has to be detected
  82. using CFE environment variable.
  83. config MTD_PARSER_IMAGETAG
  84. tristate "Parser for BCM963XX Image Tag format partitions"
  85. depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST
  86. select CRC32
  87. help
  88. Image Tag is the firmware header used by broadcom on their xDSL line
  89. of devices. It is used to describe the offsets and lengths of kernel
  90. and rootfs partitions.
  91. This driver adds support for parsing a partition with an Image Tag
  92. header and creates up to two partitions, kernel and rootfs.
  93. config MTD_AFS_PARTS
  94. tristate "ARM Firmware Suite partition parsing"
  95. depends on (ARM || ARM64)
  96. help
  97. The ARM Firmware Suite allows the user to divide flash devices into
  98. multiple 'images'. Each such image has a header containing its name
  99. and offset/size etc.
  100. If you need code which can detect and parse these tables, and
  101. register MTD 'partitions' corresponding to each image detected,
  102. enable this option.
  103. You will still need the parsing functions to be called by the driver
  104. for your particular device. It won't happen automatically. The
  105. 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example.
  106. config MTD_PARSER_TRX
  107. tristate "Parser for TRX format partitions"
  108. depends on MTD && (BCM47XX || ARCH_BCM_5301X || ARCH_MEDIATEK || RALINK || COMPILE_TEST)
  109. help
  110. TRX is a firmware format used by Broadcom on their devices. It
  111. may contain up to 3/4 partitions (depending on the version).
  112. This driver will parse TRX header and report at least two partitions:
  113. kernel and rootfs.
  114. config MTD_SHARPSL_PARTS
  115. tristate "Sharp SL Series NAND flash partition parser"
  116. depends on MTD_NAND_SHARPSL || MTD_NAND_TMIO || COMPILE_TEST
  117. help
  118. This provides the read-only FTL logic necessary to read the partition
  119. table from the NAND flash of Sharp SL Series (Zaurus) and the MTD
  120. partition parser using this code.
  121. config MTD_REDBOOT_PARTS
  122. tristate "RedBoot partition table parsing"
  123. help
  124. RedBoot is a ROM monitor and bootloader which deals with multiple
  125. 'images' in flash devices by putting a table one of the erase
  126. blocks on the device, similar to a partition table, which gives
  127. the offsets, lengths and names of all the images stored in the
  128. flash.
  129. If you need code which can detect and parse this table, and register
  130. MTD 'partitions' corresponding to each image in the table, enable
  131. this option.
  132. You will still need the parsing functions to be called by the driver
  133. for your particular device. It won't happen automatically. The
  134. SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
  135. example.
  136. if MTD_REDBOOT_PARTS
  137. config MTD_REDBOOT_DIRECTORY_BLOCK
  138. int "Location of RedBoot partition table"
  139. default "-1"
  140. help
  141. This option is the Linux counterpart to the
  142. CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
  143. option.
  144. The option specifies which Flash sectors holds the RedBoot
  145. partition table. A zero or positive value gives an absolute
  146. erase block number. A negative value specifies a number of
  147. sectors before the end of the device.
  148. For example "2" means block number 2, "-1" means the last
  149. block and "-2" means the penultimate block.
  150. config MTD_REDBOOT_PARTS_UNALLOCATED
  151. bool "Include unallocated flash regions"
  152. help
  153. If you need to register each unallocated flash region as a MTD
  154. 'partition', enable this option.
  155. config MTD_REDBOOT_PARTS_READONLY
  156. bool "Force read-only for RedBoot system images"
  157. help
  158. If you need to force read-only for 'RedBoot', 'RedBoot Config' and
  159. 'FIS directory' images, enable this option.
  160. endif # MTD_REDBOOT_PARTS
  161. config MTD_QCOMSMEM_PARTS
  162. tristate "Qualcomm SMEM flash partition parser"
  163. depends on QCOM_SMEM
  164. help
  165. This provides support for parsing partitions from Shared Memory (SMEM)
  166. for NAND and SPI flash on Qualcomm platforms.
  167. config MTD_SERCOMM_PARTS
  168. tristate "Sercomm partition table parser"
  169. depends on MTD && RALINK
  170. help
  171. This provides partitions table parser for devices with Sercomm
  172. partition map. This partition table contains real partition
  173. offsets, which may differ from device to device depending on the
  174. number and location of bad blocks on NAND.