blob: 321210cc3be732779122d966639a048837e22e0d [file] [log] [blame]
Andrew Victor8fc5ffa2006-06-29 16:06:33 +01001if ARCH_AT91
SAN People73a59c12006-01-09 17:05:41 +00002
Boris BREZILLONf090fb32013-10-11 12:22:06 +02003config HAVE_AT91_UTMI
4 bool
5
Boris BREZILLONc84a61d2013-10-17 18:55:41 +02006config HAVE_AT91_USB_CLK
7 bool
8
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +08009config HAVE_AT91_DBGU0
10 bool
11
12config HAVE_AT91_DBGU1
13 bool
14
Boris BREZILLONc8a8c632013-10-11 09:37:46 +020015config AT91_USE_OLD_CLK
16 bool
17
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000018config AT91_PMC_UNIT
19 bool
20 default !ARCH_AT91X40
21
Boris BREZILLONc8a8c632013-10-11 09:37:46 +020022config COMMON_CLK_AT91
23 bool
24 default AT91_PMC_UNIT && USE_OF && !AT91_USE_OLD_CLK
25 select COMMON_CLK
26
27config OLD_CLK_AT91
28 bool
29 default AT91_PMC_UNIT && AT91_USE_OLD_CLK
30
Jean-Christophe PLAGNIOL-VILLARDc0177592011-11-29 22:01:08 +080031config AT91_SAM9_ALT_RESET
32 bool
Jean-Christophe PLAGNIOL-VILLARD21ea52a2012-03-03 03:14:16 +080033 default !ARCH_AT91X40
Jean-Christophe PLAGNIOL-VILLARDc0177592011-11-29 22:01:08 +080034
Jean-Christophe PLAGNIOL-VILLARD14f991a2011-11-18 01:41:28 +080035config AT91_SAM9G45_RESET
36 bool
Jean-Christophe PLAGNIOL-VILLARD21ea52a2012-03-03 03:14:16 +080037 default !ARCH_AT91X40
Jean-Christophe PLAGNIOL-VILLARD14f991a2011-11-18 01:41:28 +080038
Ludovic Desrochesfc05b652013-03-22 13:24:10 +000039config AT91_SAM9_TIME
40 bool
41
Boris BREZILLONa9c06882013-10-11 13:27:06 +020042config HAVE_AT91_SMD
43 bool
44
Alexandre Bellonibcc5fd42014-09-15 18:15:53 +020045config HAVE_AT91_H32MX
46 bool
47
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080048config SOC_AT91SAM9
49 bool
Ludovic Desrochesfc05b652013-03-22 13:24:10 +000050 select AT91_SAM9_TIME
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080051 select CPU_ARM926T
Russell Kingb1b3f492012-10-06 17:12:25 +010052 select GENERIC_CLOCKEVENTS
Jean-Christophe PLAGNIOL-VILLARD08d04a12012-10-17 15:41:31 +020053 select MULTI_IRQ_HANDLER
54 select SPARSE_IRQ
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080055
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000056config SOC_SAMA5
57 bool
58 select AT91_SAM9_TIME
59 select CPU_V7
60 select GENERIC_CLOCKEVENTS
61 select MULTI_IRQ_HANDLER
62 select SPARSE_IRQ
Arnd Bergmanna1628602014-03-13 15:23:40 +010063 select USE_OF
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000064
Andrew Victor8fc5ffa2006-06-29 16:06:33 +010065menu "Atmel AT91 System-on-Chip"
66
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000067choice
68
69 prompt "Core type"
70
Arnd Bergmannfe138c22014-03-13 15:18:31 +010071config ARCH_AT91X40
72 bool "ARM7 AT91X40"
73 depends on !MMU
74 select CPU_ARM7TDMI
75 select ARCH_USES_GETTIMEOFFSET
76 select MULTI_IRQ_HANDLER
77 select SPARSE_IRQ
78
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000079 help
Arnd Bergmannfe138c22014-03-13 15:18:31 +010080 Select this if you are using one of Atmel's AT91X40 SoC.
81
82config SOC_SAM_V4_V5
83 bool "ARM9 AT91SAM9/AT91RM9200"
84 help
85 Select this if you are using one of Atmel's AT91SAM9 or
86 AT91RM9200 SoC.
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000087
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000088config SOC_SAM_V7
89 bool "Cortex A5"
90 help
91 Select this if you are using one of Atmel's SAMA5D3 SoC.
92
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000093endchoice
94
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +080095comment "Atmel AT91 Processor"
Andrew Victor8fc5ffa2006-06-29 16:06:33 +010096
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000097if SOC_SAM_V7
98config SOC_SAMA5D3
99 bool "SAMA5D3 family"
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000100 select SOC_SAMA5
101 select HAVE_FB_ATMEL
102 select HAVE_AT91_DBGU1
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200103 select HAVE_AT91_UTMI
Boris BREZILLONa9c06882013-10-11 13:27:06 +0200104 select HAVE_AT91_SMD
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200105 select HAVE_AT91_USB_CLK
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000106 help
107 Select this if you are using one of Atmel's SAMA5D3 family SoC.
Josh Wu7f457162013-11-06 18:01:11 +0800108 This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000109endif
110
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +0000111if SOC_SAM_V4_V5
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800112config SOC_AT91RM9200
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100113 bool "AT91RM9200"
Russell Kingc7508152008-10-26 10:55:14 +0000114 select CPU_ARM920T
David Brownell5e802df2007-07-31 01:41:26 +0100115 select GENERIC_CLOCKEVENTS
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +0800116 select HAVE_AT91_DBGU0
Russell Kingb1b3f492012-10-06 17:12:25 +0100117 select MULTI_IRQ_HANDLER
118 select SPARSE_IRQ
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200119 select HAVE_AT91_USB_CLK
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100120
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800121config SOC_AT91SAM9260
122 bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +0800123 select HAVE_AT91_DBGU0
Russell Kingb1b3f492012-10-06 17:12:25 +0100124 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200125 select HAVE_AT91_USB_CLK
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800126 help
127 Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
128 or AT91SAM9G20 SoC.
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100129
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800130config SOC_AT91SAM9261
131 bool "AT91SAM9261 or AT91SAM9G10"
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +0800132 select HAVE_AT91_DBGU0
Nicolas Ferre0912e532009-06-23 16:30:56 +0200133 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100134 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200135 select HAVE_AT91_USB_CLK
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800136 help
137 Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
Nicolas Ferreb319ff82009-06-26 15:37:01 +0100138
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800139config SOC_AT91SAM9263
Andrew Victorb2c65612007-02-08 09:42:40 +0100140 bool "AT91SAM9263"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800141 select HAVE_AT91_DBGU1
Nicolas Ferre0912e532009-06-23 16:30:56 +0200142 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100143 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200144 select HAVE_AT91_USB_CLK
Andrew Victorb2c65612007-02-08 09:42:40 +0100145
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800146config SOC_AT91SAM9RL
Andrew Victor877d7722007-05-11 20:49:56 +0100147 bool "AT91SAM9RL"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800148 select HAVE_AT91_DBGU0
Nicolas Ferre0912e532009-06-23 16:30:56 +0200149 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100150 select SOC_AT91SAM9
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200151 select HAVE_AT91_UTMI
Andrew Victor877d7722007-05-11 20:49:56 +0100152
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800153config SOC_AT91SAM9G45
Nicolas Ferreca1dcbf2012-03-15 12:26:43 +0100154 bool "AT91SAM9G45 or AT91SAM9M10 families"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800155 select HAVE_AT91_DBGU1
Nicolas Ferre0912e532009-06-23 16:30:56 +0200156 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100157 select SOC_AT91SAM9
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200158 select HAVE_AT91_UTMI
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200159 select HAVE_AT91_USB_CLK
Nicolas Ferreca1dcbf2012-03-15 12:26:43 +0100160 help
161 Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
162 This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
Nicolas Ferre789b23b2009-06-26 15:36:58 +0100163
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800164config SOC_AT91SAM9X5
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100165 bool "AT91SAM9x5 family"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800166 select HAVE_AT91_DBGU0
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100167 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100168 select SOC_AT91SAM9
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200169 select HAVE_AT91_UTMI
Boris BREZILLONa9c06882013-10-11 13:27:06 +0200170 select HAVE_AT91_SMD
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200171 select HAVE_AT91_USB_CLK
Nicolas Ferrea26e1af2012-03-15 12:48:41 +0100172 help
173 Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
174 This means that your SAM9 name finishes with a '5' (except if it is
175 AT91SAM9G45!).
176 This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
177 and AT91SAM9X35.
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100178
Hong Xu74db4fb2012-04-17 14:26:31 +0800179config SOC_AT91SAM9N12
180 bool "AT91SAM9N12 family"
Hong Xu74db4fb2012-04-17 14:26:31 +0800181 select HAVE_AT91_DBGU0
182 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100183 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200184 select HAVE_AT91_USB_CLK
Hong Xu74db4fb2012-04-17 14:26:31 +0800185 help
186 Select this if you are using Atmel's AT91SAM9N12 SoC.
187
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100188# ----------------------------------------------------------
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +0000189endif # SOC_SAM_V4_V5
Greg Ungerer9f1ccef2007-07-30 02:39:21 +0100190
Arnd Bergmannfe138c22014-03-13 15:18:31 +0100191
192if SOC_SAM_V4_V5 || ARCH_AT91X40
193source arch/arm/mach-at91/Kconfig.non_dt
194endif
195
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200196comment "Generic Board Type"
197
Joachim Eastwood397f8c32012-10-28 18:31:09 +0000198config MACH_AT91RM9200_DT
199 bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
200 depends on SOC_AT91RM9200
201 select USE_OF
202 help
203 Select this if you want to experiment device-tree with
204 an Atmel RM9200 Evaluation Kit.
205
Jean-Christophe PLAGNIOL-VILLARD4afcd1d2013-02-19 18:30:29 +0800206config MACH_AT91SAM9_DT
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200207 bool "Atmel AT91SAM Evaluation Kits with device-tree support"
Joachim Eastwood35ed3c72012-10-28 18:31:06 +0000208 depends on SOC_AT91SAM9
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200209 select USE_OF
210 help
211 Select this if you want to experiment device-tree with
212 an Atmel Evaluation Kit.
213
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000214config MACH_SAMA5_DT
215 bool "Atmel SAMA5 Evaluation Kits with device-tree support"
216 depends on SOC_SAMA5
217 select USE_OF
Alexandre Belloni0580ed32013-06-05 09:50:43 +0000218 select PHYLIB if NETDEVICES
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000219 help
220 Select this if you want to experiment device-tree with
221 an Atmel Evaluation Kit.
222
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200223# ----------------------------------------------------------
224
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100225comment "AT91 Feature Selections"
SAN People73a59c12006-01-09 17:05:41 +0000226
Andrew Victoreaad2db2008-09-21 21:35:18 +0100227config AT91_SLOW_CLOCK
228 bool "Suspend-to-RAM disables main oscillator"
229 depends on SUSPEND
230 help
231 Select this if you want Suspend-to-RAM to save the most power
232 possible (without powering off the CPU) by disabling the PLLs
233 and main oscillator so that only the 32 KiHz clock is available.
234
235 When only that slow-clock is available, some peripherals lose
236 functionality. Many can't issue wakeup events unless faster
237 clocks are available. Some lose their operating state and
238 need to be completely re-initialized.
239
David Brownell5248c652007-11-12 17:59:10 +0100240config AT91_TIMER_HZ
241 int "Kernel HZ (jiffies per second)"
242 range 32 1024
243 depends on ARCH_AT91
244 default "128" if ARCH_AT91RM9200
245 default "100"
246 help
247 On AT91rm9200 chips where you're using a system clock derived
248 from the 32768 Hz hardware clock, this tick rate should divide
249 it exactly: use a power-of-two value, such as 128 or 256, to
250 reduce timing errors caused by rounding.
251
252 On AT91sam926x chips, or otherwise when using a higher precision
253 system clock (of at least several MHz), rounding is less of a
254 problem so it can be safer to use a decimal values like 100.
255
SAN People73a59c12006-01-09 17:05:41 +0000256endmenu
257
258endif