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