summaryrefslogtreecommitdiff
path: root/target/linux/config/Config.in.flash
blob: effa41d58bc902b3e24d30b83bfa71bf99a7d748 (plain)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

menu "Flash device support"
depends on ADK_TARGET_WITH_NAND || ADK_TARGET_WITH_MTD || ADK_TARGET_QEMU

config ADK_LINUX_KERNEL_MTD
 	bool
	select ADK_LINUX_KERNEL_GENERIC_IO

config ADK_LINUX_KERNEL_GENERIC_IO
	bool

config ADK_LINUX_KERNEL_MTD_MTDRAM
	bool
 
config ADK_LINUX_KERNEL_MTD_NAND
	bool

config ADK_LINUX_KERNEL_MTD_NAND_PLATFORM
	bool

config ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
	bool

config ADK_LINUX_KERNEL_MTD_CONCAT
	bool

config ADK_LINUX_KERNEL_MTD_CHAR
	bool

config ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
	bool

config ADK_LINUX_KERNEL_MTD_BLKDEVS
	bool

config ADK_LINUX_KERNEL_MTD_BLOCK
	bool

config ADK_LINUX_KERNEL_MTD_PARTITIONS
	bool

config ADK_LINUX_KERNEL_MTD_ROOTFS_ROOT_DEV
	bool

config ADK_LINUX_KERNEL_MTD_CFI
	bool

config ADK_LINUX_KERNEL_MTD_GEN_PROBE
	bool

config ADK_LINUX_KERNEL_MTD_PHYSMAP
	bool

config ADK_LINUX_KERNEL_MTD_PHYSMAP_OF
	bool

config ADK_LINUX_KERNEL_MTD_CFI_ADV_OPTIONS
	bool

config ADK_LINUX_KERNEL_MTD_NAND_RB4XX
	bool

config ADK_LINUX_KERNEL_MTD_AR7_PARTS
	bool

config ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
	bool

config ADK_LINUX_KERNEL_MTD_CFI_AMDSTD
	bool

config ADK_LINUX_KERNEL_MTD_CFI_STAA
	bool

config ADK_LINUX_KERNEL_MTD_OF_PARTS
	bool

config ADK_LINUX_KERNEL_ETRAX_AXISFLASHMAP
	bool "Axis Flashmap driver"
	select ADK_LINUX_KERNEL_BLOCK
	select ADK_LINUX_KERNEL_MTD
	select ADK_LINUX_KERNEL_MTD_PARTITIONS
	select ADK_LINUX_KERNEL_MTD_CHAR
	select ADK_LINUX_KERNEL_MTD_BLKDEVS
	select ADK_LINUX_KERNEL_MTD_BLOCK
	select ADK_LINUX_KERNEL_MTD_ROOTFS_ROOT_DEV
	select ADK_LINUX_KERNEL_MTD_CFI
	select ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
	depends on ADK_TARGET_SYSTEM_FOXBOARD_LX832
	default y if ADK_TARGET_SYSTEM_FOXBOARD_LX832

config ADK_LINUX_KERNEL_MTD_M25P80
	bool "MTD M25P80 driver"
	select ADK_LINUX_KERNEL_BLOCK
	select ADK_LINUX_KERNEL_MTD
	select ADK_LINUX_KERNEL_MTD_PARTITIONS
	select ADK_LINUX_KERNEL_MTD_CHAR
	select ADK_LINUX_KERNEL_MTD_BLKDEVS
	select ADK_LINUX_KERNEL_MTD_BLOCK
	select ADK_LINUX_KERNEL_MTD_ROOTFS_ROOT_DEV
	select ADK_LINUX_KERNEL_MTD_CFI
	select ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
	select ADK_LINUX_KERNEL_MTD_GEN_PROBE
	select ADK_LINUX_KERNEL_MTD_PHYSMAP
	select ADK_LINUX_KERNEL_MTD_PHYSMAP_OF
	select ADK_LINUX_KERNEL_MTD_OF_PARTS
	select ADK_LINUX_KERNEL_SPI
	select ADK_LINUX_KERNEL_SPI_MASTER
	depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
		|| ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
	default n

config ADK_LINUX_KERNEL_MTD_NAND_PLATFORM
	bool "NAND platform driver"
	select ADK_LINUX_KERNEL_BLOCK
	select ADK_LINUX_KERNEL_MISC_FILESYSTEMS
	select ADK_LINUX_KERNEL_MTD
	select ADK_LINUX_KERNEL_MTD_PARTITIONS
	select ADK_LINUX_KERNEL_MTD_NAND
	select ADK_LINUX_KERNEL_MTD_CHAR
	select ADK_LINUX_KERNEL_MTD_BLKDEVS
	select ADK_LINUX_KERNEL_MTD_BLOCK
	depends on ADK_TARGET_SYSTEM_MIKROTIK_RB532
	default y if ADK_TARGET_SYSTEM_MIKROTIK_RB532
	default n
	help
	  platform nand driver

config ADK_LINUX_KERNEL_MTD_NAND_FSL_NFC
	bool "NAND driver for Kinetis K70"
	select ADK_LINUX_KERNEL_MISC_FILESYSTEMS
	select ADK_LINUX_KERNEL_MTD
	select ADK_LINUX_KERNEL_MTD_PARTITIONS
	select ADK_LINUX_KERNEL_MTD_NAND
	select ADK_LINUX_KERNEL_MTD_CHAR
	select ADK_LINUX_KERNEL_MTD_CONCAT
	select ADK_LINUX_KERNEL_MTD_BLKDEVS
	select ADK_LINUX_KERNEL_MTD_BLOCK
	select ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
	depends on ADK_TARGET_SYSTEM_KINETIS_K70
	default y if ADK_TARGET_SYSTEM_KINETIS_K70
	default n

config ADK_HARDWARE_FLASH_GRASSHOPPER
	bool "enable flash driver for grasshopper"
	select ADK_LINUX_KERNEL_MTD
	select ADK_LINUX_KERNEL_MTD_BLKDEVS
	select ADK_LINUX_KERNEL_MTD_BLOCK
	select ADK_LINUX_KERNEL_MTD_CMDLINE_PARTS
	select ADK_LINUX_KERNEL_MTD_CFI
	select ADK_LINUX_KERNEL_MTD_CFI_INTELEXT
	select ADK_LINUX_KERNEL_MTD_CFI_AMDSTD
	select ADK_LINUX_KERNEL_MTD_CFI_STAA
	select ADK_LINUX_KERNEL_MTD_PHYSMAP
	select ADK_LINUX_KERNEL_MTD_PHYSMAP_OF
	depends on ADK_TARGET_SYSTEM_GRASSHOPPER
	default y if ADK_TARGET_SYSTEM_GRASSHOPPER
	default n

config ADK_TARGET_MTD_SIZE
	int
	depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
		|| ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605 \
		|| ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9 \
		|| ADK_TARGET_SYSTEM_MIKROTIK_RB532
	default "16777216" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800
	default "33554432" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
	default "134217728" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
	default "0"

config ADK_TARGET_FLASH_PEB_SIZE
	int
	default 131072 if ADK_TARGET_SYSTEM_MIKROTIK_RB532
	help
	  Physical Erase Block size.

config ADK_TARGET_FLASH_PAGE_SIZE
	int
	default 2048 if ADK_TARGET_SYSTEM_MIKROTIK_RB532
	help
	  Minimum input/output size.

config ADK_TARGET_FLASH_SUBPAGE_SIZE
	int
	default 512 if ADK_TARGET_SYSTEM_MIKROTIK_RB532
	help
	  Size of NAND sub-pages (if supported).

endmenu