Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 1 | if ARCH_AT91 |
SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 2 | |
Boris BREZILLON | f090fb3 | 2013-10-11 12:22:06 +0200 | [diff] [blame] | 3 | config HAVE_AT91_UTMI |
| 4 | bool |
| 5 | |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 6 | config HAVE_AT91_USB_CLK |
| 7 | bool |
| 8 | |
Jean-Christophe PLAGNIOL-VILLARD | 13079a7 | 2011-11-02 01:43:31 +0800 | [diff] [blame] | 9 | config HAVE_AT91_DBGU0 |
| 10 | bool |
| 11 | |
| 12 | config HAVE_AT91_DBGU1 |
| 13 | bool |
| 14 | |
Nicolas Ferre | 2dc850b | 2014-09-15 18:15:54 +0200 | [diff] [blame] | 15 | config HAVE_AT91_DBGU2 |
| 16 | bool |
| 17 | |
Boris BREZILLON | c8a8c63 | 2013-10-11 09:37:46 +0200 | [diff] [blame] | 18 | config AT91_USE_OLD_CLK |
| 19 | bool |
| 20 | |
Boris BREZILLON | c8a8c63 | 2013-10-11 09:37:46 +0200 | [diff] [blame] | 21 | config COMMON_CLK_AT91 |
| 22 | bool |
Nicolas Ferre | 7538ec7 | 2014-10-21 14:16:54 +0200 | [diff] [blame] | 23 | default USE_OF && !AT91_USE_OLD_CLK |
Boris BREZILLON | c8a8c63 | 2013-10-11 09:37:46 +0200 | [diff] [blame] | 24 | select COMMON_CLK |
| 25 | |
| 26 | config OLD_CLK_AT91 |
| 27 | bool |
Nicolas Ferre | 7538ec7 | 2014-10-21 14:16:54 +0200 | [diff] [blame] | 28 | default AT91_USE_OLD_CLK |
Boris BREZILLON | c8a8c63 | 2013-10-11 09:37:46 +0200 | [diff] [blame] | 29 | |
Boris BREZILLON | 91a55d4 | 2014-07-10 19:14:19 +0200 | [diff] [blame] | 30 | config OLD_IRQ_AT91 |
| 31 | bool |
| 32 | select MULTI_IRQ_HANDLER |
| 33 | select SPARSE_IRQ |
| 34 | |
Boris BREZILLON | a9c0688 | 2013-10-11 13:27:06 +0200 | [diff] [blame] | 35 | config HAVE_AT91_SMD |
| 36 | bool |
| 37 | |
Alexandre Belloni | bcc5fd4 | 2014-09-15 18:15:53 +0200 | [diff] [blame] | 38 | config HAVE_AT91_H32MX |
| 39 | bool |
| 40 | |
Jean-Christophe PLAGNIOL-VILLARD | 1441bd3 | 2012-04-06 13:04:04 +0800 | [diff] [blame] | 41 | config SOC_AT91SAM9 |
| 42 | bool |
Boris BREZILLON | 3b26f39 | 2014-07-10 19:14:21 +0200 | [diff] [blame] | 43 | select ATMEL_AIC_IRQ if !OLD_IRQ_AT91 |
Jean-Christophe PLAGNIOL-VILLARD | 1441bd3 | 2012-04-06 13:04:04 +0800 | [diff] [blame] | 44 | select CPU_ARM926T |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 45 | select GENERIC_CLOCKEVENTS |
Alexandre Belloni | 63e6036 | 2014-07-08 18:21:13 +0200 | [diff] [blame] | 46 | select MEMORY if USE_OF |
| 47 | select ATMEL_SDRAMC if USE_OF |
Jean-Christophe PLAGNIOL-VILLARD | 1441bd3 | 2012-04-06 13:04:04 +0800 | [diff] [blame] | 48 | |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 49 | config SOC_SAMA5 |
| 50 | bool |
Boris BREZILLON | 3b26f39 | 2014-07-10 19:14:21 +0200 | [diff] [blame] | 51 | select ATMEL_AIC5_IRQ |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 52 | select CPU_V7 |
| 53 | select GENERIC_CLOCKEVENTS |
Arnd Bergmann | a162860 | 2014-03-13 15:23:40 +0100 | [diff] [blame] | 54 | select USE_OF |
Alexandre Belloni | 63e6036 | 2014-07-08 18:21:13 +0200 | [diff] [blame] | 55 | select MEMORY |
| 56 | select ATMEL_SDRAMC |
Alexandre Belloni | 93d2cf4 | 2014-11-10 21:45:53 +0100 | [diff] [blame^] | 57 | select PHYLIB if NETDEVICES |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 58 | |
Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 59 | menu "Atmel AT91 System-on-Chip" |
| 60 | |
Ludovic Desroches | 8f0cdcc | 2013-03-22 13:24:11 +0000 | [diff] [blame] | 61 | choice |
| 62 | |
| 63 | prompt "Core type" |
| 64 | |
Arnd Bergmann | fe138c2 | 2014-03-13 15:18:31 +0100 | [diff] [blame] | 65 | config SOC_SAM_V4_V5 |
| 66 | bool "ARM9 AT91SAM9/AT91RM9200" |
| 67 | help |
| 68 | Select this if you are using one of Atmel's AT91SAM9 or |
| 69 | AT91RM9200 SoC. |
Ludovic Desroches | 8f0cdcc | 2013-03-22 13:24:11 +0000 | [diff] [blame] | 70 | |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 71 | config SOC_SAM_V7 |
| 72 | bool "Cortex A5" |
| 73 | help |
| 74 | Select this if you are using one of Atmel's SAMA5D3 SoC. |
| 75 | |
Ludovic Desroches | 8f0cdcc | 2013-03-22 13:24:11 +0000 | [diff] [blame] | 76 | endchoice |
| 77 | |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 78 | comment "Atmel AT91 Processor" |
Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 79 | |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 80 | if SOC_SAM_V7 |
| 81 | config SOC_SAMA5D3 |
| 82 | bool "SAMA5D3 family" |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 83 | select SOC_SAMA5 |
| 84 | select HAVE_FB_ATMEL |
| 85 | select HAVE_AT91_DBGU1 |
Boris BREZILLON | f090fb3 | 2013-10-11 12:22:06 +0200 | [diff] [blame] | 86 | select HAVE_AT91_UTMI |
Boris BREZILLON | a9c0688 | 2013-10-11 13:27:06 +0200 | [diff] [blame] | 87 | select HAVE_AT91_SMD |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 88 | select HAVE_AT91_USB_CLK |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 89 | help |
| 90 | Select this if you are using one of Atmel's SAMA5D3 family SoC. |
Josh Wu | 7f45716 | 2013-11-06 18:01:11 +0800 | [diff] [blame] | 91 | This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36. |
Nicolas Ferre | 2dc850b | 2014-09-15 18:15:54 +0200 | [diff] [blame] | 92 | |
| 93 | config SOC_SAMA5D4 |
| 94 | bool "SAMA5D4 family" |
| 95 | select SOC_SAMA5 |
| 96 | select HAVE_AT91_DBGU2 |
| 97 | select CLKSRC_MMIO |
| 98 | select CACHE_L2X0 |
| 99 | select CACHE_PL310 |
| 100 | select HAVE_FB_ATMEL |
| 101 | select HAVE_AT91_UTMI |
| 102 | select HAVE_AT91_SMD |
| 103 | select HAVE_AT91_USB_CLK |
| 104 | select HAVE_AT91_H32MX |
| 105 | help |
| 106 | Select this if you are using one of Atmel's SAMA5D4 family SoC. |
Ludovic Desroches | 8f4b479 | 2013-03-22 13:24:12 +0000 | [diff] [blame] | 107 | endif |
| 108 | |
Ludovic Desroches | 8f0cdcc | 2013-03-22 13:24:11 +0000 | [diff] [blame] | 109 | if SOC_SAM_V4_V5 |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 110 | config SOC_AT91RM9200 |
Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 111 | bool "AT91RM9200" |
Boris BREZILLON | 3b26f39 | 2014-07-10 19:14:21 +0200 | [diff] [blame] | 112 | select ATMEL_AIC_IRQ if !OLD_IRQ_AT91 |
Russell King | c750815 | 2008-10-26 10:55:14 +0000 | [diff] [blame] | 113 | select CPU_ARM920T |
David Brownell | 5e802df | 2007-07-31 01:41:26 +0100 | [diff] [blame] | 114 | select GENERIC_CLOCKEVENTS |
Jean-Christophe PLAGNIOL-VILLARD | 13079a7 | 2011-11-02 01:43:31 +0800 | [diff] [blame] | 115 | select HAVE_AT91_DBGU0 |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 116 | select HAVE_AT91_USB_CLK |
Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 117 | |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 118 | config SOC_AT91SAM9260 |
| 119 | bool "AT91SAM9260, AT91SAM9XE or AT91SAM9G20" |
Jean-Christophe PLAGNIOL-VILLARD | 13079a7 | 2011-11-02 01:43:31 +0800 | [diff] [blame] | 120 | select HAVE_AT91_DBGU0 |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 121 | select SOC_AT91SAM9 |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 122 | select HAVE_AT91_USB_CLK |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 123 | help |
| 124 | Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE |
| 125 | or AT91SAM9G20 SoC. |
Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 126 | |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 127 | config SOC_AT91SAM9261 |
| 128 | bool "AT91SAM9261 or AT91SAM9G10" |
Jean-Christophe PLAGNIOL-VILLARD | 13079a7 | 2011-11-02 01:43:31 +0800 | [diff] [blame] | 129 | select HAVE_AT91_DBGU0 |
Nicolas Ferre | 0912e53 | 2009-06-23 16:30:56 +0200 | [diff] [blame] | 130 | select HAVE_FB_ATMEL |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 131 | select SOC_AT91SAM9 |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 132 | select HAVE_AT91_USB_CLK |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 133 | help |
| 134 | Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC. |
Nicolas Ferre | b319ff8 | 2009-06-26 15:37:01 +0100 | [diff] [blame] | 135 | |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 136 | config SOC_AT91SAM9263 |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 137 | bool "AT91SAM9263" |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 138 | select HAVE_AT91_DBGU1 |
Nicolas Ferre | 0912e53 | 2009-06-23 16:30:56 +0200 | [diff] [blame] | 139 | select HAVE_FB_ATMEL |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 140 | select SOC_AT91SAM9 |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 141 | select HAVE_AT91_USB_CLK |
Andrew Victor | b2c6561 | 2007-02-08 09:42:40 +0100 | [diff] [blame] | 142 | |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 143 | config SOC_AT91SAM9RL |
Andrew Victor | 877d772 | 2007-05-11 20:49:56 +0100 | [diff] [blame] | 144 | bool "AT91SAM9RL" |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 145 | select HAVE_AT91_DBGU0 |
Nicolas Ferre | 0912e53 | 2009-06-23 16:30:56 +0200 | [diff] [blame] | 146 | select HAVE_FB_ATMEL |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 147 | select SOC_AT91SAM9 |
Boris BREZILLON | f090fb3 | 2013-10-11 12:22:06 +0200 | [diff] [blame] | 148 | select HAVE_AT91_UTMI |
Andrew Victor | 877d772 | 2007-05-11 20:49:56 +0100 | [diff] [blame] | 149 | |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 150 | config SOC_AT91SAM9G45 |
Nicolas Ferre | ca1dcbf | 2012-03-15 12:26:43 +0100 | [diff] [blame] | 151 | bool "AT91SAM9G45 or AT91SAM9M10 families" |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 152 | select HAVE_AT91_DBGU1 |
Nicolas Ferre | 0912e53 | 2009-06-23 16:30:56 +0200 | [diff] [blame] | 153 | select HAVE_FB_ATMEL |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 154 | select SOC_AT91SAM9 |
Boris BREZILLON | f090fb3 | 2013-10-11 12:22:06 +0200 | [diff] [blame] | 155 | select HAVE_AT91_UTMI |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 156 | select HAVE_AT91_USB_CLK |
Nicolas Ferre | ca1dcbf | 2012-03-15 12:26:43 +0100 | [diff] [blame] | 157 | help |
| 158 | Select this if you are using one of Atmel's AT91SAM9G45 family SoC. |
| 159 | This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11. |
Nicolas Ferre | 789b23b | 2009-06-26 15:36:58 +0100 | [diff] [blame] | 160 | |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 161 | config SOC_AT91SAM9X5 |
Nicolas Ferre | 9a3ee40 | 2012-01-23 16:16:44 +0100 | [diff] [blame] | 162 | bool "AT91SAM9x5 family" |
Jean-Christophe PLAGNIOL-VILLARD | 1e3ce2b | 2012-04-06 11:51:50 +0800 | [diff] [blame] | 163 | select HAVE_AT91_DBGU0 |
Nicolas Ferre | 9a3ee40 | 2012-01-23 16:16:44 +0100 | [diff] [blame] | 164 | select HAVE_FB_ATMEL |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 165 | select SOC_AT91SAM9 |
Boris BREZILLON | f090fb3 | 2013-10-11 12:22:06 +0200 | [diff] [blame] | 166 | select HAVE_AT91_UTMI |
Boris BREZILLON | a9c0688 | 2013-10-11 13:27:06 +0200 | [diff] [blame] | 167 | select HAVE_AT91_SMD |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 168 | select HAVE_AT91_USB_CLK |
Nicolas Ferre | a26e1af | 2012-03-15 12:48:41 +0100 | [diff] [blame] | 169 | help |
| 170 | Select this if you are using one of Atmel's AT91SAM9x5 family SoC. |
| 171 | This means that your SAM9 name finishes with a '5' (except if it is |
| 172 | AT91SAM9G45!). |
| 173 | This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35 |
| 174 | and AT91SAM9X35. |
Nicolas Ferre | 9a3ee40 | 2012-01-23 16:16:44 +0100 | [diff] [blame] | 175 | |
Hong Xu | 74db4fb | 2012-04-17 14:26:31 +0800 | [diff] [blame] | 176 | config SOC_AT91SAM9N12 |
| 177 | bool "AT91SAM9N12 family" |
Hong Xu | 74db4fb | 2012-04-17 14:26:31 +0800 | [diff] [blame] | 178 | select HAVE_AT91_DBGU0 |
| 179 | select HAVE_FB_ATMEL |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 180 | select SOC_AT91SAM9 |
Boris BREZILLON | c84a61d | 2013-10-17 18:55:41 +0200 | [diff] [blame] | 181 | select HAVE_AT91_USB_CLK |
Hong Xu | 74db4fb | 2012-04-17 14:26:31 +0800 | [diff] [blame] | 182 | help |
| 183 | Select this if you are using Atmel's AT91SAM9N12 SoC. |
| 184 | |
Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 185 | # ---------------------------------------------------------- |
Ludovic Desroches | 8f0cdcc | 2013-03-22 13:24:11 +0000 | [diff] [blame] | 186 | endif # SOC_SAM_V4_V5 |
Greg Ungerer | 9f1ccef | 2007-07-30 02:39:21 +0100 | [diff] [blame] | 187 | |
Arnd Bergmann | fe138c2 | 2014-03-13 15:18:31 +0100 | [diff] [blame] | 188 | |
Nicolas Ferre | 7538ec7 | 2014-10-21 14:16:54 +0200 | [diff] [blame] | 189 | if SOC_SAM_V4_V5 |
Arnd Bergmann | fe138c2 | 2014-03-13 15:18:31 +0100 | [diff] [blame] | 190 | source arch/arm/mach-at91/Kconfig.non_dt |
| 191 | endif |
| 192 | |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 193 | comment "Generic Board Type" |
| 194 | |
Joachim Eastwood | 397f8c3 | 2012-10-28 18:31:09 +0000 | [diff] [blame] | 195 | config MACH_AT91RM9200_DT |
| 196 | bool "Atmel AT91RM9200 Evaluation Kits with device-tree support" |
| 197 | depends on SOC_AT91RM9200 |
| 198 | select USE_OF |
| 199 | help |
| 200 | Select this if you want to experiment device-tree with |
| 201 | an Atmel RM9200 Evaluation Kit. |
| 202 | |
Jean-Christophe PLAGNIOL-VILLARD | 4afcd1d | 2013-02-19 18:30:29 +0800 | [diff] [blame] | 203 | config MACH_AT91SAM9_DT |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 204 | bool "Atmel AT91SAM Evaluation Kits with device-tree support" |
Joachim Eastwood | 35ed3c7 | 2012-10-28 18:31:06 +0000 | [diff] [blame] | 205 | depends on SOC_AT91SAM9 |
Nicolas Ferre | 49fe2ba | 2011-10-10 18:29:24 +0200 | [diff] [blame] | 206 | select USE_OF |
| 207 | help |
| 208 | Select this if you want to experiment device-tree with |
| 209 | an Atmel Evaluation Kit. |
| 210 | |
| 211 | # ---------------------------------------------------------- |
| 212 | |
Andrew Victor | 8fc5ffa | 2006-06-29 16:06:33 +0100 | [diff] [blame] | 213 | comment "AT91 Feature Selections" |
SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 214 | |
Andrew Victor | eaad2db | 2008-09-21 21:35:18 +0100 | [diff] [blame] | 215 | config AT91_SLOW_CLOCK |
| 216 | bool "Suspend-to-RAM disables main oscillator" |
| 217 | depends on SUSPEND |
| 218 | help |
| 219 | Select this if you want Suspend-to-RAM to save the most power |
| 220 | possible (without powering off the CPU) by disabling the PLLs |
| 221 | and main oscillator so that only the 32 KiHz clock is available. |
| 222 | |
| 223 | When only that slow-clock is available, some peripherals lose |
| 224 | functionality. Many can't issue wakeup events unless faster |
| 225 | clocks are available. Some lose their operating state and |
| 226 | need to be completely re-initialized. |
| 227 | |
David Brownell | 5248c65 | 2007-11-12 17:59:10 +0100 | [diff] [blame] | 228 | config AT91_TIMER_HZ |
| 229 | int "Kernel HZ (jiffies per second)" |
| 230 | range 32 1024 |
| 231 | depends on ARCH_AT91 |
| 232 | default "128" if ARCH_AT91RM9200 |
| 233 | default "100" |
| 234 | help |
| 235 | On AT91rm9200 chips where you're using a system clock derived |
| 236 | from the 32768 Hz hardware clock, this tick rate should divide |
| 237 | it exactly: use a power-of-two value, such as 128 or 256, to |
| 238 | reduce timing errors caused by rounding. |
| 239 | |
| 240 | On AT91sam926x chips, or otherwise when using a higher precision |
| 241 | system clock (of at least several MHz), rounding is less of a |
| 242 | problem so it can be safer to use a decimal values like 100. |
| 243 | |
SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 244 | endmenu |
| 245 | |
| 246 | endif |