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