Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jonas Gorski | dd84cb0 | 2019-03-28 15:19:08 +0100 | [diff] [blame] | 2 | config MTD_PARSER_IMAGETAG |
| 3 | tristate "Parser for BCM963XX Image Tag format partitions" |
| 4 | depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST |
| 5 | select CRC32 |
| 6 | help |
| 7 | Image Tag is the firmware header used by broadcom on their xDSL line |
| 8 | of devices. It is used to describe the offsets and lengths of kernel |
| 9 | and rootfs partitions. |
| 10 | This driver adds support for parsing a partition with an Image Tag |
| 11 | header and creates up to two partitions, kernel and rootfs. |
| 12 | |
Linus Walleij | 2aa3b8e | 2019-05-02 16:30:26 +0200 | [diff] [blame] | 13 | config MTD_AFS_PARTS |
| 14 | tristate "ARM Firmware Suite partition parsing" |
| 15 | depends on (ARM || ARM64) |
| 16 | help |
| 17 | The ARM Firmware Suite allows the user to divide flash devices into |
| 18 | multiple 'images'. Each such image has a header containing its name |
| 19 | and offset/size etc. |
| 20 | |
| 21 | If you need code which can detect and parse these tables, and |
| 22 | register MTD 'partitions' corresponding to each image detected, |
| 23 | enable this option. |
| 24 | |
| 25 | You will still need the parsing functions to be called by the driver |
| 26 | for your particular device. It won't happen automatically. The |
| 27 | 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example. |
| 28 | |
Rafał Miłecki | 99352af | 2017-06-21 08:26:47 +0200 | [diff] [blame] | 29 | config MTD_PARSER_TRX |
| 30 | tristate "Parser for TRX format partitions" |
| 31 | depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST) |
| 32 | help |
| 33 | TRX is a firmware format used by Broadcom on their devices. It |
| 34 | may contain up to 3/4 partitions (depending on the version). |
| 35 | This driver will parse TRX header and report at least two partitions: |
| 36 | kernel and rootfs. |
Andrea Adami | 8a4580e | 2017-08-31 23:05:07 +0200 | [diff] [blame] | 37 | |
| 38 | config MTD_SHARPSL_PARTS |
| 39 | tristate "Sharp SL Series NAND flash partition parser" |
| 40 | depends on MTD_NAND_SHARPSL || MTD_NAND_TMIO || COMPILE_TEST |
| 41 | help |
| 42 | This provides the read-only FTL logic necessary to read the partition |
| 43 | table from the NAND flash of Sharp SL Series (Zaurus) and the MTD |
| 44 | partition parser using this code. |
Linus Walleij | 43f1fd0 | 2018-11-10 21:01:25 +0100 | [diff] [blame] | 45 | |
| 46 | config MTD_REDBOOT_PARTS |
| 47 | tristate "RedBoot partition table parsing" |
| 48 | help |
| 49 | RedBoot is a ROM monitor and bootloader which deals with multiple |
| 50 | 'images' in flash devices by putting a table one of the erase |
| 51 | blocks on the device, similar to a partition table, which gives |
| 52 | the offsets, lengths and names of all the images stored in the |
| 53 | flash. |
| 54 | |
| 55 | If you need code which can detect and parse this table, and register |
| 56 | MTD 'partitions' corresponding to each image in the table, enable |
| 57 | this option. |
| 58 | |
| 59 | You will still need the parsing functions to be called by the driver |
| 60 | for your particular device. It won't happen automatically. The |
| 61 | SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for |
| 62 | example. |
| 63 | |
| 64 | if MTD_REDBOOT_PARTS |
| 65 | |
| 66 | config MTD_REDBOOT_DIRECTORY_BLOCK |
| 67 | int "Location of RedBoot partition table" |
| 68 | default "-1" |
| 69 | help |
| 70 | This option is the Linux counterpart to the |
| 71 | CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time |
| 72 | option. |
| 73 | |
| 74 | The option specifies which Flash sectors holds the RedBoot |
| 75 | partition table. A zero or positive value gives an absolute |
| 76 | erase block number. A negative value specifies a number of |
| 77 | sectors before the end of the device. |
| 78 | |
| 79 | For example "2" means block number 2, "-1" means the last |
| 80 | block and "-2" means the penultimate block. |
| 81 | |
| 82 | config MTD_REDBOOT_PARTS_UNALLOCATED |
| 83 | bool "Include unallocated flash regions" |
| 84 | help |
| 85 | If you need to register each unallocated flash region as a MTD |
| 86 | 'partition', enable this option. |
| 87 | |
| 88 | config MTD_REDBOOT_PARTS_READONLY |
| 89 | bool "Force read-only for RedBoot system images" |
| 90 | help |
| 91 | If you need to force read-only for 'RedBoot', 'RedBoot Config' and |
| 92 | 'FIS directory' images, enable this option. |
| 93 | |
| 94 | endif # MTD_REDBOOT_PARTS |