blob: b2d2cf4dc0523fcc4175db241b61e66017e72ea0 [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
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080045config SOC_AT91SAM9
46 bool
Ludovic Desrochesfc05b652013-03-22 13:24:10 +000047 select AT91_SAM9_TIME
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080048 select CPU_ARM926T
Russell Kingb1b3f492012-10-06 17:12:25 +010049 select GENERIC_CLOCKEVENTS
Jean-Christophe PLAGNIOL-VILLARD08d04a12012-10-17 15:41:31 +020050 select MULTI_IRQ_HANDLER
51 select SPARSE_IRQ
Jean-Christophe PLAGNIOL-VILLARD1441bd32012-04-06 13:04:04 +080052
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000053config SOC_SAMA5
54 bool
55 select AT91_SAM9_TIME
56 select CPU_V7
57 select GENERIC_CLOCKEVENTS
58 select MULTI_IRQ_HANDLER
59 select SPARSE_IRQ
Arnd Bergmanna1628602014-03-13 15:23:40 +010060 select USE_OF
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000061
Andrew Victor8fc5ffa2006-06-29 16:06:33 +010062menu "Atmel AT91 System-on-Chip"
63
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000064choice
65
66 prompt "Core type"
67
Arnd Bergmannfe138c22014-03-13 15:18:31 +010068config ARCH_AT91X40
69 bool "ARM7 AT91X40"
70 depends on !MMU
71 select CPU_ARM7TDMI
72 select ARCH_USES_GETTIMEOFFSET
73 select MULTI_IRQ_HANDLER
74 select SPARSE_IRQ
75
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000076 help
Arnd Bergmannfe138c22014-03-13 15:18:31 +010077 Select this if you are using one of Atmel's AT91X40 SoC.
78
79config SOC_SAM_V4_V5
80 bool "ARM9 AT91SAM9/AT91RM9200"
81 help
82 Select this if you are using one of Atmel's AT91SAM9 or
83 AT91RM9200 SoC.
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000084
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000085config SOC_SAM_V7
86 bool "Cortex A5"
87 help
88 Select this if you are using one of Atmel's SAMA5D3 SoC.
89
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +000090endchoice
91
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +080092comment "Atmel AT91 Processor"
Andrew Victor8fc5ffa2006-06-29 16:06:33 +010093
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000094if SOC_SAM_V7
95config SOC_SAMA5D3
96 bool "SAMA5D3 family"
Ludovic Desroches8f4b4792013-03-22 13:24:12 +000097 select SOC_SAMA5
98 select HAVE_FB_ATMEL
99 select HAVE_AT91_DBGU1
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200100 select HAVE_AT91_UTMI
Boris BREZILLONa9c06882013-10-11 13:27:06 +0200101 select HAVE_AT91_SMD
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200102 select HAVE_AT91_USB_CLK
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000103 help
104 Select this if you are using one of Atmel's SAMA5D3 family SoC.
Josh Wu7f457162013-11-06 18:01:11 +0800105 This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000106endif
107
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +0000108if SOC_SAM_V4_V5
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800109config SOC_AT91RM9200
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100110 bool "AT91RM9200"
Russell Kingc7508152008-10-26 10:55:14 +0000111 select CPU_ARM920T
David Brownell5e802df2007-07-31 01:41:26 +0100112 select GENERIC_CLOCKEVENTS
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +0800113 select HAVE_AT91_DBGU0
Russell Kingb1b3f492012-10-06 17:12:25 +0100114 select MULTI_IRQ_HANDLER
115 select SPARSE_IRQ
Boris BREZILLONc8a8c632013-10-11 09:37:46 +0200116 select AT91_USE_OLD_CLK
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 BREZILLONc8a8c632013-10-11 09:37:46 +0200123 select AT91_USE_OLD_CLK
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200124 select HAVE_AT91_USB_CLK
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800125 help
126 Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
127 or AT91SAM9G20 SoC.
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100128
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800129config SOC_AT91SAM9261
130 bool "AT91SAM9261 or AT91SAM9G10"
Jean-Christophe PLAGNIOL-VILLARD13079a72011-11-02 01:43:31 +0800131 select HAVE_AT91_DBGU0
Nicolas Ferre0912e532009-06-23 16:30:56 +0200132 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100133 select SOC_AT91SAM9
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200134 select HAVE_AT91_USB_CLK
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800135 help
136 Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
Nicolas Ferreb319ff82009-06-26 15:37:01 +0100137
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800138config SOC_AT91SAM9263
Andrew Victorb2c65612007-02-08 09:42:40 +0100139 bool "AT91SAM9263"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800140 select HAVE_AT91_DBGU1
Nicolas Ferre0912e532009-06-23 16:30:56 +0200141 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100142 select SOC_AT91SAM9
Boris BREZILLONc8a8c632013-10-11 09:37:46 +0200143 select AT91_USE_OLD_CLK
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 BREZILLONc8a8c632013-10-11 09:37:46 +0200158 select AT91_USE_OLD_CLK
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200159 select HAVE_AT91_UTMI
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200160 select HAVE_AT91_USB_CLK
Nicolas Ferreca1dcbf2012-03-15 12:26:43 +0100161 help
162 Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
163 This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
Nicolas Ferre789b23b2009-06-26 15:36:58 +0100164
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800165config SOC_AT91SAM9X5
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100166 bool "AT91SAM9x5 family"
Jean-Christophe PLAGNIOL-VILLARD1e3ce2b2012-04-06 11:51:50 +0800167 select HAVE_AT91_DBGU0
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100168 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100169 select SOC_AT91SAM9
Boris BREZILLONc8a8c632013-10-11 09:37:46 +0200170 select AT91_USE_OLD_CLK
Boris BREZILLONf090fb32013-10-11 12:22:06 +0200171 select HAVE_AT91_UTMI
Boris BREZILLONa9c06882013-10-11 13:27:06 +0200172 select HAVE_AT91_SMD
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200173 select HAVE_AT91_USB_CLK
Nicolas Ferrea26e1af2012-03-15 12:48:41 +0100174 help
175 Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
176 This means that your SAM9 name finishes with a '5' (except if it is
177 AT91SAM9G45!).
178 This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
179 and AT91SAM9X35.
Nicolas Ferre9a3ee402012-01-23 16:16:44 +0100180
Hong Xu74db4fb2012-04-17 14:26:31 +0800181config SOC_AT91SAM9N12
182 bool "AT91SAM9N12 family"
Hong Xu74db4fb2012-04-17 14:26:31 +0800183 select HAVE_AT91_DBGU0
184 select HAVE_FB_ATMEL
Russell Kingb1b3f492012-10-06 17:12:25 +0100185 select SOC_AT91SAM9
Boris BREZILLONc8a8c632013-10-11 09:37:46 +0200186 select AT91_USE_OLD_CLK
Boris BREZILLONc84a61d2013-10-17 18:55:41 +0200187 select HAVE_AT91_USB_CLK
Hong Xu74db4fb2012-04-17 14:26:31 +0800188 help
189 Select this if you are using Atmel's AT91SAM9N12 SoC.
190
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100191# ----------------------------------------------------------
Ludovic Desroches8f0cdcc2013-03-22 13:24:11 +0000192endif # SOC_SAM_V4_V5
Greg Ungerer9f1ccef2007-07-30 02:39:21 +0100193
Arnd Bergmannfe138c22014-03-13 15:18:31 +0100194
195if SOC_SAM_V4_V5 || ARCH_AT91X40
196source arch/arm/mach-at91/Kconfig.non_dt
197endif
198
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200199comment "Generic Board Type"
200
Joachim Eastwood397f8c32012-10-28 18:31:09 +0000201config MACH_AT91RM9200_DT
202 bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
203 depends on SOC_AT91RM9200
204 select USE_OF
205 help
206 Select this if you want to experiment device-tree with
207 an Atmel RM9200 Evaluation Kit.
208
Jean-Christophe PLAGNIOL-VILLARD4afcd1d2013-02-19 18:30:29 +0800209config MACH_AT91SAM9_DT
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200210 bool "Atmel AT91SAM Evaluation Kits with device-tree support"
Joachim Eastwood35ed3c72012-10-28 18:31:06 +0000211 depends on SOC_AT91SAM9
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200212 select USE_OF
213 help
214 Select this if you want to experiment device-tree with
215 an Atmel Evaluation Kit.
216
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000217config MACH_SAMA5_DT
218 bool "Atmel SAMA5 Evaluation Kits with device-tree support"
219 depends on SOC_SAMA5
220 select USE_OF
Alexandre Belloni0580ed32013-06-05 09:50:43 +0000221 select PHYLIB if NETDEVICES
Ludovic Desroches8f4b4792013-03-22 13:24:12 +0000222 help
223 Select this if you want to experiment device-tree with
224 an Atmel Evaluation Kit.
225
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200226# ----------------------------------------------------------
227
Andrew Victor8fc5ffa2006-06-29 16:06:33 +0100228comment "AT91 Feature Selections"
SAN People73a59c12006-01-09 17:05:41 +0000229
Andrew Victoreaad2db2008-09-21 21:35:18 +0100230config AT91_SLOW_CLOCK
231 bool "Suspend-to-RAM disables main oscillator"
232 depends on SUSPEND
233 help
234 Select this if you want Suspend-to-RAM to save the most power
235 possible (without powering off the CPU) by disabling the PLLs
236 and main oscillator so that only the 32 KiHz clock is available.
237
238 When only that slow-clock is available, some peripherals lose
239 functionality. Many can't issue wakeup events unless faster
240 clocks are available. Some lose their operating state and
241 need to be completely re-initialized.
242
David Brownell5248c652007-11-12 17:59:10 +0100243config AT91_TIMER_HZ
244 int "Kernel HZ (jiffies per second)"
245 range 32 1024
246 depends on ARCH_AT91
247 default "128" if ARCH_AT91RM9200
248 default "100"
249 help
250 On AT91rm9200 chips where you're using a system clock derived
251 from the 32768 Hz hardware clock, this tick rate should divide
252 it exactly: use a power-of-two value, such as 128 or 256, to
253 reduce timing errors caused by rounding.
254
255 On AT91sam926x chips, or otherwise when using a higher precision
256 system clock (of at least several MHz), rounding is less of a
257 problem so it can be safer to use a decimal values like 100.
258
SAN People73a59c12006-01-09 17:05:41 +0000259endmenu
260
261endif