xref: /openbmc/linux/arch/arm/mach-at91/Kconfig (revision ef7eda2c)
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
152dc850b6SNicolas Ferreconfig HAVE_AT91_DBGU2
162dc850b6SNicolas Ferre	bool
172dc850b6SNicolas Ferre
18c8a8c630SBoris BREZILLONconfig COMMON_CLK_AT91
19c8a8c630SBoris BREZILLON	bool
20c8a8c630SBoris BREZILLON	select COMMON_CLK
21c8a8c630SBoris BREZILLON
22a9c0688fSBoris BREZILLONconfig HAVE_AT91_SMD
23a9c0688fSBoris BREZILLON	bool
24a9c0688fSBoris BREZILLON
25bcc5fd49SAlexandre Belloniconfig HAVE_AT91_H32MX
26bcc5fd49SAlexandre Belloni	bool
27bcc5fd49SAlexandre Belloni
281441bd32SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9
291441bd32SJean-Christophe PLAGNIOL-VILLARD	bool
30*ef7eda2cSNicolas Ferre	select ATMEL_AIC_IRQ
31*ef7eda2cSNicolas Ferre	select COMMON_CLK_AT91
321441bd32SJean-Christophe PLAGNIOL-VILLARD	select CPU_ARM926T
33b1b3f49cSRussell King	select GENERIC_CLOCKEVENTS
34*ef7eda2cSNicolas Ferre	select MEMORY
35*ef7eda2cSNicolas Ferre	select ATMEL_SDRAMC
361441bd32SJean-Christophe PLAGNIOL-VILLARD
378f4b4794SLudovic Desrochesconfig SOC_SAMA5
388f4b4794SLudovic Desroches	bool
393b26f39bSBoris BREZILLON	select ATMEL_AIC5_IRQ
40*ef7eda2cSNicolas Ferre	select COMMON_CLK_AT91
418f4b4794SLudovic Desroches	select CPU_V7
428f4b4794SLudovic Desroches	select GENERIC_CLOCKEVENTS
4363e60368SAlexandre Belloni	select MEMORY
4463e60368SAlexandre Belloni	select ATMEL_SDRAMC
4593d2cf46SAlexandre Belloni	select PHYLIB if NETDEVICES
468f4b4794SLudovic Desroches
479d041268SAndrew Victormenu "Atmel AT91 System-on-Chip"
489d041268SAndrew Victor
498f0cdcc5SLudovic Desrocheschoice
508f0cdcc5SLudovic Desroches
518f0cdcc5SLudovic Desroches	prompt "Core type"
528f0cdcc5SLudovic Desroches
53fe138c23SArnd Bergmannconfig SOC_SAM_V4_V5
54fe138c23SArnd Bergmann	bool "ARM9 AT91SAM9/AT91RM9200"
55fe138c23SArnd Bergmann	help
56fe138c23SArnd Bergmann	  Select this if you are using one of Atmel's AT91SAM9 or
57fe138c23SArnd Bergmann	  AT91RM9200 SoC.
588f0cdcc5SLudovic Desroches
598f4b4794SLudovic Desrochesconfig SOC_SAM_V7
608f4b4794SLudovic Desroches	bool "Cortex A5"
618f4b4794SLudovic Desroches	help
628f4b4794SLudovic Desroches	  Select this if you are using one of Atmel's SAMA5D3 SoC.
638f4b4794SLudovic Desroches
648f0cdcc5SLudovic Desrochesendchoice
658f0cdcc5SLudovic Desroches
661e3ce2b8SJean-Christophe PLAGNIOL-VILLARDcomment "Atmel AT91 Processor"
679d041268SAndrew Victor
688f4b4794SLudovic Desrochesif SOC_SAM_V7
698f4b4794SLudovic Desrochesconfig SOC_SAMA5D3
708f4b4794SLudovic Desroches	bool "SAMA5D3 family"
718f4b4794SLudovic Desroches	select SOC_SAMA5
728f4b4794SLudovic Desroches	select HAVE_FB_ATMEL
738f4b4794SLudovic Desroches	select HAVE_AT91_DBGU1
74f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
75a9c0688fSBoris BREZILLON	select HAVE_AT91_SMD
76c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
778f4b4794SLudovic Desroches	help
788f4b4794SLudovic Desroches	  Select this if you are using one of Atmel's SAMA5D3 family SoC.
797f457160SJosh Wu	  This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
802dc850b6SNicolas Ferre
812dc850b6SNicolas Ferreconfig SOC_SAMA5D4
822dc850b6SNicolas Ferre	bool "SAMA5D4 family"
832dc850b6SNicolas Ferre	select SOC_SAMA5
842dc850b6SNicolas Ferre	select HAVE_AT91_DBGU2
852dc850b6SNicolas Ferre	select CLKSRC_MMIO
862dc850b6SNicolas Ferre	select CACHE_L2X0
872dc850b6SNicolas Ferre	select CACHE_PL310
882dc850b6SNicolas Ferre	select HAVE_FB_ATMEL
892dc850b6SNicolas Ferre	select HAVE_AT91_UTMI
902dc850b6SNicolas Ferre	select HAVE_AT91_SMD
912dc850b6SNicolas Ferre	select HAVE_AT91_USB_CLK
922dc850b6SNicolas Ferre	select HAVE_AT91_H32MX
932dc850b6SNicolas Ferre	help
942dc850b6SNicolas Ferre	  Select this if you are using one of Atmel's SAMA5D4 family SoC.
958f4b4794SLudovic Desrochesendif
968f4b4794SLudovic Desroches
978f0cdcc5SLudovic Desrochesif SOC_SAM_V4_V5
981e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91RM9200
999d041268SAndrew Victor	bool "AT91RM9200"
100*ef7eda2cSNicolas Ferre	select ATMEL_AIC_IRQ
101*ef7eda2cSNicolas Ferre	select COMMON_CLK_AT91
102c750815eSRussell King	select CPU_ARM920T
1035e802dfaSDavid Brownell	select GENERIC_CLOCKEVENTS
10413079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
105c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
1069d041268SAndrew Victor
1071e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9260
1081e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
10913079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
110b1b3f49cSRussell King	select SOC_AT91SAM9
111c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
1121e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	help
1131e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
1141e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  or AT91SAM9G20 SoC.
1159d041268SAndrew Victor
1161e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9261
1171e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	bool "AT91SAM9261 or AT91SAM9G10"
11813079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1190912e535SNicolas Ferre	select HAVE_FB_ATMEL
120b1b3f49cSRussell King	select SOC_AT91SAM9
121c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
1221e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	help
1231e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
124b319ff80SNicolas Ferre
1251e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9263
126b2c65616SAndrew Victor	bool "AT91SAM9263"
1271e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU1
1280912e535SNicolas Ferre	select HAVE_FB_ATMEL
129b1b3f49cSRussell King	select SOC_AT91SAM9
130c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
131b2c65616SAndrew Victor
1321e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9RL
133877d7720SAndrew Victor	bool "AT91SAM9RL"
1341e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1350912e535SNicolas Ferre	select HAVE_FB_ATMEL
136b1b3f49cSRussell King	select SOC_AT91SAM9
137f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
138877d7720SAndrew Victor
1391e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9G45
140ca1dcbf7SNicolas Ferre	bool "AT91SAM9G45 or AT91SAM9M10 families"
1411e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU1
1420912e535SNicolas Ferre	select HAVE_FB_ATMEL
143b1b3f49cSRussell King	select SOC_AT91SAM9
144f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
145c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
146ca1dcbf7SNicolas Ferre	help
147ca1dcbf7SNicolas Ferre	  Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
148ca1dcbf7SNicolas Ferre	  This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
149789b23bcSNicolas Ferre
1501e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9X5
1519a3ee403SNicolas Ferre	bool "AT91SAM9x5 family"
1521e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1539a3ee403SNicolas Ferre	select HAVE_FB_ATMEL
154b1b3f49cSRussell King	select SOC_AT91SAM9
155f090fb37SBoris BREZILLON	select HAVE_AT91_UTMI
156a9c0688fSBoris BREZILLON	select HAVE_AT91_SMD
157c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
158a26e1af5SNicolas Ferre	help
159a26e1af5SNicolas Ferre	  Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
160a26e1af5SNicolas Ferre	  This means that your SAM9 name finishes with a '5' (except if it is
161a26e1af5SNicolas Ferre	  AT91SAM9G45!).
162a26e1af5SNicolas Ferre	  This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
163a26e1af5SNicolas Ferre	  and AT91SAM9X35.
1649a3ee403SNicolas Ferre
16574db4fb9SHong Xuconfig SOC_AT91SAM9N12
16674db4fb9SHong Xu	bool "AT91SAM9N12 family"
16774db4fb9SHong Xu	select HAVE_AT91_DBGU0
16874db4fb9SHong Xu	select HAVE_FB_ATMEL
169b1b3f49cSRussell King	select SOC_AT91SAM9
170c84a61d8SBoris BREZILLON	select HAVE_AT91_USB_CLK
17174db4fb9SHong Xu	help
17274db4fb9SHong Xu	  Select this if you are using Atmel's AT91SAM9N12 SoC.
17374db4fb9SHong Xu
1749d041268SAndrew Victor# ----------------------------------------------------------
1758f0cdcc5SLudovic Desrochesendif # SOC_SAM_V4_V5
1769f1ccefeSGreg Ungerer
17749fe2ba3SNicolas Ferrecomment "Generic Board Type"
17849fe2ba3SNicolas Ferre
179397f8c3cSJoachim Eastwoodconfig MACH_AT91RM9200_DT
180397f8c3cSJoachim Eastwood	bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
181397f8c3cSJoachim Eastwood	depends on SOC_AT91RM9200
182397f8c3cSJoachim Eastwood	help
183397f8c3cSJoachim Eastwood	  Select this if you want to experiment device-tree with
184397f8c3cSJoachim Eastwood	  an Atmel RM9200 Evaluation Kit.
185397f8c3cSJoachim Eastwood
1864afcd1dbSJean-Christophe PLAGNIOL-VILLARDconfig MACH_AT91SAM9_DT
18749fe2ba3SNicolas Ferre	bool "Atmel AT91SAM Evaluation Kits with device-tree support"
18835ed3c7aSJoachim Eastwood	depends on SOC_AT91SAM9
18949fe2ba3SNicolas Ferre	help
19049fe2ba3SNicolas Ferre	  Select this if you want to experiment device-tree with
19149fe2ba3SNicolas Ferre	  an Atmel Evaluation Kit.
19249fe2ba3SNicolas Ferre
19349fe2ba3SNicolas Ferre# ----------------------------------------------------------
19449fe2ba3SNicolas Ferre
1959d041268SAndrew Victorcomment "AT91 Feature Selections"
1969d041268SAndrew Victor
197eaad2db0SAndrew Victorconfig AT91_SLOW_CLOCK
198eaad2db0SAndrew Victor	bool "Suspend-to-RAM disables main oscillator"
199eaad2db0SAndrew Victor	depends on SUSPEND
200eaad2db0SAndrew Victor	help
201eaad2db0SAndrew Victor	  Select this if you want Suspend-to-RAM to save the most power
202eaad2db0SAndrew Victor	  possible (without powering off the CPU) by disabling the PLLs
203eaad2db0SAndrew Victor	  and main oscillator so that only the 32 KiHz clock is available.
204eaad2db0SAndrew Victor
205eaad2db0SAndrew Victor	  When only that slow-clock is available, some peripherals lose
206eaad2db0SAndrew Victor	  functionality.  Many can't issue wakeup events unless faster
207eaad2db0SAndrew Victor	  clocks are available.  Some lose their operating state and
208eaad2db0SAndrew Victor	  need to be completely re-initialized.
209eaad2db0SAndrew Victor
2105248c657SDavid Brownellconfig AT91_TIMER_HZ
2115248c657SDavid Brownell       int "Kernel HZ (jiffies per second)"
2125248c657SDavid Brownell       range 32 1024
2135248c657SDavid Brownell       depends on ARCH_AT91
214e152015bSNicolas Ferre       default "128" if SOC_AT91RM9200
2155248c657SDavid Brownell       default "100"
2165248c657SDavid Brownell       help
2175248c657SDavid Brownell	  On AT91rm9200 chips where you're using a system clock derived
2185248c657SDavid Brownell	  from the 32768 Hz hardware clock, this tick rate should divide
2195248c657SDavid Brownell	  it exactly: use a power-of-two value, such as 128 or 256, to
2205248c657SDavid Brownell	  reduce timing errors caused by rounding.
2215248c657SDavid Brownell
2225248c657SDavid Brownell	  On AT91sam926x chips, or otherwise when using a higher precision
2235248c657SDavid Brownell	  system clock (of at least several MHz), rounding is less of a
2245248c657SDavid Brownell	  problem so it can be safer to use a decimal values like 100.
2255248c657SDavid Brownell
2269d041268SAndrew Victorendmenu
2279d041268SAndrew Victor
2289d041268SAndrew Victorendif
229