xref: /openbmc/u-boot/drivers/mtd/Kconfig (revision 20274b0626b41a5709530afcf6cea6dd9c256e6c)
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
25*2fe88d45SAdam Fordconfig FLASH_CFI_DRIVER
26*2fe88d45SAdam Ford	bool "Enable CFI Flash driver"
27*2fe88d45SAdam Ford	help
28*2fe88d45SAdam Ford	  The Common Flash Interface specification was developed by Intel,
29*2fe88d45SAdam Ford	  AMD and other flash manufactures. It provides a universal method
30*2fe88d45SAdam Ford	  for probing the capabilities of flash devices. If you wish to
31*2fe88d45SAdam Ford	  support any device that is CFI-compliant, you need to enable this
32*2fe88d45SAdam Ford	  option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>
33*2fe88d45SAdam Ford	  for more information on CFI.
34*2fe88d45SAdam Ford
35f1056910SThomas Chouconfig CFI_FLASH
36f1056910SThomas Chou	bool "Enable Driver Model for CFI Flash driver"
37f1056910SThomas Chou	depends on MTD
38f1056910SThomas Chou	help
39f1056910SThomas Chou	  The Common Flash Interface specification was developed by Intel,
40f1056910SThomas Chou	  AMD and other flash manufactures. It provides a universal method
41f1056910SThomas Chou	  for probing the capabilities of flash devices. If you wish to
42f1056910SThomas Chou	  support any device that is CFI-compliant, you need to enable this
43f1056910SThomas Chou	  option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>
44f1056910SThomas Chou	  for more information on CFI.
45f1056910SThomas Chou
46*2fe88d45SAdam Fordconfig SYS_FLASH_USE_BUFFER_WRITE
47*2fe88d45SAdam Ford	bool "Enable buffered writes to flash"
48*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
49*2fe88d45SAdam Ford	help
50*2fe88d45SAdam Ford	  Use buffered writes to flash.
51*2fe88d45SAdam Ford
52*2fe88d45SAdam Fordconfig FLASH_CFI_MTD
53*2fe88d45SAdam Ford	bool "Enable CFI MTD driver"
54*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
55*2fe88d45SAdam Ford	help
56*2fe88d45SAdam Ford	  This option enables the building of the cfi_mtd driver
57*2fe88d45SAdam Ford	  in the drivers directory. The driver exports CFI flash
58*2fe88d45SAdam Ford	  to the MTD layer.
59*2fe88d45SAdam Ford
60*2fe88d45SAdam Fordconfig SYS_FLASH_PROTECTION
61*2fe88d45SAdam Ford	bool "Use hardware flash protection"
62*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
63*2fe88d45SAdam Ford	help
64*2fe88d45SAdam Ford	  If defined, hardware flash sectors protection is used
65*2fe88d45SAdam Ford	  instead of U-Boot software protection.
66*2fe88d45SAdam Ford
67*2fe88d45SAdam Fordconfig SYS_FLASH_CFI
68*2fe88d45SAdam Ford	bool "Define extra elements in CFI for flash geometry"
69*2fe88d45SAdam Ford	depends on FLASH_CFI_DRIVER
70*2fe88d45SAdam Ford	help
71*2fe88d45SAdam Ford	  Define if the flash driver uses extra elements in the
72*2fe88d45SAdam Ford	  common flash structure for storing flash geometry.
73*2fe88d45SAdam Ford
7438a0f36eSThomas Chouconfig ALTERA_QSPI
7538a0f36eSThomas Chou	bool "Altera Generic Quad SPI Controller"
7638a0f36eSThomas Chou	depends on MTD
7738a0f36eSThomas Chou	help
7838a0f36eSThomas Chou	  This enables access to Altera EPCQ/EPCS flash chips using the
7938a0f36eSThomas Chou	  Altera Generic Quad SPI Controller. The controller converts SPI
8038a0f36eSThomas Chou	  NOR flash to parallel flash interface. Please find details on the
8138a0f36eSThomas Chou	  "Embedded Peripherals IP User Guide" of Altera.
8238a0f36eSThomas Chou
835c990456SPurna Chandra Mandalconfig FLASH_PIC32
845c990456SPurna Chandra Mandal	bool "Microchip PIC32 Flash driver"
855c990456SPurna Chandra Mandal	depends on MACH_PIC32 && MTD
865c990456SPurna Chandra Mandal	help
875c990456SPurna Chandra Mandal	  This enables access to Microchip PIC32 internal non-CFI flash
885c990456SPurna Chandra Mandal	  chips through PIC32 Non-Volatile-Memory Controller.
895c990456SPurna Chandra Mandal
90a405a55bSMarek Vasutconfig RENESAS_RPC_HF
91a405a55bSMarek Vasut	bool "Renesas RCar Gen3 RPC Hyperflash driver"
92a405a55bSMarek Vasut	depends on RCAR_GEN3 && MTD
93a405a55bSMarek Vasut	help
94a405a55bSMarek Vasut	  This enables access to Hyperflash memory through the Renesas
95a405a55bSMarek Vasut	  RCar Gen3 RPC controller.
96a405a55bSMarek Vasut
974b0abf9fSMasahiro Yamadasource "drivers/mtd/nand/Kconfig"
98f94a1bedSSimon Glass
99f94a1bedSSimon Glasssource "drivers/mtd/spi/Kconfig"
1008f2fe0c8SHeiko Schocher
1018f2fe0c8SHeiko Schochersource "drivers/mtd/ubi/Kconfig"
102ce9bdc87SMiquel Raynal
103ce9bdc87SMiquel Raynalendmenu
104