Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: ep93xx: DT for the Cirrus ep93xx SoC platforms

Add compulsory device tree support to the Cirrus ep93xx ARMv4 platform.

- select PINCTRL_EP93xx
- select COMMON_CLK_EP93XX, as clock driver moved out of platform code
- select ARCH_HAS_RESET_CONTROLLER

Select ARM_ATAG_DTB_COMPAT to update device tree with information
about memory passed from bootloader.

We have to leave all MACH options as they are used for board checking
before decomp, to turn off watchdog and ethernet DMA.

Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Tested-by: Michael Peters <mpeters@embeddedTS.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Kris Bahnsen <kris@embeddedTS.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Damien Le Moal <dlemoal@kernel.org>
Acked-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Nikita Shubin and committed by
Arnd Bergmann
046322f1 bd8511fb

+10 -22
-1
arch/arm/Makefile
··· 183 183 machine-$(CONFIG_ARCH_DAVINCI) += davinci 184 184 machine-$(CONFIG_ARCH_DIGICOLOR) += digicolor 185 185 machine-$(CONFIG_ARCH_DOVE) += dove 186 - machine-$(CONFIG_ARCH_EP93XX) += ep93xx 187 186 machine-$(CONFIG_ARCH_EXYNOS) += exynos 188 187 machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge 189 188 machine-$(CONFIG_ARCH_GEMINI) += gemini
+10 -10
arch/arm/mach-ep93xx/Kconfig
··· 3 3 bool "EP93xx-based" 4 4 depends on ATAGS 5 5 depends on ARCH_MULTI_V4T 6 + # CONFIG_ARCH_MULTI_V7 is not set 6 7 depends on CPU_LITTLE_ENDIAN 8 + select ARCH_HAS_RESET_CONTROLLER 7 9 select ARCH_SPARSEMEM_ENABLE 8 10 select ARM_AMBA 9 11 select ARM_VIC 12 + select ARM_APPENDED_DTB # Old Redboot bootloaders deployed 13 + select ARM_ATAG_DTB_COMPAT # we need this to update dt memory node 14 + select COMMON_CLK_EP93XX 15 + select EP93XX_TIMER 10 16 select CLKSRC_MMIO 11 17 select CPU_ARM920T 12 18 select GPIOLIB 19 + select PINCTRL 20 + select PINCTRL_EP93XX 13 21 help 14 22 This enables support for the Cirrus EP93xx series of CPUs. 15 23 16 24 if ARCH_EP93XX 17 25 18 - menu "Cirrus EP93xx Implementation Options" 19 - 20 - config EP93XX_SOC_COMMON 21 - bool 22 - default y 23 - select SOC_BUS 24 - select LEDS_GPIO_REGISTER 25 - 26 - comment "EP93xx Platforms" 26 + # menu "EP93xx Platforms" 27 27 28 28 config MACH_BK3 29 29 bool "Support Liebherr BK3.1" ··· 103 103 Say 'Y' here if you want your kernel to support the 104 104 Vision Engraving Systems EP9307 SoM. 105 105 106 - endmenu 106 + # endmenu 107 107 108 108 endif
-11
arch/arm/mach-ep93xx/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0 2 - # 3 - # Makefile for the linux kernel. 4 - # 5 - obj-y := core.o clock.o timer-ep93xx.o 6 - 7 - obj-$(CONFIG_EP93XX_DMA) += dma.o 8 - 9 - obj-$(CONFIG_MACH_EDB93XX) += edb93xx.o 10 - obj-$(CONFIG_MACH_TS72XX) += ts72xx.o 11 - obj-$(CONFIG_MACH_VISION_EP9307)+= vision_ep9307.o