1# SPDX-License-Identifier: GPL-2.0-only 2menuconfig ARCH_AT91 3 bool "AT91/Microchip SoCs" 4 depends on ARCH_MULTI_V4T || ARCH_MULTI_V5 || ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M 5 select ARM_CPU_SUSPEND if PM && ARCH_MULTI_V7 6 select COMMON_CLK_AT91 7 select GPIOLIB 8 select PINCTRL 9 select SOC_BUS 10 11if ARCH_AT91 12config SOC_SAMV7 13 bool "SAM Cortex-M7 family" if ARM_SINGLE_ARMV7M 14 select COMMON_CLK_AT91 15 select PINCTRL_AT91 16 help 17 Select this if you are using an SoC from Microchip's SAME7, SAMS7 or SAMV7 18 families. 19 20config SOC_SAMA5D2 21 bool "SAMA5D2 family" 22 depends on ARCH_MULTI_V7 23 select SOC_SAMA5 24 select CACHE_L2X0 25 select HAVE_AT91_UTMI 26 select HAVE_AT91_USB_CLK 27 select HAVE_AT91_H32MX 28 select HAVE_AT91_GENERATED_CLK 29 select HAVE_AT91_AUDIO_PLL 30 select HAVE_AT91_I2S_MUX_CLK 31 select PINCTRL_AT91PIO4 32 help 33 Select this if ou are using one of Microchip's SAMA5D2 family SoC. 34 35config SOC_SAMA5D3 36 bool "SAMA5D3 family" 37 depends on ARCH_MULTI_V7 38 select SOC_SAMA5 39 select HAVE_AT91_UTMI 40 select HAVE_AT91_SMD 41 select HAVE_AT91_USB_CLK 42 select PINCTRL_AT91 43 help 44 Select this if you are using one of Microchip's SAMA5D3 family SoC. 45 This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36. 46 47config SOC_SAMA5D4 48 bool "SAMA5D4 family" 49 depends on ARCH_MULTI_V7 50 select SOC_SAMA5 51 select CACHE_L2X0 52 select HAVE_AT91_UTMI 53 select HAVE_AT91_SMD 54 select HAVE_AT91_USB_CLK 55 select HAVE_AT91_H32MX 56 select PINCTRL_AT91 57 help 58 Select this if you are using one of Microchip's SAMA5D4 family SoC. 59 60config SOC_AT91RM9200 61 bool "AT91RM9200" 62 depends on ARCH_MULTI_V4T 63 select ATMEL_AIC_IRQ 64 select ATMEL_PM if PM 65 select ATMEL_ST 66 select CPU_ARM920T 67 select HAVE_AT91_USB_CLK 68 select PINCTRL_AT91 69 select SOC_SAM_V4_V5 70 select SRAM if PM 71 help 72 Select this if you are using Microchip's AT91RM9200 SoC. 73 74config SOC_AT91SAM9 75 bool "AT91SAM9" 76 depends on ARCH_MULTI_V5 77 select ATMEL_AIC_IRQ 78 select ATMEL_PM if PM 79 select ATMEL_SDRAMC 80 select CPU_ARM926T 81 select HAVE_AT91_SMD 82 select HAVE_AT91_USB_CLK 83 select HAVE_AT91_UTMI 84 select HAVE_FB_ATMEL 85 select MEMORY 86 select PINCTRL_AT91 87 select SOC_SAM_V4_V5 88 select SRAM if PM 89 help 90 Select this if you are using one of those Microchip SoC: 91 AT91SAM9260 92 AT91SAM9261 93 AT91SAM9263 94 AT91SAM9G15 95 AT91SAM9G20 96 AT91SAM9G25 97 AT91SAM9G35 98 AT91SAM9G45 99 AT91SAM9G46 100 AT91SAM9M10 101 AT91SAM9M11 102 AT91SAM9N12 103 AT91SAM9RL 104 AT91SAM9X25 105 AT91SAM9X35 106 AT91SAM9XE 107 108comment "Clocksource driver selection" 109 110config ATMEL_CLOCKSOURCE_PIT 111 bool "Periodic Interval Timer (PIT) support" 112 depends on SOC_AT91SAM9 || SOC_SAMA5 113 default SOC_AT91SAM9 || SOC_SAMA5 114 select ATMEL_PIT 115 help 116 Select this to get a clocksource based on the Atmel Periodic Interval 117 Timer. It has a relatively low resolution and the TC Block clocksource 118 should be preferred. 119 120config ATMEL_CLOCKSOURCE_TCB 121 bool "Timer Counter Blocks (TCB) support" 122 default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5 123 select ATMEL_TCB_CLKSRC 124 help 125 Select this to get a high precision clocksource based on a 126 TC block with a 5+ MHz base clock rate. 127 On platforms with 16-bit counters, two timer channels are combined 128 to make a single 32-bit timer. 129 It can also be used as a clock event device supporting oneshot mode. 130 131config HAVE_AT91_UTMI 132 bool 133 134config HAVE_AT91_USB_CLK 135 bool 136 137config COMMON_CLK_AT91 138 bool 139 select COMMON_CLK 140 select MFD_SYSCON 141 142config HAVE_AT91_SMD 143 bool 144 145config HAVE_AT91_H32MX 146 bool 147 148config HAVE_AT91_GENERATED_CLK 149 bool 150 151config HAVE_AT91_AUDIO_PLL 152 bool 153 154config HAVE_AT91_I2S_MUX_CLK 155 bool 156 157config SOC_SAM_V4_V5 158 bool 159 160config SOC_SAM_V7 161 bool 162 163config SOC_SAMA5 164 bool 165 select ATMEL_AIC5_IRQ 166 select ATMEL_PM if PM 167 select ATMEL_SDRAMC 168 select MEMORY 169 select SOC_SAM_V7 170 select SRAM if PM 171 172config ATMEL_PM 173 bool 174 175endif 176