Kconfig 5.5 KB
Newer Older
1 2
if ARCH_AT91

B
Boris BREZILLON 已提交
3 4 5
config HAVE_AT91_UTMI
	bool

B
Boris BREZILLON 已提交
6 7 8
config HAVE_AT91_USB_CLK
	bool

9 10 11 12 13 14
config HAVE_AT91_DBGU0
	bool

config HAVE_AT91_DBGU1
	bool

15 16 17
config HAVE_AT91_DBGU2
	bool

18 19 20 21 22
config AT91_USE_OLD_CLK
	bool

config COMMON_CLK_AT91
	bool
23
	default USE_OF && !AT91_USE_OLD_CLK
24 25 26 27
	select COMMON_CLK

config OLD_CLK_AT91
	bool
28
	default AT91_USE_OLD_CLK
29

30 31 32 33 34
config OLD_IRQ_AT91
	bool
	select MULTI_IRQ_HANDLER
	select SPARSE_IRQ

B
Boris BREZILLON 已提交
35 36 37
config HAVE_AT91_SMD
	bool

38 39 40
config HAVE_AT91_H32MX
	bool

41 42
config SOC_AT91SAM9
	bool
43
	select ATMEL_AIC_IRQ if !OLD_IRQ_AT91
44
	select CPU_ARM926T
45
	select GENERIC_CLOCKEVENTS
46 47
	select MEMORY if USE_OF
	select ATMEL_SDRAMC if USE_OF
48

49 50
config SOC_SAMA5
	bool
51
	select ATMEL_AIC5_IRQ
52 53
	select CPU_V7
	select GENERIC_CLOCKEVENTS
A
Arnd Bergmann 已提交
54
	select USE_OF
55 56
	select MEMORY
	select ATMEL_SDRAMC
57
	select PHYLIB if NETDEVICES
58

59 60
menu "Atmel AT91 System-on-Chip"

61 62 63 64 65
choice

	prompt "Core type"

config SOC_SAM_V4_V5
66
	bool "ARM9 AT91SAM9/AT91RM9200"
67
	help
68 69
	  Select this if you are using one of Atmel's AT91SAM9 or
	  AT91RM9200 SoC.
70

71 72 73 74 75
config SOC_SAM_V7
	bool "Cortex A5"
	help
	  Select this if you are using one of Atmel's SAMA5D3 SoC.

76 77
endchoice

78
comment "Atmel AT91 Processor"
79

80 81 82 83 84 85
if SOC_SAM_V7
config SOC_SAMA5D3
	bool "SAMA5D3 family"
	select SOC_SAMA5
	select HAVE_FB_ATMEL
	select HAVE_AT91_DBGU1
B
Boris BREZILLON 已提交
86
	select HAVE_AT91_UTMI
B
Boris BREZILLON 已提交
87
	select HAVE_AT91_SMD
B
Boris BREZILLON 已提交
88
	select HAVE_AT91_USB_CLK
89 90
	help
	  Select this if you are using one of Atmel's SAMA5D3 family SoC.
91
	  This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106

config SOC_SAMA5D4
	bool "SAMA5D4 family"
	select SOC_SAMA5
	select HAVE_AT91_DBGU2
	select CLKSRC_MMIO
	select CACHE_L2X0
	select CACHE_PL310
	select HAVE_FB_ATMEL
	select HAVE_AT91_UTMI
	select HAVE_AT91_SMD
	select HAVE_AT91_USB_CLK
	select HAVE_AT91_H32MX
	help
	  Select this if you are using one of Atmel's SAMA5D4 family SoC.
107 108
endif

109
if SOC_SAM_V4_V5
110
config SOC_AT91RM9200
111
	bool "AT91RM9200"
112
	select ATMEL_AIC_IRQ if !OLD_IRQ_AT91
113
	select CPU_ARM920T
114
	select GENERIC_CLOCKEVENTS
115
	select HAVE_AT91_DBGU0
B
Boris BREZILLON 已提交
116
	select HAVE_AT91_USB_CLK
117

118 119
config SOC_AT91SAM9260
	bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
120
	select HAVE_AT91_DBGU0
121
	select SOC_AT91SAM9
B
Boris BREZILLON 已提交
122
	select HAVE_AT91_USB_CLK
123 124 125
	help
	  Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
	  or AT91SAM9G20 SoC.
126

127 128
config SOC_AT91SAM9261
	bool "AT91SAM9261 or AT91SAM9G10"
129
	select HAVE_AT91_DBGU0
130
	select HAVE_FB_ATMEL
131
	select SOC_AT91SAM9
B
Boris BREZILLON 已提交
132
	select HAVE_AT91_USB_CLK
133 134
	help
	  Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
135

136
config SOC_AT91SAM9263
137
	bool "AT91SAM9263"
138
	select HAVE_AT91_DBGU1
139
	select HAVE_FB_ATMEL
140
	select SOC_AT91SAM9
B
Boris BREZILLON 已提交
141
	select HAVE_AT91_USB_CLK
142

143
config SOC_AT91SAM9RL
144
	bool "AT91SAM9RL"
145
	select HAVE_AT91_DBGU0
146
	select HAVE_FB_ATMEL
147
	select SOC_AT91SAM9
B
Boris BREZILLON 已提交
148
	select HAVE_AT91_UTMI
149

150
config SOC_AT91SAM9G45
151
	bool "AT91SAM9G45 or AT91SAM9M10 families"
152
	select HAVE_AT91_DBGU1
153
	select HAVE_FB_ATMEL
154
	select SOC_AT91SAM9
B
Boris BREZILLON 已提交
155
	select HAVE_AT91_UTMI
B
Boris BREZILLON 已提交
156
	select HAVE_AT91_USB_CLK
157 158 159
	help
	  Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
	  This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
160

161
config SOC_AT91SAM9X5
162
	bool "AT91SAM9x5 family"
163
	select HAVE_AT91_DBGU0
164
	select HAVE_FB_ATMEL
165
	select SOC_AT91SAM9
B
Boris BREZILLON 已提交
166
	select HAVE_AT91_UTMI
B
Boris BREZILLON 已提交
167
	select HAVE_AT91_SMD
B
Boris BREZILLON 已提交
168
	select HAVE_AT91_USB_CLK
169 170 171 172 173 174
	help
	  Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
	  This means that your SAM9 name finishes with a '5' (except if it is
	  AT91SAM9G45!).
	  This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
	  and AT91SAM9X35.
175

176 177 178 179
config SOC_AT91SAM9N12
	bool "AT91SAM9N12 family"
	select HAVE_AT91_DBGU0
	select HAVE_FB_ATMEL
180
	select SOC_AT91SAM9
B
Boris BREZILLON 已提交
181
	select HAVE_AT91_USB_CLK
182 183 184
	help
	  Select this if you are using Atmel's AT91SAM9N12 SoC.

185
# ----------------------------------------------------------
186 187
endif # SOC_SAM_V4_V5

188 189
comment "Generic Board Type"

190 191 192 193 194 195 196 197
config MACH_AT91RM9200_DT
	bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
	depends on SOC_AT91RM9200
	select USE_OF
	help
	  Select this if you want to experiment device-tree with
	  an Atmel RM9200 Evaluation Kit.

198
config MACH_AT91SAM9_DT
199
	bool "Atmel AT91SAM Evaluation Kits with device-tree support"
200
	depends on SOC_AT91SAM9
201 202 203 204 205 206 207
	select USE_OF
	help
	  Select this if you want to experiment device-tree with
	  an Atmel Evaluation Kit.

# ----------------------------------------------------------

208
comment "AT91 Feature Selections"
209

210 211 212 213 214 215 216 217 218 219 220 221 222
config AT91_SLOW_CLOCK
	bool "Suspend-to-RAM disables main oscillator"
	depends on SUSPEND
	help
	  Select this if you want Suspend-to-RAM to save the most power
	  possible (without powering off the CPU) by disabling the PLLs
	  and main oscillator so that only the 32 KiHz clock is available.

	  When only that slow-clock is available, some peripherals lose
	  functionality.  Many can't issue wakeup events unless faster
	  clocks are available.  Some lose their operating state and
	  need to be completely re-initialized.

223 224 225 226
config AT91_TIMER_HZ
       int "Kernel HZ (jiffies per second)"
       range 32 1024
       depends on ARCH_AT91
227
       default "128" if SOC_AT91RM9200
228 229 230 231 232 233 234 235 236 237 238
       default "100"
       help
	  On AT91rm9200 chips where you're using a system clock derived
	  from the 32768 Hz hardware clock, this tick rate should divide
	  it exactly: use a power-of-two value, such as 128 or 256, to
	  reduce timing errors caused by rounding.

	  On AT91sam926x chips, or otherwise when using a higher precision
	  system clock (of at least several MHz), rounding is less of a
	  problem so it can be safer to use a decimal values like 100.

239 240 241
endmenu

endif