2019-05-19 15:07:45 +03:00
# SPDX-License-Identifier: GPL-2.0-only
2015-03-14 00:57:18 +03:00
menuconfig ARCH_AT91
2018-02-28 17:56:43 +03:00
bool "AT91/Microchip SoCs"
2017-05-31 04:06:21 +03:00
depends on ARCH_MULTI_V4T || ARCH_MULTI_V5 || ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M
2017-08-23 17:46:15 +03:00
select ARM_CPU_SUSPEND if PM && ARCH_MULTI_V7
2014-11-21 19:10:06 +03:00
select COMMON_CLK_AT91
2016-06-02 15:10:16 +03:00
select GPIOLIB
2015-03-14 00:57:18 +03:00
select PINCTRL
select SOC_BUS
2013-03-22 17:24:11 +04:00
2015-03-14 00:57:18 +03:00
if ARCH_AT91
2017-05-31 04:06:21 +03:00
config SOC_SAMV7
bool "SAM Cortex-M7 family" if ARM_SINGLE_ARMV7M
select COMMON_CLK_AT91
select PINCTRL_AT91
help
2018-02-28 17:56:43 +03:00
Select this if you are using an SoC from Microchip's SAME7, SAMS7 or SAMV7
2017-05-31 04:06:21 +03:00
families.
2015-07-30 20:12:12 +03:00
config SOC_SAMA5D2
ARM: use "depends on" for SoC configs instead of "if" after prompt
Many ARM sub-architectures use prompts followed by "if" conditional,
but it is wrong.
Please notice the difference between
config ARCH_FOO
bool "Foo SoCs" if ARCH_MULTI_V7
and
config ARCH_FOO
bool "Foo SoCs"
depends on ARCH_MULTI_V7
These two are *not* equivalent!
In the former statement, it is not ARCH_FOO, but its prompt that
depends on ARCH_MULTI_V7. So, it is completely valid that ARCH_FOO
is selected by another, but ARCH_MULTI_V7 is still disabled. As it is
not unmet dependency, Kconfig never warns. This is probably not what
you want.
The former should be used only when you need to do so, and you really
understand what you are doing. (In most cases, it should be wrong!)
For enabling/disabling sub-architectures, the latter is always correct.
As a good side effect, this commit fixes some entries over 80 columns
(mach-imx, mach-integrator, mach-mbevu).
[Arnd: I note that there is not really a bug here, according to
the discussion that followed, but I can see value in being consistent
and in making the lines shorter]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Jun Nie <jun.nie@linaro.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Krzysztof Halasa <khc@piap.pl>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2015-11-16 06:06:10 +03:00
bool "SAMA5D2 family"
depends on ARCH_MULTI_V7
2015-07-30 20:12:12 +03:00
select SOC_SAMA5
select CACHE_L2X0
select HAVE_AT91_UTMI
select HAVE_AT91_USB_CLK
select HAVE_AT91_H32MX
select HAVE_AT91_GENERATED_CLK
2017-08-10 09:34:03 +03:00
select HAVE_AT91_AUDIO_PLL
2018-06-18 17:12:36 +03:00
select HAVE_AT91_I2S_MUX_CLK
2015-12-01 13:44:40 +03:00
select PINCTRL_AT91PIO4
2015-07-30 20:12:12 +03:00
help
2018-02-28 17:56:43 +03:00
Select this if ou are using one of Microchip's SAMA5D2 family SoC.
2015-07-30 20:12:12 +03:00
2013-03-22 17:24:12 +04:00
config SOC_SAMA5D3
ARM: use "depends on" for SoC configs instead of "if" after prompt
Many ARM sub-architectures use prompts followed by "if" conditional,
but it is wrong.
Please notice the difference between
config ARCH_FOO
bool "Foo SoCs" if ARCH_MULTI_V7
and
config ARCH_FOO
bool "Foo SoCs"
depends on ARCH_MULTI_V7
These two are *not* equivalent!
In the former statement, it is not ARCH_FOO, but its prompt that
depends on ARCH_MULTI_V7. So, it is completely valid that ARCH_FOO
is selected by another, but ARCH_MULTI_V7 is still disabled. As it is
not unmet dependency, Kconfig never warns. This is probably not what
you want.
The former should be used only when you need to do so, and you really
understand what you are doing. (In most cases, it should be wrong!)
For enabling/disabling sub-architectures, the latter is always correct.
As a good side effect, this commit fixes some entries over 80 columns
(mach-imx, mach-integrator, mach-mbevu).
[Arnd: I note that there is not really a bug here, according to
the discussion that followed, but I can see value in being consistent
and in making the lines shorter]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Jun Nie <jun.nie@linaro.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Krzysztof Halasa <khc@piap.pl>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2015-11-16 06:06:10 +03:00
bool "SAMA5D3 family"
depends on ARCH_MULTI_V7
2013-03-22 17:24:12 +04:00
select SOC_SAMA5
2013-10-11 14:22:06 +04:00
select HAVE_AT91_UTMI
2013-10-11 15:27:06 +04:00
select HAVE_AT91_SMD
2013-10-17 20:55:41 +04:00
select HAVE_AT91_USB_CLK
2015-12-01 13:44:40 +03:00
select PINCTRL_AT91
2013-03-22 17:24:12 +04:00
help
2018-02-28 17:56:43 +03:00
Select this if you are using one of Microchip's SAMA5D3 family SoC.
2013-11-06 14:01:11 +04:00
This support covers SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36.
2014-09-15 20:15:54 +04:00
config SOC_SAMA5D4
ARM: use "depends on" for SoC configs instead of "if" after prompt
Many ARM sub-architectures use prompts followed by "if" conditional,
but it is wrong.
Please notice the difference between
config ARCH_FOO
bool "Foo SoCs" if ARCH_MULTI_V7
and
config ARCH_FOO
bool "Foo SoCs"
depends on ARCH_MULTI_V7
These two are *not* equivalent!
In the former statement, it is not ARCH_FOO, but its prompt that
depends on ARCH_MULTI_V7. So, it is completely valid that ARCH_FOO
is selected by another, but ARCH_MULTI_V7 is still disabled. As it is
not unmet dependency, Kconfig never warns. This is probably not what
you want.
The former should be used only when you need to do so, and you really
understand what you are doing. (In most cases, it should be wrong!)
For enabling/disabling sub-architectures, the latter is always correct.
As a good side effect, this commit fixes some entries over 80 columns
(mach-imx, mach-integrator, mach-mbevu).
[Arnd: I note that there is not really a bug here, according to
the discussion that followed, but I can see value in being consistent
and in making the lines shorter]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Jun Nie <jun.nie@linaro.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Krzysztof Halasa <khc@piap.pl>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2015-11-16 06:06:10 +03:00
bool "SAMA5D4 family"
depends on ARCH_MULTI_V7
2014-09-15 20:15:54 +04:00
select SOC_SAMA5
select CACHE_L2X0
select HAVE_AT91_UTMI
select HAVE_AT91_SMD
select HAVE_AT91_USB_CLK
select HAVE_AT91_H32MX
2015-12-01 13:44:40 +03:00
select PINCTRL_AT91
2014-09-15 20:15:54 +04:00
help
2018-02-28 17:56:43 +03:00
Select this if you are using one of Microchip's SAMA5D4 family SoC.
2013-03-22 17:24:12 +04:00
2012-04-06 07:51:50 +04:00
config SOC_AT91RM9200
ARM: use "depends on" for SoC configs instead of "if" after prompt
Many ARM sub-architectures use prompts followed by "if" conditional,
but it is wrong.
Please notice the difference between
config ARCH_FOO
bool "Foo SoCs" if ARCH_MULTI_V7
and
config ARCH_FOO
bool "Foo SoCs"
depends on ARCH_MULTI_V7
These two are *not* equivalent!
In the former statement, it is not ARCH_FOO, but its prompt that
depends on ARCH_MULTI_V7. So, it is completely valid that ARCH_FOO
is selected by another, but ARCH_MULTI_V7 is still disabled. As it is
not unmet dependency, Kconfig never warns. This is probably not what
you want.
The former should be used only when you need to do so, and you really
understand what you are doing. (In most cases, it should be wrong!)
For enabling/disabling sub-architectures, the latter is always correct.
As a good side effect, this commit fixes some entries over 80 columns
(mach-imx, mach-integrator, mach-mbevu).
[Arnd: I note that there is not really a bug here, according to
the discussion that followed, but I can see value in being consistent
and in making the lines shorter]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Jun Nie <jun.nie@linaro.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Krzysztof Halasa <khc@piap.pl>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2015-11-16 06:06:10 +03:00
bool "AT91RM9200"
depends on ARCH_MULTI_V4T
2014-11-21 19:10:06 +03:00
select ATMEL_AIC_IRQ
2017-05-31 04:06:22 +03:00
select ATMEL_PM if PM
2015-03-12 15:07:31 +03:00
select ATMEL_ST
2008-10-26 13:55:14 +03:00
select CPU_ARM920T
2013-10-17 20:55:41 +04:00
select HAVE_AT91_USB_CLK
2015-12-01 13:44:40 +03:00
select PINCTRL_AT91
2015-03-14 00:57:18 +03:00
select SOC_SAM_V4_V5
2015-03-09 06:44:50 +03:00
select SRAM if PM
2015-03-14 00:57:18 +03:00
help
2018-02-28 17:56:43 +03:00
Select this if you are using Microchip's AT91RM9200 SoC.
2006-01-09 20:05:41 +03:00
2015-01-16 00:58:13 +03:00
config SOC_AT91SAM9
ARM: use "depends on" for SoC configs instead of "if" after prompt
Many ARM sub-architectures use prompts followed by "if" conditional,
but it is wrong.
Please notice the difference between
config ARCH_FOO
bool "Foo SoCs" if ARCH_MULTI_V7
and
config ARCH_FOO
bool "Foo SoCs"
depends on ARCH_MULTI_V7
These two are *not* equivalent!
In the former statement, it is not ARCH_FOO, but its prompt that
depends on ARCH_MULTI_V7. So, it is completely valid that ARCH_FOO
is selected by another, but ARCH_MULTI_V7 is still disabled. As it is
not unmet dependency, Kconfig never warns. This is probably not what
you want.
The former should be used only when you need to do so, and you really
understand what you are doing. (In most cases, it should be wrong!)
For enabling/disabling sub-architectures, the latter is always correct.
As a good side effect, this commit fixes some entries over 80 columns
(mach-imx, mach-integrator, mach-mbevu).
[Arnd: I note that there is not really a bug here, according to
the discussion that followed, but I can see value in being consistent
and in making the lines shorter]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Jun Nie <jun.nie@linaro.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Krzysztof Halasa <khc@piap.pl>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2015-11-16 06:06:10 +03:00
bool "AT91SAM9"
depends on ARCH_MULTI_V5
2015-01-16 00:58:13 +03:00
select ATMEL_AIC_IRQ
2017-05-31 04:06:22 +03:00
select ATMEL_PM if PM
2015-01-16 00:58:13 +03:00
select ATMEL_SDRAMC
select CPU_ARM926T
2013-10-11 15:27:06 +04:00
select HAVE_AT91_SMD
2013-10-17 20:55:41 +04:00
select HAVE_AT91_USB_CLK
2015-01-16 00:58:13 +03:00
select HAVE_AT91_UTMI
2012-04-17 10:26:31 +04:00
select HAVE_FB_ATMEL
2015-01-16 00:58:13 +03:00
select MEMORY
2015-12-01 13:44:40 +03:00
select PINCTRL_AT91
2015-03-14 00:57:18 +03:00
select SOC_SAM_V4_V5
2015-03-09 06:44:50 +03:00
select SRAM if PM
2012-04-17 10:26:31 +04:00
help
2018-02-28 17:56:43 +03:00
Select this if you are using one of those Microchip SoC:
2015-01-16 00:58:13 +03:00
AT91SAM9260
AT91SAM9261
AT91SAM9263
AT91SAM9G15
AT91SAM9G20
AT91SAM9G25
AT91SAM9G35
AT91SAM9G45
AT91SAM9G46
AT91SAM9M10
AT91SAM9M11
AT91SAM9N12
AT91SAM9RL
AT91SAM9X25
AT91SAM9X35
AT91SAM9XE
2014-03-13 18:18:31 +04:00
2019-11-29 16:51:38 +03:00
config SOC_SAM9X60
bool "SAM9X60"
depends on ARCH_MULTI_V5
select ATMEL_AIC5_IRQ
select ATMEL_PM if PM
select ATMEL_SDRAMC
select CPU_ARM926T
select HAVE_AT91_USB_CLK
select HAVE_AT91_GENERATED_CLK
select HAVE_AT91_SAM9X60_PLL
select MEMORY
select PINCTRL_AT91
select SOC_SAM_V4_V5
select SRAM if PM
help
Select this if you are using Microchip's SAM9X60 SoC
2019-04-27 00:47:13 +03:00
comment "Clocksource driver selection"
config ATMEL_CLOCKSOURCE_PIT
bool "Periodic Interval Timer (PIT) support"
2019-11-29 16:51:38 +03:00
depends on SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
2019-04-27 00:47:13 +03:00
default SOC_AT91SAM9 || SOC_SAMA5
select ATMEL_PIT
help
Select this to get a clocksource based on the Atmel Periodic Interval
Timer. It has a relatively low resolution and the TC Block clocksource
should be preferred.
config ATMEL_CLOCKSOURCE_TCB
bool "Timer Counter Blocks (TCB) support"
2019-11-29 16:51:38 +03:00
default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
2019-04-27 00:47:13 +03:00
select ATMEL_TCB_CLKSRC
help
Select this to get a high precision clocksource based on a
TC block with a 5+ MHz base clock rate.
On platforms with 16-bit counters, two timer channels are combined
to make a single 32-bit timer.
It can also be used as a clock event device supporting oneshot mode.
2015-03-14 00:57:18 +03:00
config HAVE_AT91_UTMI
bool
config HAVE_AT91_USB_CLK
bool
config COMMON_CLK_AT91
bool
2014-09-05 11:54:13 +04:00
select MFD_SYSCON
2015-03-14 00:57:18 +03:00
config HAVE_AT91_SMD
bool
config HAVE_AT91_H32MX
bool
2015-07-31 12:43:12 +03:00
config HAVE_AT91_GENERATED_CLK
bool
2017-08-10 09:34:03 +03:00
config HAVE_AT91_AUDIO_PLL
bool
2018-06-18 17:12:36 +03:00
config HAVE_AT91_I2S_MUX_CLK
bool
2019-11-29 16:51:37 +03:00
config HAVE_AT91_SAM9X60_PLL
bool
2015-03-14 00:57:18 +03:00
config SOC_SAM_V4_V5
bool
config SOC_SAM_V7
bool
config SOC_SAMA5
bool
select ATMEL_AIC5_IRQ
2017-05-31 04:06:22 +03:00
select ATMEL_PM if PM
2015-03-14 00:57:18 +03:00
select ATMEL_SDRAMC
select MEMORY
select SOC_SAM_V7
select SRAM if PM
2017-05-31 04:06:22 +03:00
config ATMEL_PM
bool
2006-01-09 20:05:41 +03:00
endif