summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lm/Kconfig
blob: c1266c4739c1fb62847865ec5219aaa0349bf8ed (plain) (blame)
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#

comment "Stellaris Configuration Options"

choice
	prompt "Stellaris Chip Selection"
	default ARCH_CHIP_LM3S6965
	depends on ARCH_CHIP_LM

config ARCH_CHIP_LM3S6918
	bool "LM3S6918"
	select ARCH_CORTEXM3
	select ARCH_CHIP_LM3S
	select LM_HAVE_SSI1

config ARCH_CHIP_LM3S9B96
	bool "LM3S9B96"
	select ARCH_CORTEXM3
	select ARCH_CHIP_LM3S

config ARCH_CHIP_LM3S6432
	bool "LM3S6432"
	select ARCH_CORTEXM3
	select ARCH_CHIP_LM3S

config ARCH_CHIP_LM3S6965
	bool "LM3S6965"
	select ARCH_CORTEXM3
	select ARCH_CHIP_LM3S

config ARCH_CHIP_LM3S8962
	bool "LM3S8962"
	select ARCH_CORTEXM3
	select ARCH_CHIP_LM3S

config ARCH_CHIP_LM4F120
	bool "LM4F120"
	select ARCH_CORTEXM4
	select ARCH_CHIP_LM4F
	select ARCH_HAVE_FPU

endchoice

# Chip families

config ARCH_CHIP_LM3S
	bool

config ARCH_CHIP_LM4F
	bool

config LM_HAVE_SSI1
	bool

config LM_REVA2
	bool "Rev A2"
	default n
	---help---
		Some early silicon returned an increase LDO voltage or 2.75V to work
		around a PLL bug

menu "Stellaris Peripheral Support"

config LM_UART0
	bool "UART0"
	select ARCH_HAVE_UART0
	default n

config LM_UART1
	bool "UART1"
	select ARCH_HAVE_UART1
	default n

config LM_UART2
	bool "UART2"
	select ARCH_HAVE_UART2
	default n

config LM_UART3
	bool "UART3"
	default n
	depends on ARCH_CHIP_LM4F
	select ARCH_HAVE_UART3

config LM_UART4
	bool "UART4"
	default n
	depends on ARCH_CHIP_LM4F
	select ARCH_HAVE_UART4

config LM_UART5
	bool "UART5"
	default n
	depends on ARCH_CHIP_LM4F
	select ARCH_HAVE_UART5

config LM_UART6
	bool "UART6"
	default n
	depends on ARCH_CHIP_LM4F
	select ARCH_HAVE_UART6

config LM_UART7
	bool "UART7"
	default n
	depends on ARCH_CHIP_LM4F
	select ARCH_HAVE_UART7

config SSI0_DISABLE
	bool "Disable SSI0"
	default y

config SSI1_DISABLE
	bool "Disable SSI1"
	default y

config LM_ETHERNET
	bool "Stellaris Ethernet"
	default n
	---help---
		This must be set (along with NET) to build the Stellaris Ethernet driver.

config LM_FLASH
	bool "Stellaris internal FLASH"
	default n
	---help---
		Enable MTD driver support for internal FLASH.

endmenu

menu "Disable GPIO Interrupts"

config LM_DISABLE_GPIOA_IRQS
	bool "Disable GPIOA IRQs"
	default n

config LM_DISABLE_GPIOB_IRQS
	bool "Disable GPIOB IRQs"
	default n

config LM_DISABLE_GPIOC_IRQS
	bool "Disable GPIOC IRQs"
	default n

config LM_DISABLE_GPIOD_IRQS
	bool "Disable GPIOD IRQs"
	default n

config LM_DISABLE_GPIOE_IRQS
	bool "Disable GPIOE IRQs"
	default n

config LM_DISABLE_GPIOF_IRQS
	bool "Disable GPIOF IRQs"
	default n

config LM_DISABLE_GPIOG_IRQS
	bool "Disable GPIOG IRQs"
	default n

config LM_DISABLE_GPIOH_IRQS
	bool "Disable GPIOH IRQs"
	default n

config LM_DISABLE_GPIOJ_IRQS
	bool "Disable GPIOJ IRQs"
	default n

endmenu

if LM_ETHERNET
menu "Stellaris Ethernet Configuration"

config LM_ETHLEDS
	bool "Ethernet LEDs"
	default n
	---help---
	Enable to use Ethernet LEDs on the board.

config LM_BOARDMAC
	bool "Board MAC"
	default n
	---help---
		If the board-specific logic can provide a MAC address (via
		lm_ethernetmac()), then this should be selected.

config LM_ETHHDUPLEX
	bool "Force Half Duplex"
	default n
	---help---
		Set to force half duplex operation

config LM_ETHNOAUTOCRC
	bool "Disable auto-CRC"
	default n
	---help---
		Set to suppress auto-CRC generation

config LM_ETHNOPAD
	bool "Disable Tx Padding"
	default n
	---help---
		Set to suppress Tx padding

config LM_MULTICAST
	bool "Enable Multicast"
	default n
	---help---
		Set to enable multicast frames

config LM_PROMISCUOUS
	bool "Enable Promiscuous Mode"
	default n
	---help---
		Set to enable promiscuous mode

config LM_TIMESTAMP
	bool "Enable Timestamping"
	default n

config LM_BADCRC
	bool "Enable Bad CRC Rejection"
	default n
	---help---
		Set to enable bad CRC rejection.

config M3S_DUMPPACKET
	bool "Dump Packets"
	default n
	---help---
		Dump each packet received/sent to the console.

endmenu
endif

if !SSI0_DISABLE || !SSI1_DISABLE
menu "Stellaris SSI Configuration"

config SSI_POLLWAIT
	bool "Poll Wait (No-Interrupt) Mode"
	default y

config SSI_TXLIMIT
	int "Tx Limit"
	default 4
	---help---
		Default of 4 assumes half of the 8 entry FIFO

endmenu
endif

if LM_FLASH
menu "Stellaris Internal Flash Driver Configuration"

config LM_FLASH_STARTPAGE
	int "First page accessible by the MTD driver"
	default 250
	---help---
		To prevent accessing FLASH sections where code is stored.

endmenu
endif