Kconfig 5.0 KB
Newer Older
1 2
if ARCH_AT91

3 4 5 6 7 8
config HAVE_AT91_DBGU0
	bool

config HAVE_AT91_DBGU1
	bool

9 10 11 12
config AT91_PMC_UNIT
	bool
	default !ARCH_AT91X40

13 14
config AT91_SAM9_ALT_RESET
	bool
15
	default !ARCH_AT91X40
16

17 18
config AT91_SAM9G45_RESET
	bool
19
	default !ARCH_AT91X40
20

21 22 23
config AT91_SAM9_TIME
	bool

24 25
config SOC_AT91SAM9
	bool
26
	select AT91_SAM9_TIME
27
	select CPU_ARM926T
28
	select GENERIC_CLOCKEVENTS
29 30
	select MULTI_IRQ_HANDLER
	select SPARSE_IRQ
31

32 33 34 35 36 37 38 39
config SOC_SAMA5
	bool
	select AT91_SAM9_TIME
	select CPU_V7
	select GENERIC_CLOCKEVENTS
	select MULTI_IRQ_HANDLER
	select SPARSE_IRQ

40 41
menu "Atmel AT91 System-on-Chip"

42 43 44 45 46 47 48 49 50 51
choice

	prompt "Core type"

config SOC_SAM_V4_V5
	bool "ARM7/ARM9"
	help
	  Select this if you are using one of Atmel's AT91SAM9, AT91RM9200
	  or AT91X40 SoC.

52 53 54 55 56
config SOC_SAM_V7
	bool "Cortex A5"
	help
	  Select this if you are using one of Atmel's SAMA5D3 SoC.

57 58
endchoice

59
comment "Atmel AT91 Processor"
60

61 62 63 64 65 66 67 68 69 70 71 72
if SOC_SAM_V7
config SOC_SAMA5D3
	bool "SAMA5D3 family"
	depends on SOC_SAM_V7
	select SOC_SAMA5
	select HAVE_FB_ATMEL
	select HAVE_AT91_DBGU1
	help
	  Select this if you are using one of Atmel's SAMA5D3 family SoC.
	  This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35.
endif

73
if SOC_SAM_V4_V5
74
config SOC_AT91RM9200
75
	bool "AT91RM9200"
76
	select CPU_ARM920T
77
	select GENERIC_CLOCKEVENTS
78
	select HAVE_AT91_DBGU0
79 80
	select MULTI_IRQ_HANDLER
	select SPARSE_IRQ
81

82 83
config SOC_AT91SAM9260
	bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20"
84
	select HAVE_AT91_DBGU0
85
	select SOC_AT91SAM9
86 87 88
	help
	  Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE
	  or AT91SAM9G20 SoC.
89

90 91
config SOC_AT91SAM9261
	bool "AT91SAM9261 or AT91SAM9G10"
92
	select HAVE_AT91_DBGU0
93
	select HAVE_FB_ATMEL
94
	select SOC_AT91SAM9
95 96
	help
	  Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC.
97

98
config SOC_AT91SAM9263
99
	bool "AT91SAM9263"
100
	select HAVE_AT91_DBGU1
101
	select HAVE_FB_ATMEL
102
	select SOC_AT91SAM9
103

104
config SOC_AT91SAM9RL
105
	bool "AT91SAM9RL"
106
	select HAVE_AT91_DBGU0
107
	select HAVE_FB_ATMEL
108
	select SOC_AT91SAM9
109

110
config SOC_AT91SAM9G45
111
	bool "AT91SAM9G45 or AT91SAM9M10 families"
112
	select HAVE_AT91_DBGU1
113
	select HAVE_FB_ATMEL
114
	select SOC_AT91SAM9
115 116 117
	help
	  Select this if you are using one of Atmel's AT91SAM9G45 family SoC.
	  This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11.
118

119
config SOC_AT91SAM9X5
120
	bool "AT91SAM9x5 family"
121
	select HAVE_AT91_DBGU0
122
	select HAVE_FB_ATMEL
123
	select SOC_AT91SAM9
124 125 126 127 128 129
	help
	  Select this if you are using one of Atmel's AT91SAM9x5 family SoC.
	  This means that your SAM9 name finishes with a '5' (except if it is
	  AT91SAM9G45!).
	  This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35
	  and AT91SAM9X35.
130

131 132 133 134
config SOC_AT91SAM9N12
	bool "AT91SAM9N12 family"
	select HAVE_AT91_DBGU0
	select HAVE_FB_ATMEL
135
	select SOC_AT91SAM9
136 137 138
	help
	  Select this if you are using Atmel's AT91SAM9N12 SoC.

139 140
# ----------------------------------------------------------

141
source arch/arm/mach-at91/Kconfig.non_dt
142
endif # SOC_SAM_V4_V5
143

144 145
comment "Generic Board Type"

146 147 148 149 150 151 152 153
config MACH_AT91RM9200_DT
	bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
	depends on SOC_AT91RM9200
	select USE_OF
	help
	  Select this if you want to experiment device-tree with
	  an Atmel RM9200 Evaluation Kit.

154
config MACH_AT91SAM9_DT
155
	bool "Atmel AT91SAM Evaluation Kits with device-tree support"
156
	depends on SOC_AT91SAM9
157 158 159 160 161
	select USE_OF
	help
	  Select this if you want to experiment device-tree with
	  an Atmel Evaluation Kit.

162 163 164 165
config MACH_SAMA5_DT
	bool "Atmel SAMA5 Evaluation Kits with device-tree support"
	depends on SOC_SAMA5
	select USE_OF
166
	select PHYLIB if NETDEVICES
167 168 169 170
	help
	  Select this if you want to experiment device-tree with
	  an Atmel Evaluation Kit.

171 172
# ----------------------------------------------------------

173
comment "AT91 Feature Selections"
174 175 176 177 178 179 180

config AT91_PROGRAMMABLE_CLOCKS
	bool "Programmable Clocks"
	help
	  Select this if you need to program one or more of the PCK0..PCK3
	  programmable clock outputs.

181 182 183 184 185 186 187 188 189 190 191 192 193
config AT91_SLOW_CLOCK
	bool "Suspend-to-RAM disables main oscillator"
	depends on SUSPEND
	help
	  Select this if you want Suspend-to-RAM to save the most power
	  possible (without powering off the CPU) by disabling the PLLs
	  and main oscillator so that only the 32 KiHz clock is available.

	  When only that slow-clock is available, some peripherals lose
	  functionality.  Many can't issue wakeup events unless faster
	  clocks are available.  Some lose their operating state and
	  need to be completely re-initialized.

194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
config AT91_TIMER_HZ
       int "Kernel HZ (jiffies per second)"
       range 32 1024
       depends on ARCH_AT91
       default "128" if ARCH_AT91RM9200
       default "100"
       help
	  On AT91rm9200 chips where you're using a system clock derived
	  from the 32768 Hz hardware clock, this tick rate should divide
	  it exactly: use a power-of-two value, such as 128 or 256, to
	  reduce timing errors caused by rounding.

	  On AT91sam926x chips, or otherwise when using a higher precision
	  system clock (of at least several MHz), rounding is less of a
	  problem so it can be safer to use a decimal values like 100.

210 211 212
endmenu

endif