xref: /openbmc/linux/arch/arm/mach-at91/Kconfig (revision 91a55d4f)
19d041268SAndrew Victorif ARCH_AT91
29d041268SAndrew Victor
3f090fb37SBoris BREZILLONconfig HAVE_AT91_UTMI
4f090fb37SBoris BREZILLON	bool
5f090fb37SBoris BREZILLON
6c84a61d8SBoris BREZILLONconfig HAVE_AT91_USB_CLK
7c84a61d8SBoris BREZILLON	bool
8c84a61d8SBoris BREZILLON
913079a73SJean-Christophe PLAGNIOL-VILLARDconfig HAVE_AT91_DBGU0
1013079a73SJean-Christophe PLAGNIOL-VILLARD	bool
1113079a73SJean-Christophe PLAGNIOL-VILLARD
1213079a73SJean-Christophe PLAGNIOL-VILLARDconfig HAVE_AT91_DBGU1
1313079a73SJean-Christophe PLAGNIOL-VILLARD	bool
1413079a73SJean-Christophe PLAGNIOL-VILLARD
15c8a8c630SBoris BREZILLONconfig AT91_USE_OLD_CLK
16c8a8c630SBoris BREZILLON	bool
17c8a8c630SBoris BREZILLON
188f0cdcc5SLudovic Desrochesconfig AT91_PMC_UNIT
198f0cdcc5SLudovic Desroches	bool
208f0cdcc5SLudovic Desroches	default !ARCH_AT91X40
218f0cdcc5SLudovic Desroches
22c8a8c630SBoris BREZILLONconfig COMMON_CLK_AT91
23c8a8c630SBoris BREZILLON	bool
24c8a8c630SBoris BREZILLON	default AT91_PMC_UNIT && USE_OF && !AT91_USE_OLD_CLK
25c8a8c630SBoris BREZILLON	select COMMON_CLK
26c8a8c630SBoris BREZILLON
27c8a8c630SBoris BREZILLONconfig OLD_CLK_AT91
28c8a8c630SBoris BREZILLON	bool
29c8a8c630SBoris BREZILLON	default AT91_PMC_UNIT && AT91_USE_OLD_CLK
30c8a8c630SBoris BREZILLON
3191a55d4fSBoris BREZILLONconfig OLD_IRQ_AT91
3291a55d4fSBoris BREZILLON	bool
3391a55d4fSBoris BREZILLON	select MULTI_IRQ_HANDLER
3491a55d4fSBoris BREZILLON	select SPARSE_IRQ
3591a55d4fSBoris BREZILLON
36c0177594SJean-Christophe PLAGNIOL-VILLARDconfig AT91_SAM9_ALT_RESET
37c0177594SJean-Christophe PLAGNIOL-VILLARD	bool
3821ea52aaSJean-Christophe PLAGNIOL-VILLARD	default !ARCH_AT91X40
39c0177594SJean-Christophe PLAGNIOL-VILLARD
4014f991a7SJean-Christophe PLAGNIOL-VILLARDconfig AT91_SAM9G45_RESET
4114f991a7SJean-Christophe PLAGNIOL-VILLARD	bool
4221ea52aaSJean-Christophe PLAGNIOL-VILLARD	default !ARCH_AT91X40
4314f991a7SJean-Christophe PLAGNIOL-VILLARD
44fc05b657SLudovic Desrochesconfig AT91_SAM9_TIME
45fc05b657SLudovic Desroches	bool
46fc05b657SLudovic Desroches
47a9c0688fSBoris BREZILLONconfig HAVE_AT91_SMD
48a9c0688fSBoris BREZILLON	bool
49a9c0688fSBoris BREZILLON
501441bd32SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9
511441bd32SJean-Christophe PLAGNIOL-VILLARD	bool
52fc05b657SLudovic Desroches	select AT91_SAM9_TIME
531441bd32SJean-Christophe PLAGNIOL-VILLARD	select CPU_ARM926T
54b1b3f49cSRussell King	select GENERIC_CLOCKEVENTS
551441bd32SJean-Christophe PLAGNIOL-VILLARD
568f4b4794SLudovic Desrochesconfig SOC_SAMA5
578f4b4794SLudovic Desroches	bool
588f4b4794SLudovic Desroches	select AT91_SAM9_TIME
598f4b4794SLudovic Desroches	select CPU_V7
608f4b4794SLudovic Desroches	select GENERIC_CLOCKEVENTS
61a1628604SArnd Bergmann	select USE_OF
628f4b4794SLudovic Desroches
639d041268SAndrew Victormenu "Atmel AT91 System-on-Chip"
649d041268SAndrew Victor
658f0cdcc5SLudovic Desrocheschoice
668f0cdcc5SLudovic Desroches
678f0cdcc5SLudovic Desroches	prompt "Core type"
688f0cdcc5SLudovic Desroches
69fe138c23SArnd Bergmannconfig ARCH_AT91X40
70fe138c23SArnd Bergmann	bool "ARM7 AT91X40"
71fe138c23SArnd Bergmann	depends on !MMU
72fe138c23SArnd Bergmann	select CPU_ARM7TDMI
73fe138c23SArnd Bergmann	select ARCH_USES_GETTIMEOFFSET
7491a55d4fSBoris BREZILLON	select OLD_IRQ_AT91
75fe138c23SArnd Bergmann
768f0cdcc5SLudovic Desroches	help
77fe138c23SArnd Bergmann	  Select this if you are using one of Atmel's AT91X40 SoC.
78fe138c23SArnd Bergmann
79fe138c23SArnd Bergmannconfig SOC_SAM_V4_V5
80fe138c23SArnd Bergmann	bool "ARM9 AT91SAM9/AT91RM9200"
81fe138c23SArnd Bergmann	help
82fe138c23SArnd Bergmann	  Select this if you are using one of Atmel's AT91SAM9 or
83fe138c23SArnd Bergmann	  AT91RM9200 SoC.
848f0cdcc5SLudovic Desroches
858f4b4794SLudovic Desrochesconfig SOC_SAM_V7
868f4b4794SLudovic Desroches	bool "Cortex A5"
878f4b4794SLudovic Desroches	help
888f4b4794SLudovic Desroches	  Select this if you are using one of Atmel's SAMA5D3 SoC.
898f4b4794SLudovic Desroches
908f0cdcc5SLudovic Desrochesendchoice
918f0cdcc5SLudovic Desroches
921e3ce2b8SJean-Christophe PLAGNIOL-VILLARDcomment "Atmel AT91 Processor"
939d041268SAndrew Victor
948f4b4794SLudovic Desrochesif SOC_SAM_V7
958f4b4794SLudovic Desrochesconfig SOC_SAMA5D3
968f4b4794SLudovic Desroches	bool "SAMA5D3 family"
978f4b4794SLudovic Desroches	select SOC_SAMA5
988f4b4794SLudovic Desroches	select HAVE_FB_ATMEL
998f4b4794SLudovic Desroches	select HAVE_AT91_DBGU1
100f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
101a9c0688fSBoris BREZILLON	select HAVE_AT91_SMD
102c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
1038f4b4794SLudovic Desroches	help
1048f4b4794SLudovic Desroches	  Select this if you are using one of Atmel's SAMA5D3 family SoC.
1057f457160SJosh Wu	  This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
1068f4b4794SLudovic Desrochesendif
1078f4b4794SLudovic Desroches
1088f0cdcc5SLudovic Desrochesif SOC_SAM_V4_V5
1091e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91RM9200
1109d041268SAndrew Victor	bool "AT91RM9200"
111c750815eSRussell King	select CPU_ARM920T
1125e802dfaSDavid Brownell	select GENERIC_CLOCKEVENTS
11313079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
114c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
1159d041268SAndrew Victor
1161e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9260
1171e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
11813079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
119b1b3f49cSRussell King	select SOC_AT91SAM9
120c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
1211e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	help
1221e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
1231e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  or AT91SAM9G20 SoC.
1249d041268SAndrew Victor
1251e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9261
1261e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	bool "AT91SAM9261 or AT91SAM9G10"
12713079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1280912e535SNicolas Ferre	select HAVE_FB_ATMEL
129b1b3f49cSRussell King	select SOC_AT91SAM9
130c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
1311e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	help
1321e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
133b319ff80SNicolas Ferre
1341e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9263
135b2c65616SAndrew Victor	bool "AT91SAM9263"
1361e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU1
1370912e535SNicolas Ferre	select HAVE_FB_ATMEL
138b1b3f49cSRussell King	select SOC_AT91SAM9
139c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
140b2c65616SAndrew Victor
1411e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9RL
142877d7720SAndrew Victor	bool "AT91SAM9RL"
1431e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1440912e535SNicolas Ferre	select HAVE_FB_ATMEL
145b1b3f49cSRussell King	select SOC_AT91SAM9
146f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
147877d7720SAndrew Victor
1481e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9G45
149ca1dcbf7SNicolas Ferre	bool "AT91SAM9G45 or AT91SAM9M10 families"
1501e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU1
1510912e535SNicolas Ferre	select HAVE_FB_ATMEL
152b1b3f49cSRussell King	select SOC_AT91SAM9
153f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
154c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
155ca1dcbf7SNicolas Ferre	help
156ca1dcbf7SNicolas Ferre	  Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
157ca1dcbf7SNicolas Ferre	  This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
158789b23bcSNicolas Ferre
1591e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9X5
1609a3ee403SNicolas Ferre	bool "AT91SAM9x5 family"
1611e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1629a3ee403SNicolas Ferre	select HAVE_FB_ATMEL
163b1b3f49cSRussell King	select SOC_AT91SAM9
164f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
165a9c0688fSBoris BREZILLON	select HAVE_AT91_SMD
166c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
167a26e1af5SNicolas Ferre	help
168a26e1af5SNicolas Ferre	  Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
169a26e1af5SNicolas Ferre	  This means that your SAM9 name finishes with a '5' (except if it is
170a26e1af5SNicolas Ferre	  AT91SAM9G45!).
171a26e1af5SNicolas Ferre	  This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
172a26e1af5SNicolas Ferre	  and AT91SAM9X35.
1739a3ee403SNicolas Ferre
17474db4fb9SHong Xuconfig SOC_AT91SAM9N12
17574db4fb9SHong Xu	bool "AT91SAM9N12 family"
17674db4fb9SHong Xu	select HAVE_AT91_DBGU0
17774db4fb9SHong Xu	select HAVE_FB_ATMEL
178b1b3f49cSRussell King	select SOC_AT91SAM9
179c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
18074db4fb9SHong Xu	help
18174db4fb9SHong Xu	  Select this if you are using Atmel's AT91SAM9N12 SoC.
18274db4fb9SHong Xu
1839d041268SAndrew Victor# ----------------------------------------------------------
1848f0cdcc5SLudovic Desrochesendif # SOC_SAM_V4_V5
1859f1ccefeSGreg Ungerer
186fe138c23SArnd Bergmann
187fe138c23SArnd Bergmannif SOC_SAM_V4_V5 || ARCH_AT91X40
188fe138c23SArnd Bergmannsource arch/arm/mach-at91/Kconfig.non_dt
189fe138c23SArnd Bergmannendif
190fe138c23SArnd Bergmann
19149fe2ba3SNicolas Ferrecomment "Generic Board Type"
19249fe2ba3SNicolas Ferre
193397f8c3cSJoachim Eastwoodconfig MACH_AT91RM9200_DT
194397f8c3cSJoachim Eastwood	bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
195397f8c3cSJoachim Eastwood	depends on SOC_AT91RM9200
19691a55d4fSBoris BREZILLON	select OLD_IRQ_AT91
197397f8c3cSJoachim Eastwood	select USE_OF
198397f8c3cSJoachim Eastwood	help
199397f8c3cSJoachim Eastwood	  Select this if you want to experiment device-tree with
200397f8c3cSJoachim Eastwood	  an Atmel RM9200 Evaluation Kit.
201397f8c3cSJoachim Eastwood
2024afcd1dbSJean-Christophe PLAGNIOL-VILLARDconfig MACH_AT91SAM9_DT
20349fe2ba3SNicolas Ferre	bool "Atmel AT91SAM Evaluation Kits with device-tree support"
20435ed3c7aSJoachim Eastwood	depends on SOC_AT91SAM9
20591a55d4fSBoris BREZILLON	select OLD_IRQ_AT91
20649fe2ba3SNicolas Ferre	select USE_OF
20749fe2ba3SNicolas Ferre	help
20849fe2ba3SNicolas Ferre	  Select this if you want to experiment device-tree with
20949fe2ba3SNicolas Ferre	  an Atmel Evaluation Kit.
21049fe2ba3SNicolas Ferre
2118f4b4794SLudovic Desrochesconfig MACH_SAMA5_DT
2128f4b4794SLudovic Desroches	bool "Atmel SAMA5 Evaluation Kits with device-tree support"
2138f4b4794SLudovic Desroches	depends on SOC_SAMA5
21491a55d4fSBoris BREZILLON	select OLD_IRQ_AT91
2158f4b4794SLudovic Desroches	select USE_OF
2160580ed36SAlexandre Belloni	select PHYLIB if NETDEVICES
2178f4b4794SLudovic Desroches	help
2188f4b4794SLudovic Desroches	  Select this if you want to experiment device-tree with
2198f4b4794SLudovic Desroches	  an Atmel Evaluation Kit.
2208f4b4794SLudovic Desroches
22149fe2ba3SNicolas Ferre# ----------------------------------------------------------
22249fe2ba3SNicolas Ferre
2239d041268SAndrew Victorcomment "AT91 Feature Selections"
2249d041268SAndrew Victor
225eaad2db0SAndrew Victorconfig AT91_SLOW_CLOCK
226eaad2db0SAndrew Victor	bool "Suspend-to-RAM disables main oscillator"
227eaad2db0SAndrew Victor	depends on SUSPEND
228eaad2db0SAndrew Victor	help
229eaad2db0SAndrew Victor	  Select this if you want Suspend-to-RAM to save the most power
230eaad2db0SAndrew Victor	  possible (without powering off the CPU) by disabling the PLLs
231eaad2db0SAndrew Victor	  and main oscillator so that only the 32 KiHz clock is available.
232eaad2db0SAndrew Victor
233eaad2db0SAndrew Victor	  When only that slow-clock is available, some peripherals lose
234eaad2db0SAndrew Victor	  functionality.  Many can't issue wakeup events unless faster
235eaad2db0SAndrew Victor	  clocks are available.  Some lose their operating state and
236eaad2db0SAndrew Victor	  need to be completely re-initialized.
237eaad2db0SAndrew Victor
2385248c657SDavid Brownellconfig AT91_TIMER_HZ
2395248c657SDavid Brownell       int "Kernel HZ (jiffies per second)"
2405248c657SDavid Brownell       range 32 1024
2415248c657SDavid Brownell       depends on ARCH_AT91
2425248c657SDavid Brownell       default "128" if ARCH_AT91RM9200
2435248c657SDavid Brownell       default "100"
2445248c657SDavid Brownell       help
2455248c657SDavid Brownell	  On AT91rm9200 chips where you're using a system clock derived
2465248c657SDavid Brownell	  from the 32768 Hz hardware clock, this tick rate should divide
2475248c657SDavid Brownell	  it exactly: use a power-of-two value, such as 128 or 256, to
2485248c657SDavid Brownell	  reduce timing errors caused by rounding.
2495248c657SDavid Brownell
2505248c657SDavid Brownell	  On AT91sam926x chips, or otherwise when using a higher precision
2515248c657SDavid Brownell	  system clock (of at least several MHz), rounding is less of a
2525248c657SDavid Brownell	  problem so it can be safer to use a decimal values like 100.
2535248c657SDavid Brownell
2549d041268SAndrew Victorendmenu
2559d041268SAndrew Victor
2569d041268SAndrew Victorendif
257