xref: /linux/arch/arm/mach-at91/Kconfig (revision 8f4b47949f61eb7f68f458d56a661a7842e67c44)
19d041268SAndrew Victorif ARCH_AT91
29d041268SAndrew Victor
313079a73SJean-Christophe PLAGNIOL-VILLARDconfig HAVE_AT91_DBGU0
413079a73SJean-Christophe PLAGNIOL-VILLARD	bool
513079a73SJean-Christophe PLAGNIOL-VILLARD
613079a73SJean-Christophe PLAGNIOL-VILLARDconfig HAVE_AT91_DBGU1
713079a73SJean-Christophe PLAGNIOL-VILLARD	bool
813079a73SJean-Christophe PLAGNIOL-VILLARD
98f0cdcc5SLudovic Desrochesconfig AT91_PMC_UNIT
108f0cdcc5SLudovic Desroches	bool
118f0cdcc5SLudovic Desroches	default !ARCH_AT91X40
128f0cdcc5SLudovic Desroches
13c0177594SJean-Christophe PLAGNIOL-VILLARDconfig AT91_SAM9_ALT_RESET
14c0177594SJean-Christophe PLAGNIOL-VILLARD	bool
1521ea52aaSJean-Christophe PLAGNIOL-VILLARD	default !ARCH_AT91X40
16c0177594SJean-Christophe PLAGNIOL-VILLARD
1714f991a7SJean-Christophe PLAGNIOL-VILLARDconfig AT91_SAM9G45_RESET
1814f991a7SJean-Christophe PLAGNIOL-VILLARD	bool
1921ea52aaSJean-Christophe PLAGNIOL-VILLARD	default !ARCH_AT91X40
2014f991a7SJean-Christophe PLAGNIOL-VILLARD
21fc05b657SLudovic Desrochesconfig AT91_SAM9_TIME
22fc05b657SLudovic Desroches	bool
23fc05b657SLudovic Desroches
241441bd32SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9
251441bd32SJean-Christophe PLAGNIOL-VILLARD	bool
26fc05b657SLudovic Desroches	select AT91_SAM9_TIME
271441bd32SJean-Christophe PLAGNIOL-VILLARD	select CPU_ARM926T
28b1b3f49cSRussell King	select GENERIC_CLOCKEVENTS
2908d04a13SJean-Christophe PLAGNIOL-VILLARD	select MULTI_IRQ_HANDLER
3008d04a13SJean-Christophe PLAGNIOL-VILLARD	select SPARSE_IRQ
311441bd32SJean-Christophe PLAGNIOL-VILLARD
32*8f4b4794SLudovic Desrochesconfig SOC_SAMA5
33*8f4b4794SLudovic Desroches	bool
34*8f4b4794SLudovic Desroches	select AT91_SAM9_TIME
35*8f4b4794SLudovic Desroches	select CPU_V7
36*8f4b4794SLudovic Desroches	select GENERIC_CLOCKEVENTS
37*8f4b4794SLudovic Desroches	select MULTI_IRQ_HANDLER
38*8f4b4794SLudovic Desroches	select SPARSE_IRQ
39*8f4b4794SLudovic Desroches
409d041268SAndrew Victormenu "Atmel AT91 System-on-Chip"
419d041268SAndrew Victor
428f0cdcc5SLudovic Desrocheschoice
438f0cdcc5SLudovic Desroches
448f0cdcc5SLudovic Desroches	prompt "Core type"
458f0cdcc5SLudovic Desroches
468f0cdcc5SLudovic Desrochesconfig SOC_SAM_V4_V5
478f0cdcc5SLudovic Desroches	bool "ARM7/ARM9"
488f0cdcc5SLudovic Desroches	help
498f0cdcc5SLudovic Desroches	  Select this if you are using one of Atmel's AT91SAM9, AT91RM9200
508f0cdcc5SLudovic Desroches	  or AT91X40 SoC.
518f0cdcc5SLudovic Desroches
52*8f4b4794SLudovic Desrochesconfig SOC_SAM_V7
53*8f4b4794SLudovic Desroches	bool "Cortex A5"
54*8f4b4794SLudovic Desroches	help
55*8f4b4794SLudovic Desroches	  Select this if you are using one of Atmel's SAMA5D3 SoC.
56*8f4b4794SLudovic Desroches
578f0cdcc5SLudovic Desrochesendchoice
588f0cdcc5SLudovic Desroches
591e3ce2b8SJean-Christophe PLAGNIOL-VILLARDcomment "Atmel AT91 Processor"
609d041268SAndrew Victor
61*8f4b4794SLudovic Desrochesif SOC_SAM_V7
62*8f4b4794SLudovic Desrochesconfig SOC_SAMA5D3
63*8f4b4794SLudovic Desroches	bool "SAMA5D3 family"
64*8f4b4794SLudovic Desroches	depends on SOC_SAM_V7
65*8f4b4794SLudovic Desroches	select SOC_SAMA5
66*8f4b4794SLudovic Desroches	select HAVE_FB_ATMEL
67*8f4b4794SLudovic Desroches	select HAVE_AT91_DBGU1
68*8f4b4794SLudovic Desroches	help
69*8f4b4794SLudovic Desroches	  Select this if you are using one of Atmel's SAMA5D3 family SoC.
70*8f4b4794SLudovic Desroches	  This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35.
71*8f4b4794SLudovic Desrochesendif
72*8f4b4794SLudovic Desroches
738f0cdcc5SLudovic Desrochesif SOC_SAM_V4_V5
741e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91RM9200
759d041268SAndrew Victor	bool "AT91RM9200"
76c750815eSRussell King	select CPU_ARM920T
775e802dfaSDavid Brownell	select GENERIC_CLOCKEVENTS
7813079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
79b1b3f49cSRussell King	select MULTI_IRQ_HANDLER
80b1b3f49cSRussell King	select SPARSE_IRQ
819d041268SAndrew Victor
821e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9260
831e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
8413079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
85b1b3f49cSRussell King	select SOC_AT91SAM9
861e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	help
871e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
881e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  or AT91SAM9G20 SoC.
899d041268SAndrew Victor
901e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9261
911e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	bool "AT91SAM9261 or AT91SAM9G10"
9213079a73SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
930912e535SNicolas Ferre	select HAVE_FB_ATMEL
94b1b3f49cSRussell King	select SOC_AT91SAM9
951e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	help
961e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	  Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
97b319ff80SNicolas Ferre
981e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9263
99b2c65616SAndrew Victor	bool "AT91SAM9263"
1001e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU1
1010912e535SNicolas Ferre	select HAVE_FB_ATMEL
102b1b3f49cSRussell King	select SOC_AT91SAM9
103b2c65616SAndrew Victor
1041e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9RL
105877d7720SAndrew Victor	bool "AT91SAM9RL"
1061e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1070912e535SNicolas Ferre	select HAVE_FB_ATMEL
108b1b3f49cSRussell King	select SOC_AT91SAM9
109877d7720SAndrew Victor
1101e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9G45
111ca1dcbf7SNicolas Ferre	bool "AT91SAM9G45 or AT91SAM9M10 families"
1121e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU1
1130912e535SNicolas Ferre	select HAVE_FB_ATMEL
114b1b3f49cSRussell King	select SOC_AT91SAM9
115ca1dcbf7SNicolas Ferre	help
116ca1dcbf7SNicolas Ferre	  Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
117ca1dcbf7SNicolas Ferre	  This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
118789b23bcSNicolas Ferre
1191e3ce2b8SJean-Christophe PLAGNIOL-VILLARDconfig SOC_AT91SAM9X5
1209a3ee403SNicolas Ferre	bool "AT91SAM9x5 family"
1211e3ce2b8SJean-Christophe PLAGNIOL-VILLARD	select HAVE_AT91_DBGU0
1229a3ee403SNicolas Ferre	select HAVE_FB_ATMEL
123b1b3f49cSRussell King	select SOC_AT91SAM9
124a26e1af5SNicolas Ferre	help
125a26e1af5SNicolas Ferre	  Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
126a26e1af5SNicolas Ferre	  This means that your SAM9 name finishes with a '5' (except if it is
127a26e1af5SNicolas Ferre	  AT91SAM9G45!).
128a26e1af5SNicolas Ferre	  This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
129a26e1af5SNicolas Ferre	  and AT91SAM9X35.
1309a3ee403SNicolas Ferre
13174db4fb9SHong Xuconfig SOC_AT91SAM9N12
13274db4fb9SHong Xu	bool "AT91SAM9N12 family"
13374db4fb9SHong Xu	select HAVE_AT91_DBGU0
13474db4fb9SHong Xu	select HAVE_FB_ATMEL
135b1b3f49cSRussell King	select SOC_AT91SAM9
13674db4fb9SHong Xu	help
13774db4fb9SHong Xu	  Select this if you are using Atmel's AT91SAM9N12 SoC.
13874db4fb9SHong Xu
1399d041268SAndrew Victor# ----------------------------------------------------------
1409d041268SAndrew Victor
1413ae8dbdcSJean-Christophe PLAGNIOL-VILLARDsource arch/arm/mach-at91/Kconfig.non_dt
1428f0cdcc5SLudovic Desrochesendif # SOC_SAM_V4_V5
1439f1ccefeSGreg Ungerer
14449fe2ba3SNicolas Ferrecomment "Generic Board Type"
14549fe2ba3SNicolas Ferre
146397f8c3cSJoachim Eastwoodconfig MACH_AT91RM9200_DT
147397f8c3cSJoachim Eastwood	bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
148397f8c3cSJoachim Eastwood	depends on SOC_AT91RM9200
149397f8c3cSJoachim Eastwood	select USE_OF
150397f8c3cSJoachim Eastwood	help
151397f8c3cSJoachim Eastwood	  Select this if you want to experiment device-tree with
152397f8c3cSJoachim Eastwood	  an Atmel RM9200 Evaluation Kit.
153397f8c3cSJoachim Eastwood
1544afcd1dbSJean-Christophe PLAGNIOL-VILLARDconfig MACH_AT91SAM9_DT
15549fe2ba3SNicolas Ferre	bool "Atmel AT91SAM Evaluation Kits with device-tree support"
15635ed3c7aSJoachim Eastwood	depends on SOC_AT91SAM9
15749fe2ba3SNicolas Ferre	select USE_OF
15849fe2ba3SNicolas Ferre	help
15949fe2ba3SNicolas Ferre	  Select this if you want to experiment device-tree with
16049fe2ba3SNicolas Ferre	  an Atmel Evaluation Kit.
16149fe2ba3SNicolas Ferre
162*8f4b4794SLudovic Desrochesconfig MACH_SAMA5_DT
163*8f4b4794SLudovic Desroches	bool "Atmel SAMA5 Evaluation Kits with device-tree support"
164*8f4b4794SLudovic Desroches	depends on SOC_SAMA5
165*8f4b4794SLudovic Desroches	select USE_OF
166*8f4b4794SLudovic Desroches	help
167*8f4b4794SLudovic Desroches	  Select this if you want to experiment device-tree with
168*8f4b4794SLudovic Desroches	  an Atmel Evaluation Kit.
169*8f4b4794SLudovic Desroches
17049fe2ba3SNicolas Ferre# ----------------------------------------------------------
17149fe2ba3SNicolas Ferre
1729d041268SAndrew Victorcomment "AT91 Feature Selections"
1739d041268SAndrew Victor
1749d041268SAndrew Victorconfig AT91_PROGRAMMABLE_CLOCKS
1759d041268SAndrew Victor	bool "Programmable Clocks"
1769d041268SAndrew Victor	help
1779d041268SAndrew Victor	  Select this if you need to program one or more of the PCK0..PCK3
1789d041268SAndrew Victor	  programmable clock outputs.
1799d041268SAndrew Victor
180eaad2db0SAndrew Victorconfig AT91_SLOW_CLOCK
181eaad2db0SAndrew Victor	bool "Suspend-to-RAM disables main oscillator"
182eaad2db0SAndrew Victor	depends on SUSPEND
183eaad2db0SAndrew Victor	help
184eaad2db0SAndrew Victor	  Select this if you want Suspend-to-RAM to save the most power
185eaad2db0SAndrew Victor	  possible (without powering off the CPU) by disabling the PLLs
186eaad2db0SAndrew Victor	  and main oscillator so that only the 32 KiHz clock is available.
187eaad2db0SAndrew Victor
188eaad2db0SAndrew Victor	  When only that slow-clock is available, some peripherals lose
189eaad2db0SAndrew Victor	  functionality.  Many can't issue wakeup events unless faster
190eaad2db0SAndrew Victor	  clocks are available.  Some lose their operating state and
191eaad2db0SAndrew Victor	  need to be completely re-initialized.
192eaad2db0SAndrew Victor
1935248c657SDavid Brownellconfig AT91_TIMER_HZ
1945248c657SDavid Brownell       int "Kernel HZ (jiffies per second)"
1955248c657SDavid Brownell       range 32 1024
1965248c657SDavid Brownell       depends on ARCH_AT91
1975248c657SDavid Brownell       default "128" if ARCH_AT91RM9200
1985248c657SDavid Brownell       default "100"
1995248c657SDavid Brownell       help
2005248c657SDavid Brownell	  On AT91rm9200 chips where you're using a system clock derived
2015248c657SDavid Brownell	  from the 32768 Hz hardware clock, this tick rate should divide
2025248c657SDavid Brownell	  it exactly: use a power-of-two value, such as 128 or 256, to
2035248c657SDavid Brownell	  reduce timing errors caused by rounding.
2045248c657SDavid Brownell
2055248c657SDavid Brownell	  On AT91sam926x chips, or otherwise when using a higher precision
2065248c657SDavid Brownell	  system clock (of at least several MHz), rounding is less of a
2075248c657SDavid Brownell	  problem so it can be safer to use a decimal values like 100.
2085248c657SDavid Brownell
2099d041268SAndrew Victorendmenu
2109d041268SAndrew Victor
2119d041268SAndrew Victorendif
212