diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-10-06 10:43:25 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-10-06 10:43:25 -0400 |
commit | d64c5097ff1701ae54d02d36f68184756e6a80f0 (patch) | |
tree | 15c2c7f83c72c47c01f2a236db752a31af613aeb | |
parent | 64685273186b71b75734771ca21823cec2d994c3 (diff) | |
parent | 6f112a08c1ed717a015dae190e289d53085c1bc4 (diff) |
Merge tag 'at91-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91 into next/soc
Merge "First little batch of SoC changes for 4.4" from Nicolas Ferre:
- a MAINTAINER addition to cover SAMA5 SoCs
- removal of one unneeded header file
- for low-level serial output, use the DEBUG_UART_PHYS
* tag 'at91-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91:
ARM: at91: debug: use DEBUG_UART_PHYS
ARM: at91: remove useless includes in platform_data/atmel.h
MAINTAINERS: explicitly add Atmel SAMA5
-rw-r--r-- | MAINTAINERS | 2 | ||||
-rw-r--r-- | arch/arm/Kconfig.debug | 41 | ||||
-rw-r--r-- | arch/arm/include/debug/at91.S | 18 | ||||
-rw-r--r-- | include/linux/platform_data/atmel.h | 8 |
4 files changed, 21 insertions, 48 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 797236befd27..cef312ddd49e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -917,7 +917,7 @@ M: Tsahee Zidenberg <tsahee@annapurnalabs.com> | |||
917 | S: Maintained | 917 | S: Maintained |
918 | F: arch/arm/mach-alpine/ | 918 | F: arch/arm/mach-alpine/ |
919 | 919 | ||
920 | ARM/ATMEL AT91RM9200 AND AT91SAM ARM ARCHITECTURES | 920 | ARM/ATMEL AT91RM9200, AT91SAM9 AND SAMA5 SOC SUPPORT |
921 | M: Nicolas Ferre <nicolas.ferre@atmel.com> | 921 | M: Nicolas Ferre <nicolas.ferre@atmel.com> |
922 | M: Alexandre Belloni <alexandre.belloni@free-electrons.com> | 922 | M: Alexandre Belloni <alexandre.belloni@free-electrons.com> |
923 | M: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> | 923 | M: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> |
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 0cfd7f947f6b..abf65b67d5e0 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -123,29 +123,23 @@ choice | |||
123 | 0x80020000 | 0xf0020000 | UART8 | 123 | 0x80020000 | 0xf0020000 | UART8 |
124 | 0x80024000 | 0xf0024000 | UART9 | 124 | 0x80024000 | 0xf0024000 | UART9 |
125 | 125 | ||
126 | config AT91_DEBUG_LL_DBGU0 | 126 | config DEBUG_AT91_UART |
127 | bool "Kernel low-level debugging on rm9200, 9260/9g20, 9261/9g10, 9rl, 9x5, 9n12" | 127 | bool "Kernel low-level debugging on Atmel SoCs" |
128 | select DEBUG_AT91_UART | ||
129 | depends on ARCH_AT91 | 128 | depends on ARCH_AT91 |
130 | depends on SOC_AT91RM9200 || SOC_AT91SAM9 | 129 | help |
130 | Say Y here if you want the debug print routines to direct | ||
131 | their output to the serial port on atmel devices. | ||
131 | 132 | ||
132 | config AT91_DEBUG_LL_DBGU1 | 133 | SOC DEBUG_UART_PHYS DEBUG_UART_VIRT PORT |
133 | bool "Kernel low-level debugging on 9263, 9g45 and sama5d3" | 134 | rm9200, 9260/9g20, 0xfffff200 0xfefff200 DBGU |
134 | select DEBUG_AT91_UART | 135 | 9261/9g10, 9rl |
135 | depends on ARCH_AT91 | 136 | 9263, 9g45, sama5d3 0xffffee00 0xfeffee00 DBGU |
136 | depends on SOC_AT91SAM9 || SOC_SAMA5 | 137 | sama5d4 0xfc00c000 0xfb00c000 USART3 |
138 | sama5d4 0xfc069000 0xfb069000 DBGU | ||
139 | sama5d2 0xf8020000 0xf7020000 UART1 | ||
137 | 140 | ||
138 | config AT91_DEBUG_LL_DBGU2 | 141 | Please adjust DEBUG_UART_PHYS configuration options based on |
139 | bool "Kernel low-level debugging on sama5d4" | 142 | your needs. |
140 | select DEBUG_AT91_UART | ||
141 | depends on ARCH_AT91 | ||
142 | depends on SOC_SAMA5 | ||
143 | |||
144 | config AT91_DEBUG_LL_DBGU3 | ||
145 | bool "Kernel low-level debugging on sama5d2" | ||
146 | select DEBUG_AT91_UART | ||
147 | depends on ARCH_AT91 | ||
148 | depends on SOC_SAMA5 | ||
149 | 143 | ||
150 | config DEBUG_BCM2835 | 144 | config DEBUG_BCM2835 |
151 | bool "Kernel low-level debugging on BCM2835 PL011 UART" | 145 | bool "Kernel low-level debugging on BCM2835 PL011 UART" |
@@ -1249,10 +1243,6 @@ choice | |||
1249 | 1243 | ||
1250 | endchoice | 1244 | endchoice |
1251 | 1245 | ||
1252 | config DEBUG_AT91_UART | ||
1253 | bool | ||
1254 | depends on ARCH_AT91 | ||
1255 | |||
1256 | config DEBUG_EXYNOS_UART | 1246 | config DEBUG_EXYNOS_UART |
1257 | bool | 1247 | bool |
1258 | 1248 | ||
@@ -1485,7 +1475,8 @@ config DEBUG_UART_PHYS | |||
1485 | DEBUG_RMOBILE_SCIFA0 || DEBUG_RMOBILE_SCIFA1 || \ | 1475 | DEBUG_RMOBILE_SCIFA0 || DEBUG_RMOBILE_SCIFA1 || \ |
1486 | DEBUG_RMOBILE_SCIFA4 || DEBUG_S3C24XX_UART || \ | 1476 | DEBUG_RMOBILE_SCIFA4 || DEBUG_S3C24XX_UART || \ |
1487 | DEBUG_UART_BCM63XX || DEBUG_ASM9260_UART || \ | 1477 | DEBUG_UART_BCM63XX || DEBUG_ASM9260_UART || \ |
1488 | DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0 | 1478 | DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0 || \ |
1479 | DEBUG_AT91_UART | ||
1489 | 1480 | ||
1490 | config DEBUG_UART_VIRT | 1481 | config DEBUG_UART_VIRT |
1491 | hex "Virtual base address of debug UART" | 1482 | hex "Virtual base address of debug UART" |
diff --git a/arch/arm/include/debug/at91.S b/arch/arm/include/debug/at91.S index 2556a8801c8c..43243be94cfc 100644 --- a/arch/arm/include/debug/at91.S +++ b/arch/arm/include/debug/at91.S | |||
@@ -9,32 +9,22 @@ | |||
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #if defined(CONFIG_AT91_DEBUG_LL_DBGU0) | ||
13 | #define AT91_DBGU 0xfffff200 /* AT91_BASE_DBGU0 */ | ||
14 | #elif defined(CONFIG_AT91_DEBUG_LL_DBGU1) | ||
15 | #define AT91_DBGU 0xffffee00 /* AT91_BASE_DBGU1 */ | ||
16 | #elif defined(CONFIG_AT91_DEBUG_LL_DBGU2) | ||
17 | /* On sama5d4, use USART3 as low level serial console */ | ||
18 | #define AT91_DBGU 0xfc00c000 /* SAMA5D4_BASE_USART3 */ | ||
19 | #else | ||
20 | /* On sama5d2, use UART1 as low level serial console */ | ||
21 | #define AT91_DBGU 0xf8020000 | ||
22 | #endif | ||
23 | |||
24 | #ifdef CONFIG_MMU | 12 | #ifdef CONFIG_MMU |
25 | #define AT91_IO_P2V(x) ((x) - 0x01000000) | 13 | #define AT91_IO_P2V(x) ((x) - 0x01000000) |
26 | #else | 14 | #else |
27 | #define AT91_IO_P2V(x) (x) | 15 | #define AT91_IO_P2V(x) (x) |
28 | #endif | 16 | #endif |
29 | 17 | ||
18 | #define CONFIG_DEBUG_UART_VIRT AT91_IO_P2V(CONFIG_DEBUG_UART_PHYS) | ||
19 | |||
30 | #define AT91_DBGU_SR (0x14) /* Status Register */ | 20 | #define AT91_DBGU_SR (0x14) /* Status Register */ |
31 | #define AT91_DBGU_THR (0x1c) /* Transmitter Holding Register */ | 21 | #define AT91_DBGU_THR (0x1c) /* Transmitter Holding Register */ |
32 | #define AT91_DBGU_TXRDY (1 << 1) /* Transmitter Ready */ | 22 | #define AT91_DBGU_TXRDY (1 << 1) /* Transmitter Ready */ |
33 | #define AT91_DBGU_TXEMPTY (1 << 9) /* Transmitter Empty */ | 23 | #define AT91_DBGU_TXEMPTY (1 << 9) /* Transmitter Empty */ |
34 | 24 | ||
35 | .macro addruart, rp, rv, tmp | 25 | .macro addruart, rp, rv, tmp |
36 | ldr \rp, =AT91_DBGU @ System peripherals (phys address) | 26 | ldr \rp, =CONFIG_DEBUG_UART_PHYS @ System peripherals (phys address) |
37 | ldr \rv, =AT91_IO_P2V(AT91_DBGU) @ System peripherals (virt address) | 27 | ldr \rv, =CONFIG_DEBUG_UART_VIRT @ System peripherals (virt address) |
38 | .endm | 28 | .endm |
39 | 29 | ||
40 | .macro senduart,rd,rx | 30 | .macro senduart,rd,rx |
diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h index 527a85c61924..4d67a5e82c83 100644 --- a/include/linux/platform_data/atmel.h +++ b/include/linux/platform_data/atmel.h | |||
@@ -9,15 +9,7 @@ | |||
9 | 9 | ||
10 | #include <linux/mtd/nand.h> | 10 | #include <linux/mtd/nand.h> |
11 | #include <linux/mtd/partitions.h> | 11 | #include <linux/mtd/partitions.h> |
12 | #include <linux/device.h> | ||
13 | #include <linux/i2c.h> | ||
14 | #include <linux/leds.h> | ||
15 | #include <linux/spi/spi.h> | ||
16 | #include <linux/usb/atmel_usba_udc.h> | ||
17 | #include <linux/atmel-mci.h> | ||
18 | #include <sound/atmel-ac97c.h> | ||
19 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
20 | #include <linux/platform_data/macb.h> | ||
21 | 13 | ||
22 | /* | 14 | /* |
23 | * at91: 6 USARTs and one DBGU port (SAM9260) | 15 | * at91: 6 USARTs and one DBGU port (SAM9260) |