ARM: clps711x: Partial multiplatform support
Subsystems (2)
RFC PATCH 1/1 ARM: clps711x: Partial multiplatform support
This patch provide initial partial multiplatform support for CLPS711X CPUs. Not intended for apply, just for comments at now.
--- arch/arm/Kconfig | 10 ++-------- arch/arm/mach-clps711x/Kconfig | 21 +++++++++++++++++++++ arch/arm/mach-clps711x/common.c | 2 +- arch/arm/mach-clps711x/devices.c | 2 +- arch/arm/mach-clps711x/include/mach/hardware.h | 2 +- 5 files changed, 26 insertions(+), 11 deletions(-)
arch/arm/Kconfig +2 -8
@@ -385,15 +385,9 @@ config ARCH_AT91 This enables support for systems based on Atmel AT91RM9200 and AT91SAM9* processors. -config ARCH_CLPS711X +config CLPS711X_SINGLE bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" - select ARCH_REQUIRE_GPIOLIB - select AUTO_ZRELADDR - select CLKSRC_MMIO - select COMMON_CLK - select CPU_ARM720T - select GENERIC_CLOCKEVENTS - select MFD_SYSCON + select ARCH_CLPS711X help Support for Cirrus Logic 711x/721x/731x based boards.
arch/arm/mach-clps711x/Kconfig +21 -0
@@ -1,15 +1,34 @@ +config ARCH_CLPS711X + bool + depends on CLPS711X_SINGLE || CLPS711X_MULTI + select ARCH_REQUIRE_GPIOLIB + select AUTO_ZRELADDR + select CLKSRC_MMIO + select COMMON_CLK + select CPU_ARM720T + select GENERIC_CLOCKEVENTS + select MFD_SYSCON + +config CLPS711X_MULTI + bool "Cirrus Logic CLPS711X" if ARCH_MULTI_V4T + select ARCH_CLPS711X + help + Support for Cirrus Logic CLPS711X-based family of processors. + if ARCH_CLPS711X menu "CLPS711X/EP721X/EP731X Implementations" config ARCH_AUTCPU12 bool "AUTCPU12" + depends on CLPS711X_SINGLE help Say Y if you intend to run the kernel on the autronix autcpu12 board. This board is based on a Cirrus Logic CS89712. config ARCH_CDB89712 bool "CDB89712" + depends on CLPS711X_SINGLE help This is an evaluation board from Cirrus for the CS89712 processor. The board includes 2 serial ports, Ethernet, IRDA, and expansion
@@ -22,6 +41,7 @@ config ARCH_CLEP7312 config ARCH_EDB7211 bool "EDB7211" + depends on CLPS711X_SINGLE select ARCH_HAS_HOLES_MEMORYMODEL help Say Y here if you intend to run this kernel on a Cirrus Logic EDB-7211
@@ -29,6 +49,7 @@ config ARCH_EDB7211 config ARCH_P720T bool "P720T" + depends on CLPS711X_SINGLE help Say Y here if you intend to run this kernel on the ARM Prospector 720T.
arch/arm/mach-clps711x/common.c +1 -1
@@ -35,7 +35,7 @@#include <asm/mach/time.h> #include <asm/system_misc.h> -#include <mach/hardware.h> +#include "include/mach/hardware.h" #include "common.h"
arch/arm/mach-clps711x/devices.c +1 -1
@@ -12,7 +12,7 @@#include <linux/platform_device.h> #include <linux/sizes.h> -#include <mach/hardware.h> +#include "include/mach/hardware.h" static const struct resource clps711x_cpuidle_res__initconst =DEFINE_RES_MEM (CLPS711X_PHYS_BASE +HALT ,SZ_128 );
arch/arm/mach-clps711x/include/mach/hardware.h +1 -1
@@ -22,7 +22,7 @@#ifndef __MACH_HARDWARE_H#define __MACH_HARDWARE_H -#include <mach/clps711x.h> +#include "clps711x.h" #define CLPS711X_VIRT_BASE IOMEM(0xfeff0000)
Signature · 1 line
1.8.5.5
RFC PATCH 1/1 ARM: clps711x: Partial multiplatform support
Quoted 2 lines · On Saturday 31 May 2014 22:00:06 Alexander Shiyan wrote:
This patch provide initial partial multiplatform support for CLPS711X CPUs. Not intended for apply, just for comments at now.
It's great to see you are this close now!
Quoted 33 lines
arch/arm/Kconfig +2
-8@@ -385,15 +385,9 @@ config ARCH_AT91 This enables support for systems based on Atmel AT91RM9200 and AT91SAM9* processors. -config ARCH_CLPS711X +config CLPS711X_SINGLE bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" - select ARCH_REQUIRE_GPIOLIB - select AUTO_ZRELADDR - select CLKSRC_MMIO - select COMMON_CLK - select CPU_ARM720T - select GENERIC_CLOCKEVENTS - select MFD_SYSCON + select ARCH_CLPS711X help Support for Cirrus Logic 711x/721x/731x based boards.arch/arm/mach-clps711x/Kconfig +6
-0@@ -1,15 +1,34 @@ +config ARCH_CLPS711X + bool + depends on CLPS711X_SINGLE || CLPS711X_MULTI + select ARCH_REQUIRE_GPIOLIB + select AUTO_ZRELADDR + select CLKSRC_MMIO
arch/arm/mach-clps711x/Kconfig line 16
Quoted 10 lines
arch/arm/mach-clps711x/Kconfig +10
-0+ select COMMON_CLK + select CPU_ARM720T + select GENERIC_CLOCKEVENTS + select MFD_SYSCON + +config CLPS711X_MULTI + bool "Cirrus Logic CLPS711X" if ARCH_MULTI_V4T + select ARCH_CLPS711X + help + Support for Cirrus Logic CLPS711X-based family of processors.
The split between single and multi is just intended to be temporary, while the framebuffer driver is being sorted out, right?
In general, I'd be happier skipping that stage and going to multiplatform for all of clps711x when it's ready, but we can also do it like this if there is a good reason and you have a clear schedule for when to remove the _SINGLE part.
One technicality: this change breaks all defconfig files and user .configs. You can avoid that if you keep the name ARCH_CLPS711X for either the single- or the multiplatform case and name the common option ARCH_CLPS711X_COMMON.
Arnd
Sat, 31 May 2014 20:12:21 +0200 ?? Arnd Bergmann <[email protected]>:
Quoted 44 lines · On Saturday 31 May 2014 22:00:06 Alexander Shiyan wrote:
Quoted 2 lines
This patch provide initial partial multiplatform support for CLPS711X CPUs. Not intended for apply, just for comments at now.
It's great to see you are this close now!
Quoted 38 lines
arch/arm/Kconfig +2
-8@@ -385,15 +385,9 @@ config ARCH_AT91 This enables support for systems based on Atmel AT91RM9200 and AT91SAM9* processors. -config ARCH_CLPS711X +config CLPS711X_SINGLE bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" - select ARCH_REQUIRE_GPIOLIB - select AUTO_ZRELADDR - select CLKSRC_MMIO - select COMMON_CLK - select CPU_ARM720T - select GENERIC_CLOCKEVENTS - select MFD_SYSCON + select ARCH_CLPS711X help Support for Cirrus Logic 711x/721x/731x based boards.arch/arm/mach-clps711x/Kconfig +11
-0@@ -1,15 +1,34 @@ +config ARCH_CLPS711X + bool + depends on CLPS711X_SINGLE || CLPS711X_MULTI + select ARCH_REQUIRE_GPIOLIB + select AUTO_ZRELADDR + select CLKSRC_MMIO + select COMMON_CLK + select CPU_ARM720T + select GENERIC_CLOCKEVENTS + select MFD_SYSCON +
Quoted 8 lines
arch/arm/mach-clps711x/Kconfig line 16
Quoted 5 lines
arch/arm/mach-clps711x/Kconfig +5
-0+config CLPS711X_MULTI + bool "Cirrus Logic CLPS711X" if ARCH_MULTI_V4T + select ARCH_CLPS711X + help + Support for Cirrus Logic CLPS711X-based family of processors.The split between single and multi is just intended to be temporary, while the framebuffer driver is being sorted out, right?
Yes. This is a general thing why this patch provides "partial" support.
Quoted 9 lines
In general, I'd be happier skipping that stage and going to multiplatform for all of clps711x when it's ready, but we can also do it like this if there is a good reason and you have a clear schedule for when to remove the
_SINGLEpart.One technicality: this change breaks all defconfig files and user .configs. You can avoid that if you keep the name
ARCH_CLPS711Xfor either the single- or the multiplatform case and name the common optionARCH_CLPS711X_COMMON.
Yes, this is a problem. I thought about the best way to solve the problem of "flip-flop" Kconfig options, but did not come to a good decision. I'll have to think about this problem. I will look at your solution to the problem.
---
Sat, 31 May 2014 20:12:21 +0200 ?? Arnd Bergmann <[email protected]>:
Quoted 3 lines · On Saturday 31 May 2014 22:00:06 Alexander Shiyan wrote:
Quoted 2 lines
This patch provide initial partial multiplatform support for CLPS711X CPUs. Not intended for apply, just for comments at now.
...
Quoted 4 lines
One technicality: this change breaks all defconfig files and user .configs. You can avoid that if you keep the name
ARCH_CLPS711Xfor either the single- or the multiplatform case and name the common optionARCH_CLPS711X_COMMON.
arch/arm/Kconfig:303:error: recursive dependency detected!arch/arm/Kconfig:303: choice <choice> contains symbol ARCH_CLPS711Xarch/arm/Kconfig:388: symbol ARCH_CLPS711X is part of choice CLPS711X_MULTIarch/arm/mach-clps711x/Kconfig:12: symbol CLPS711X_MULTI depends on ARCH_MULTI_V4Tarch/arm/Kconfig:874: symbol ARCH_MULTI_V4T depends on ARCH_MULTIPLATFORMarch/arm/Kconfig:308: symbol ARCH_MULTIPLATFORM is part of choice <choice>
So, it is so hard to keep ARCH_CLPS711X in its original state...
---