aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2014-07-19 15:22:47 -0400
committerOlof Johansson <olof@lixom.net>2014-07-19 15:22:47 -0400
commit7b2a428a33411dd9d79ee836b6e72fad2dbbb365 (patch)
treec2b11f6d0e6dac7dce21ad4f9c593a712dc29c8b
parentb40abaf07fa19c5aa3e649369ed8e0f9df1d2eda (diff)
parent5ba1657ecdee507df4adcd05b533d09e9934fc11 (diff)
Merge tag 'sunxi-core-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux into next/soc
Merge "Allwinner core additions for 3.17" from Maxime Ripard: Nothing very fancy here, only the introduction from the new Allwinner A23 SoC. * tag 'sunxi-core-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux: ARM: sunxi: select MFD_SUN6I_PRCM when sun8i arch support is enabled ARM: sunxi: Add earlyprintk support using R_UART (sun6i/sun8i) ARM: sunxi: Introduce Allwinner A23 support Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm/Kconfig.debug10
-rw-r--r--arch/arm/mach-sunxi/Kconfig8
-rw-r--r--arch/arm/mach-sunxi/sunxi.c9
3 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 8f90595069a1..3548612b0bfe 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -715,6 +715,14 @@ choice
715 Say Y here if you want kernel low-level debugging support 715 Say Y here if you want kernel low-level debugging support
716 on Allwinner A1X based platforms on the UART1. 716 on Allwinner A1X based platforms on the UART1.
717 717
718 config DEBUG_SUNXI_R_UART
719 bool "Kernel low-level debugging messages via sunXi R_UART"
720 depends on MACH_SUN6I || MACH_SUN8I
721 select DEBUG_UART_8250
722 help
723 Say Y here if you want kernel low-level debugging support
724 on Allwinner A31/A23 based platforms on the R_UART.
725
718 config TEGRA_DEBUG_UART_AUTO_ODMDATA 726 config TEGRA_DEBUG_UART_AUTO_ODMDATA
719 bool "Kernel low-level debugging messages via Tegra UART via ODMDATA" 727 bool "Kernel low-level debugging messages via Tegra UART via ODMDATA"
720 depends on ARCH_TEGRA 728 depends on ARCH_TEGRA
@@ -1043,6 +1051,7 @@ config DEBUG_UART_PHYS
1043 default 0x01c28400 if DEBUG_SUNXI_UART1 1051 default 0x01c28400 if DEBUG_SUNXI_UART1
1044 default 0x01d0c000 if DEBUG_DAVINCI_DA8XX_UART1 1052 default 0x01d0c000 if DEBUG_DAVINCI_DA8XX_UART1
1045 default 0x01d0d000 if DEBUG_DAVINCI_DA8XX_UART2 1053 default 0x01d0d000 if DEBUG_DAVINCI_DA8XX_UART2
1054 default 0x01f02800 if DEBUG_SUNXI_R_UART
1046 default 0x02530c00 if DEBUG_KEYSTONE_UART0 1055 default 0x02530c00 if DEBUG_KEYSTONE_UART0
1047 default 0x02531000 if DEBUG_KEYSTONE_UART1 1056 default 0x02531000 if DEBUG_KEYSTONE_UART1
1048 default 0x03010fe0 if ARCH_RPC 1057 default 0x03010fe0 if ARCH_RPC
@@ -1118,6 +1127,7 @@ config DEBUG_UART_VIRT
1118 default 0xf1600000 if ARCH_INTEGRATOR 1127 default 0xf1600000 if ARCH_INTEGRATOR
1119 default 0xf1c28000 if DEBUG_SUNXI_UART0 1128 default 0xf1c28000 if DEBUG_SUNXI_UART0
1120 default 0xf1c28400 if DEBUG_SUNXI_UART1 1129 default 0xf1c28400 if DEBUG_SUNXI_UART1
1130 default 0xf1f02800 if DEBUG_SUNXI_R_UART
1121 default 0xf2100000 if DEBUG_PXA_UART1 1131 default 0xf2100000 if DEBUG_PXA_UART1
1122 default 0xf4090000 if ARCH_LPC32XX 1132 default 0xf4090000 if ARCH_LPC32XX
1123 default 0xf4200000 if ARCH_GEMINI 1133 default 0xf4200000 if ARCH_GEMINI
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 0fbd4f156bfa..6434e3b62c13 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -35,4 +35,12 @@ config MACH_SUN7I
35 select HAVE_ARM_ARCH_TIMER 35 select HAVE_ARM_ARCH_TIMER
36 select SUN5I_HSTIMER 36 select SUN5I_HSTIMER
37 37
38config MACH_SUN8I
39 bool "Allwinner A23 (sun8i) SoCs support"
40 default ARCH_SUNXI
41 select ARCH_HAS_RESET_CONTROLLER
42 select ARM_GIC
43 select MFD_SUN6I_PRCM
44 select RESET_CONTROLLER
45
38endif 46endif
diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
index 3f9587bb51f6..4d09469320c8 100644
--- a/arch/arm/mach-sunxi/sunxi.c
+++ b/arch/arm/mach-sunxi/sunxi.c
@@ -53,3 +53,12 @@ static const char * const sun7i_board_dt_compat[] = {
53DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family") 53DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family")
54 .dt_compat = sun7i_board_dt_compat, 54 .dt_compat = sun7i_board_dt_compat,
55MACHINE_END 55MACHINE_END
56
57static const char * const sun8i_board_dt_compat[] = {
58 "allwinner,sun8i-a23",
59 NULL,
60};
61
62DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i (A23) Family")
63 .dt_compat = sun8i_board_dt_compat,
64MACHINE_END