blob: dd28e1fedbdce67ac24269cedbb6e6558b67f6a2 [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
Boris BREZILLON91a55d42014-07-10 19:14:19 +020031config OLD_IRQ_AT91
32 bool
33 select MULTI_IRQ_HANDLER
34 select SPARSE_IRQ
35
Jean-Christophe PLAGNIOL-VILLARDc0177592011-11-29 22:01:08 +080036config AT91_SAM9_ALT_RESET
37 bool
Jean-Christophe PLAGNIOL-VILLARD21ea52a2012-03-03 03:14:16 +080038 default !ARCH_AT91X40
Jean-Christophe PLAGNIOL-VILLARDc0177592011-11-29 22:01:08 +080039
Jean-Christophe PLAGNIOL-VILLARD14f991a2011-11-18 01:41:28 +080040config AT91_SAM9G45_RESET
41 bool
Jean-Christophe PLAGNIOL-VILLARD21ea52a2012-03-03 03:14:16 +080042 default !ARCH_AT91X40
Jean-Christophe PLAGNIOL-VILLARD14f991a2011-11-18 01:41:28 +080043
Ludovic Desrochesfc05b652013-03-22 13:24:10 +000044config AT91_SAM9_TIME
45 bool
46
Boris BREZILLONa9c06882013-10-11 13:27:06 +020047config HAVE_AT91_SMD
48 bool
49
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080050config SOC_AT91SAM9
51 bool
Ludovic Desrochesfc05b652013-03-22 13:24:10 +000052 select AT91_SAM9_TIME
Boris BREZILLON3b26f392014-07-10 19:14:21 +020053 select ATMEL_AIC_IRQ if !OLD_IRQ_AT91
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080054 select CPU_ARM926T
Russell Kingb1b3f492012-10-06 17:12:25 +010055 select GENERIC_CLOCKEVENTS
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080056
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000057config SOC_SAMA5
58 bool
59 select AT91_SAM9_TIME
Boris BREZILLON3b26f392014-07-10 19:14:21 +020060 select ATMEL_AIC5_IRQ
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000061 select CPU_V7
62 select GENERIC_CLOCKEVENTS
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
Boris BREZILLON91a55d42014-07-10 19:14:19 +020076 select OLD_IRQ_AT91
Arnd Bergmannfe138c22014-03-13 15:18:31 +010077
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000078 help
Arnd Bergmannfe138c22014-03-13 15:18:31 +010079 Select this if you are using one of Atmel's AT91X40 SoC.
80
81config SOC_SAM_V4_V5
82 bool "ARM9 AT91SAM9/AT91RM9200"
83 help
84 Select this if you are using one of Atmel's AT91SAM9 or
85 AT91RM9200 SoC.
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000086
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000087config SOC_SAM_V7
88 bool "Cortex A5"
89 help
90 Select this if you are using one of Atmel's SAMA5D3 SoC.
91
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000092endchoice
93
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +080094comment "Atmel AT91 Processor"
Andrew Victor8fc5ffa2006-06-29 16:06:33 +010095
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000096if SOC_SAM_V7
97config SOC_SAMA5D3
98 bool "SAMA5D3 family"
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000099 select SOC_SAMA5
100 select HAVE_FB_ATMEL
101 select HAVE_AT91_DBGU1
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200102 select HAVE_AT91_UTMI
Boris BREZILLONa9c06882013-10-11 13:27:06 +0200103 select HAVE_AT91_SMD
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200104 select HAVE_AT91_USB_CLK
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000105 help
106 Select this if you are using one of Atmel's SAMA5D3 family SoC.
Josh Wu7f457162013-11-06 18:01:11 +0800107 This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000108endif
109
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +0000110if SOC_SAM_V4_V5
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800111config SOC_AT91RM9200
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100112 bool "AT91RM9200"
Boris BREZILLON3b26f392014-07-10 19:14:21 +0200113 select ATMEL_AIC_IRQ if !OLD_IRQ_AT91
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
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200117 select HAVE_AT91_USB_CLK
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100118
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800119config SOC_AT91SAM9260
120 bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +0800121 select HAVE_AT91_DBGU0
Russell Kingb1b3f492012-10-06 17:12:25 +0100122 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200123 select HAVE_AT91_USB_CLK
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800124 help
125 Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
126 or AT91SAM9G20 SoC.
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100127
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800128config SOC_AT91SAM9261
129 bool "AT91SAM9261 or AT91SAM9G10"
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +0800130 select HAVE_AT91_DBGU0
Nicolas Ferre0912e532009-06-23 16:30:56 +0200131 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100132 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200133 select HAVE_AT91_USB_CLK
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800134 help
135 Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
Nicolas Ferreb319ff82009-06-26 15:37:01 +0100136
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800137config SOC_AT91SAM9263
Andrew Victorb2c65612007-02-08 09:42:40 +0100138 bool "AT91SAM9263"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800139 select HAVE_AT91_DBGU1
Nicolas Ferre0912e532009-06-23 16:30:56 +0200140 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100141 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200142 select HAVE_AT91_USB_CLK
Andrew Victorb2c65612007-02-08 09:42:40 +0100143
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800144config SOC_AT91SAM9RL
Andrew Victor877d7722007-05-11 20:49:56 +0100145 bool "AT91SAM9RL"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800146 select HAVE_AT91_DBGU0
Nicolas Ferre0912e532009-06-23 16:30:56 +0200147 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100148 select SOC_AT91SAM9
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200149 select HAVE_AT91_UTMI
Andrew Victor877d7722007-05-11 20:49:56 +0100150
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800151config SOC_AT91SAM9G45
Nicolas Ferreca1dcbf2012-03-15 12:26:43 +0100152 bool "AT91SAM9G45 or AT91SAM9M10 families"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800153 select HAVE_AT91_DBGU1
Nicolas Ferre0912e532009-06-23 16:30:56 +0200154 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100155 select SOC_AT91SAM9
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200156 select HAVE_AT91_UTMI
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200157 select HAVE_AT91_USB_CLK
Nicolas Ferreca1dcbf2012-03-15 12:26:43 +0100158 help
159 Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
160 This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
Nicolas Ferre789b23b2009-06-26 15:36:58 +0100161
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800162config SOC_AT91SAM9X5
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100163 bool "AT91SAM9x5 family"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800164 select HAVE_AT91_DBGU0
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100165 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100166 select SOC_AT91SAM9
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200167 select HAVE_AT91_UTMI
Boris BREZILLONa9c06882013-10-11 13:27:06 +0200168 select HAVE_AT91_SMD
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200169 select HAVE_AT91_USB_CLK
Nicolas Ferrea26e1af2012-03-15 12:48:41 +0100170 help
171 Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
172 This means that your SAM9 name finishes with a '5' (except if it is
173 AT91SAM9G45!).
174 This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
175 and AT91SAM9X35.
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100176
Hong Xu74db4fb2012-04-17 14:26:31 +0800177config SOC_AT91SAM9N12
178 bool "AT91SAM9N12 family"
Hong Xu74db4fb2012-04-17 14:26:31 +0800179 select HAVE_AT91_DBGU0
180 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100181 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200182 select HAVE_AT91_USB_CLK
Hong Xu74db4fb2012-04-17 14:26:31 +0800183 help
184 Select this if you are using Atmel's AT91SAM9N12 SoC.
185
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100186# ----------------------------------------------------------
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +0000187endif # SOC_SAM_V4_V5
Greg Ungerer9f1ccef2007-07-30 02:39:21 +0100188
Arnd Bergmannfe138c22014-03-13 15:18:31 +0100189
190if SOC_SAM_V4_V5 || ARCH_AT91X40
191source arch/arm/mach-at91/Kconfig.non_dt
192endif
193
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200194comment "Generic Board Type"
195
Joachim Eastwood397f8c32012-10-28 18:31:09 +0000196config MACH_AT91RM9200_DT
197 bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
198 depends on SOC_AT91RM9200
199 select USE_OF
200 help
201 Select this if you want to experiment device-tree with
202 an Atmel RM9200 Evaluation Kit.
203
Jean-Christophe PLAGNIOL-VILLARD4afcd1d2013-02-19 18:30:29 +0800204config MACH_AT91SAM9_DT
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200205 bool "Atmel AT91SAM Evaluation Kits with device-tree support"
Joachim Eastwood35ed3c72012-10-28 18:31:06 +0000206 depends on SOC_AT91SAM9
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200207 select USE_OF
208 help
209 Select this if you want to experiment device-tree with
210 an Atmel Evaluation Kit.
211
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000212config MACH_SAMA5_DT
213 bool "Atmel SAMA5 Evaluation Kits with device-tree support"
214 depends on SOC_SAMA5
215 select USE_OF
Alexandre Belloni0580ed32013-06-05 09:50:43 +0000216 select PHYLIB if NETDEVICES
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000217 help
218 Select this if you want to experiment device-tree with
219 an Atmel Evaluation Kit.
220
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200221# ----------------------------------------------------------
222
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100223comment "AT91 Feature Selections"
SAN People73a59c12006-01-09 17:05:41 +0000224
Andrew Victoreaad2db2008-09-21 21:35:18 +0100225config AT91_SLOW_CLOCK
226 bool "Suspend-to-RAM disables main oscillator"
227 depends on SUSPEND
228 help
229 Select this if you want Suspend-to-RAM to save the most power
230 possible (without powering off the CPU) by disabling the PLLs
231 and main oscillator so that only the 32 KiHz clock is available.
232
233 When only that slow-clock is available, some peripherals lose
234 functionality. Many can't issue wakeup events unless faster
235 clocks are available. Some lose their operating state and
236 need to be completely re-initialized.
237
David Brownell5248c652007-11-12 17:59:10 +0100238config AT91_TIMER_HZ
239 int "Kernel HZ (jiffies per second)"
240 range 32 1024
241 depends on ARCH_AT91
242 default "128" if ARCH_AT91RM9200
243 default "100"
244 help
245 On AT91rm9200 chips where you're using a system clock derived
246 from the 32768 Hz hardware clock, this tick rate should divide
247 it exactly: use a power-of-two value, such as 128 or 256, to
248 reduce timing errors caused by rounding.
249
250 On AT91sam926x chips, or otherwise when using a higher precision
251 system clock (of at least several MHz), rounding is less of a
252 problem so it can be safer to use a decimal values like 100.
253
SAN People73a59c12006-01-09 17:05:41 +0000254endmenu
255
256endif