xref: /openbmc/linux/drivers/mtd/parsers/Kconfig (revision ed1666f6)
1config MTD_PARSER_TRX
2	tristate "Parser for TRX format partitions"
3	depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST)
4	help
5	  TRX is a firmware format used by Broadcom on their devices. It
6	  may contain up to 3/4 partitions (depending on the version).
7	  This driver will parse TRX header and report at least two partitions:
8	  kernel and rootfs.
9
10config MTD_SHARPSL_PARTS
11	tristate "Sharp SL Series NAND flash partition parser"
12	depends on MTD_NAND_SHARPSL || MTD_NAND_TMIO || COMPILE_TEST
13	help
14	  This provides the read-only FTL logic necessary to read the partition
15	  table from the NAND flash of Sharp SL Series (Zaurus) and the MTD
16	  partition parser using this code.
17
18config MTD_REDBOOT_PARTS
19	tristate "RedBoot partition table parsing"
20	help
21	  RedBoot is a ROM monitor and bootloader which deals with multiple
22	  'images' in flash devices by putting a table one of the erase
23	  blocks on the device, similar to a partition table, which gives
24	  the offsets, lengths and names of all the images stored in the
25	  flash.
26
27	  If you need code which can detect and parse this table, and register
28	  MTD 'partitions' corresponding to each image in the table, enable
29	  this option.
30
31	  You will still need the parsing functions to be called by the driver
32	  for your particular device. It won't happen automatically. The
33	  SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for
34	  example.
35
36if MTD_REDBOOT_PARTS
37
38config MTD_REDBOOT_DIRECTORY_BLOCK
39	int "Location of RedBoot partition table"
40	default "-1"
41	help
42	  This option is the Linux counterpart to the
43	  CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK RedBoot compile time
44	  option.
45
46	  The option specifies which Flash sectors holds the RedBoot
47	  partition table.  A zero or positive value gives an absolute
48	  erase block number. A negative value specifies a number of
49	  sectors before the end of the device.
50
51	  For example "2" means block number 2, "-1" means the last
52	  block and "-2" means the penultimate block.
53
54config MTD_REDBOOT_PARTS_UNALLOCATED
55	bool "Include unallocated flash regions"
56	help
57	  If you need to register each unallocated flash region as a MTD
58	  'partition', enable this option.
59
60config MTD_REDBOOT_PARTS_READONLY
61	bool "Force read-only for RedBoot system images"
62	help
63	  If you need to force read-only for 'RedBoot', 'RedBoot Config' and
64	  'FIS directory' images, enable this option.
65
66endif # MTD_REDBOOT_PARTS
67