xref: /OK3568_Linux_fs/kernel/drivers/rkflash/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# SPDX-License-Identifier: GPL-2.0
2
3if ARCH_ROCKCHIP
4
5menuconfig RK_FLASH
6	tristate "Rockchip Flash Devices Support"
7	select ROCKCHIP_VENDOR_STORAGE
8	select ROCKCHIP_FLASH_VENDOR_STORAGE
9	default n
10	help
11	  This enables support for Rockchip Flash Devices including Nandc Slc
12	  Nand, SFC Spi Nand and SFC Spi Nor.
13
14	  They're block interface.
15
16	  Say Y when you have a board with one of them.
17
18if RK_FLASH
19
20comment "Rockchip Flash Devices"
21
22config RK_SFTL
23	tristate "Rockchip Slc Nand FTL support"
24	default y
25	depends on (RK_NAND || (RK_SFC_NAND && RK_SFC_NAND_MTD !=y))
26	help
27	  This enables support for Slc Nand FTL.
28
29	  Say Y when you have a board with Slc Nand Flash register as block device.
30
31config RK_NANDC_NAND
32	tristate "Rockchip NANDC Slc Nand Devices support"
33	default n
34	depends on RK_NAND != y
35	help
36	  This enables support for NANDC Slc Nand Devices.
37
38	  It's block interface, 512Kb/sector.
39
40	  Say Y when you have a board with Slc Nand Flash supported by Rockchip
41	  Nandc controller.
42
43config RK_SFC_NAND
44	tristate "Rockchip SFC Spi Nand Devices support"
45	default n
46	depends on RK_NAND != y
47	help
48	  This enables support for Rockchip SFC Spi Nand Devices.
49
50	  It's block interface, 512Kb/sector.
51
52	  Say Y when you have a board with Spi Nand Flash supported by Rockchip
53	  Serial Flash Controller(SFC).
54
55config RK_SFC_NAND_MTD
56	bool "RK SFC NAND mtd Interface Support"
57	select ROCKCHIP_MTD_VENDOR_STORAGE
58	default n
59	depends on RK_SFC_NAND && MTD
60	help
61	  Enable mtd interface for SFC_NAND device.
62
63	  Say Y when you wanna use mtd interface for SFC_NAND flash.
64
65config RK_SFC_NOR
66	tristate "Rockchip SFC Spi Nor Devices Support"
67	select CRYPTO
68	select CRYPTO_LIB_ARC4
69	default n
70	help
71	  This enables support for Rockchip SFC Spi Nor Devices.
72
73	  It's block interface,512Kb/sector.
74
75	  Say Y when you have a board with Spi Nor Flash supported by Rockchip
76	  Serial Flash Controller(SFC).
77
78config RK_SFC_NOR_MTD
79	bool "RK SFC NOR mtd Interface Support"
80	default n
81	depends on RK_SFC_NOR && MTD
82	help
83	  Enable mtd interface for SFC_NOR device.
84
85	  Say Y when you wanna use mtd interface for SFC_NOR flash.
86
87endif # RK_FLASH
88
89endif # ARCH_ROCKCHIP
90