xref: /openbmc/u-boot/drivers/mtd/Kconfig (revision 2fe88d452268d61b5ca9cb0b1dda2974cc43faeb)
1d8587993SThomas Choumenu "MTD Support"
2d8587993SThomas Chou
34048a5c5SMiquel Raynalconfig MTD_PARTITIONS
44048a5c5SMiquel Raynal	bool
54048a5c5SMiquel Raynal
6d8587993SThomas Chouconfig MTD
7d8587993SThomas Chou	bool "Enable Driver Model for MTD drivers"
8d8587993SThomas Chou	depends on DM
9d8587993SThomas Chou	help
10d8587993SThomas Chou	  Enable driver model for Memory Technology Devices (MTD), such as
11d8587993SThomas Chou	  flash, RAM and similar chips, often used for solid state file
12d8587993SThomas Chou	  systems on embedded devices.
13d8587993SThomas Chou
14e856bdcfSMasahiro Yamadaconfig MTD_NOR_FLASH
15e856bdcfSMasahiro Yamada	bool "Enable parallel NOR flash support"
16e856bdcfSMasahiro Yamada	help
17e856bdcfSMasahiro Yamada	  Enable support for parallel NOR flash.
18e856bdcfSMasahiro Yamada
199c5b0097SAdam Fordconfig MTD_DEVICE
209c5b0097SAdam Ford	bool "Enable MTD Device for NAND and ONENAND devices"
219c5b0097SAdam Ford	help
229c5b0097SAdam Ford	  Adds the MTD device infrastructure from the Linux kernel.
239c5b0097SAdam Ford	  Needed for mtdparts command support.
249c5b0097SAdam Ford
259c5b0097SAdam Fordconfig MTD_PARTITIONS
269c5b0097SAdam Ford	bool "Add MTD Partioning infrastructure"
279c5b0097SAdam Ford	help
289c5b0097SAdam Ford	  Adds the MTD partitioning infrastructure from the Linux
299c5b0097SAdam Ford	  kernel. Needed for UBI support.
309c5b0097SAdam Ford
31*2fe88d45SAdam Fordconfig FLASH_CFI_DRIVER
32*2fe88d45SAdam Ford	bool "Enable CFI Flash driver"
33*2fe88d45SAdam Ford	help
34*2fe88d45SAdam Ford	  The Common Flash Interface specification was developed by Intel,
35*2fe88d45SAdam Ford	  AMD and other flash manufactures. It provides a universal method
36*2fe88d45SAdam Ford	  for probing the capabilities of flash devices. If you wish to
37*2fe88d45SAdam Ford	  support any device that is CFI-compliant, you need to enable this
38*2fe88d45SAdam Ford	  option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>
39*2fe88d45SAdam Ford	  for more information on CFI.
40*2fe88d45SAdam Ford
41f1056910SThomas Chouconfig CFI_FLASH
42f1056910SThomas Chou	bool "Enable Driver Model for CFI Flash driver"
43f1056910SThomas Chou	depends on MTD
44f1056910SThomas Chou	help
45f1056910SThomas Chou	  The Common Flash Interface specification was developed by Intel,
46f1056910SThomas Chou	  AMD and other flash manufactures. It provides a universal method
47f1056910SThomas Chou	  for probing the capabilities of flash devices. If you wish to
48f1056910SThomas Chou	  support any device that is CFI-compliant, you need to enable this
49f1056910SThomas Chou	  option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>
50f1056910SThomas Chou	  for more information on CFI.
51f1056910SThomas Chou
52*2fe88d45SAdam Fordconfig SYS_FLASH_USE_BUFFER_WRITE
53*2fe88d45SAdam Ford	bool "Enable buffered writes to flash"
54*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
55*2fe88d45SAdam Ford	help
56*2fe88d45SAdam Ford	  Use buffered writes to flash.
57*2fe88d45SAdam Ford
58*2fe88d45SAdam Fordconfig FLASH_CFI_MTD
59*2fe88d45SAdam Ford	bool "Enable CFI MTD driver"
60*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
61*2fe88d45SAdam Ford	help
62*2fe88d45SAdam Ford	  This option enables the building of the cfi_mtd driver
63*2fe88d45SAdam Ford	  in the drivers directory. The driver exports CFI flash
64*2fe88d45SAdam Ford	  to the MTD layer.
65*2fe88d45SAdam Ford
66*2fe88d45SAdam Fordconfig SYS_FLASH_PROTECTION
67*2fe88d45SAdam Ford	bool "Use hardware flash protection"
68*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
69*2fe88d45SAdam Ford	help
70*2fe88d45SAdam Ford	  If defined, hardware flash sectors protection is used
71*2fe88d45SAdam Ford	  instead of U-Boot software protection.
72*2fe88d45SAdam Ford
73*2fe88d45SAdam Fordconfig SYS_FLASH_CFI
74*2fe88d45SAdam Ford	bool "Define extra elements in CFI for flash geometry"
75*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
76*2fe88d45SAdam Ford	help
77*2fe88d45SAdam Ford	  Define if the flash driver uses extra elements in the
78*2fe88d45SAdam Ford	  common flash structure for storing flash geometry.
79*2fe88d45SAdam Ford
8038a0f36eSThomas Chouconfig ALTERA_QSPI
8138a0f36eSThomas Chou	bool "Altera Generic Quad SPI Controller"
8238a0f36eSThomas Chou	depends on MTD
8338a0f36eSThomas Chou	help
8438a0f36eSThomas Chou	  This enables access to Altera EPCQ/EPCS flash chips using the
8538a0f36eSThomas Chou	  Altera Generic Quad SPI Controller. The controller converts SPI
8638a0f36eSThomas Chou	  NOR flash to parallel flash interface. Please find details on the
8738a0f36eSThomas Chou	  "Embedded Peripherals IP User Guide" of Altera.
8838a0f36eSThomas Chou
895c990456SPurna Chandra Mandalconfig FLASH_PIC32
905c990456SPurna Chandra Mandal	bool "Microchip PIC32 Flash driver"
915c990456SPurna Chandra Mandal	depends on MACH_PIC32 && MTD
925c990456SPurna Chandra Mandal	help
935c990456SPurna Chandra Mandal	  This enables access to Microchip PIC32 internal non-CFI flash
945c990456SPurna Chandra Mandal	  chips through PIC32 Non-Volatile-Memory Controller.
955c990456SPurna Chandra Mandal
96a405a55bSMarek Vasutconfig RENESAS_RPC_HF
97a405a55bSMarek Vasut	bool "Renesas RCar Gen3 RPC Hyperflash driver"
98a405a55bSMarek Vasut	depends on RCAR_GEN3 && MTD
99a405a55bSMarek Vasut	help
100a405a55bSMarek Vasut	  This enables access to Hyperflash memory through the Renesas
101a405a55bSMarek Vasut	  RCar Gen3 RPC controller.
102a405a55bSMarek Vasut
1034b0abf9fSMasahiro Yamadasource "drivers/mtd/nand/Kconfig"
104f94a1bedSSimon Glass
105f94a1bedSSimon Glasssource "drivers/mtd/spi/Kconfig"
1068f2fe0c8SHeiko Schocher
1078f2fe0c8SHeiko Schochersource "drivers/mtd/ubi/Kconfig"
108ce9bdc87SMiquel Raynal
109ce9bdc87SMiquel Raynalendmenu
110