aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/Kconfig.debug35
-rw-r--r--arch/arm/mach-mvebu/mvebu-soc-id.h18
2 files changed, 44 insertions, 9 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 5ddd4906f7a7..7bd1bbccc43c 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -455,13 +455,13 @@ choice
455 Please adjust DEBUG_UART_PHYS and DEBUG_UART_BASE configuration 455 Please adjust DEBUG_UART_PHYS and DEBUG_UART_BASE configuration
456 options based on your needs. 456 options based on your needs.
457 457
458 config DEBUG_MVEBU_UART 458 config DEBUG_MVEBU_UART0
459 bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)" 459 bool "Kernel low-level debugging messages via MVEBU UART0 (old bootloaders)"
460 depends on ARCH_MVEBU 460 depends on ARCH_MVEBU
461 select DEBUG_UART_8250 461 select DEBUG_UART_8250
462 help 462 help
463 Say Y here if you want kernel low-level debugging support 463 Say Y here if you want kernel low-level debugging support
464 on MVEBU based platforms. 464 on MVEBU based platforms on UART0.
465 465
466 This option should be used with the old bootloaders 466 This option should be used with the old bootloaders
467 that left the internal registers mapped at 467 that left the internal registers mapped at
@@ -474,13 +474,28 @@ choice
474 when u-boot hands over to the kernel, the system 474 when u-boot hands over to the kernel, the system
475 silently crashes, with no serial output at all. 475 silently crashes, with no serial output at all.
476 476
477 config DEBUG_MVEBU_UART_ALTERNATE 477 config DEBUG_MVEBU_UART0_ALTERNATE
478 bool "Kernel low-level debugging messages via MVEBU UART (new bootloaders)" 478 bool "Kernel low-level debugging messages via MVEBU UART0 (new bootloaders)"
479 depends on ARCH_MVEBU 479 depends on ARCH_MVEBU
480 select DEBUG_UART_8250 480 select DEBUG_UART_8250
481 help 481 help
482 Say Y here if you want kernel low-level debugging support 482 Say Y here if you want kernel low-level debugging support
483 on MVEBU based platforms. 483 on MVEBU based platforms on UART0.
484
485 This option should be used with the new bootloaders
486 that remap the internal registers at 0xf1000000.
487
488 If the wrong DEBUG_MVEBU_UART* option is selected,
489 when u-boot hands over to the kernel, the system
490 silently crashes, with no serial output at all.
491
492 config DEBUG_MVEBU_UART1_ALTERNATE
493 bool "Kernel low-level debugging messages via MVEBU UART1 (new bootloaders)"
494 depends on ARCH_MVEBU
495 select DEBUG_UART_8250
496 help
497 Say Y here if you want kernel low-level debugging support
498 on MVEBU based platforms on UART1.
484 499
485 This option should be used with the new bootloaders 500 This option should be used with the new bootloaders
486 that remap the internal registers at 0xf1000000. 501 that remap the internal registers at 0xf1000000.
@@ -1282,7 +1297,7 @@ config DEBUG_UART_PHYS
1282 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN 1297 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1283 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN 1298 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1284 default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX 1299 default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
1285 default 0xd0012000 if DEBUG_MVEBU_UART 1300 default 0xd0012000 if DEBUG_MVEBU_UART0
1286 default 0xc81004c0 if DEBUG_MESON_UARTAO 1301 default 0xc81004c0 if DEBUG_MESON_UARTAO
1287 default 0xd4017000 if DEBUG_MMP_UART2 1302 default 0xd4017000 if DEBUG_MMP_UART2
1288 default 0xd4018000 if DEBUG_MMP_UART3 1303 default 0xd4018000 if DEBUG_MMP_UART3
@@ -1296,7 +1311,8 @@ config DEBUG_UART_PHYS
1296 default 0xe8008000 if DEBUG_R7S72100_SCIF2 1311 default 0xe8008000 if DEBUG_R7S72100_SCIF2
1297 default 0xf0000be0 if ARCH_EBSA110 1312 default 0xf0000be0 if ARCH_EBSA110
1298 default 0xf040ab00 if DEBUG_BRCMSTB_UART 1313 default 0xf040ab00 if DEBUG_BRCMSTB_UART
1299 default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE 1314 default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE
1315 default 0xf1012100 if DEBUG_MVEBU_UART1_ALTERNATE
1300 default 0xf1012000 if ARCH_DOVE || ARCH_MV78XX0 || \ 1316 default 0xf1012000 if ARCH_DOVE || ARCH_MV78XX0 || \
1301 ARCH_ORION5X 1317 ARCH_ORION5X
1302 default 0xf7fc9000 if DEBUG_BERLIN_UART 1318 default 0xf7fc9000 if DEBUG_BERLIN_UART
@@ -1377,7 +1393,8 @@ config DEBUG_UART_VIRT
1377 default 0xfeb30c00 if DEBUG_KEYSTONE_UART0 1393 default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
1378 default 0xfeb31000 if DEBUG_KEYSTONE_UART1 1394 default 0xfeb31000 if DEBUG_KEYSTONE_UART1
1379 default 0xfec02000 if DEBUG_SOCFPGA_UART 1395 default 0xfec02000 if DEBUG_SOCFPGA_UART
1380 default 0xfec12000 if DEBUG_MVEBU_UART || DEBUG_MVEBU_UART_ALTERNATE 1396 default 0xfec12000 if DEBUG_MVEBU_UART0 || DEBUG_MVEBU_UART0_ALTERNATE
1397 default 0xfec12100 if DEBUG_MVEBU_UART1_ALTERNATE
1381 default 0xfec20000 if DEBUG_DAVINCI_DMx_UART0 1398 default 0xfec20000 if DEBUG_DAVINCI_DMx_UART0
1382 default 0xfec90000 if DEBUG_RK32_UART2 1399 default 0xfec90000 if DEBUG_RK32_UART2
1383 default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1 1400 default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1
diff --git a/arch/arm/mach-mvebu/mvebu-soc-id.h b/arch/arm/mach-mvebu/mvebu-soc-id.h
index c16bb68ca81f..e124a0b82a3e 100644
--- a/arch/arm/mach-mvebu/mvebu-soc-id.h
+++ b/arch/arm/mach-mvebu/mvebu-soc-id.h
@@ -20,10 +20,28 @@
20#define MV78XX0_A0_REV 0x1 20#define MV78XX0_A0_REV 0x1
21#define MV78XX0_B0_REV 0x2 21#define MV78XX0_B0_REV 0x2
22 22
23/* Amada 370 ID */
24#define ARMADA_370_DEV_ID 0x6710
25
26/* Amada 370 Revision */
27#define ARMADA_370_A1_REV 0x1
28
29/* Armada 375 ID */
30#define ARMADA_375_DEV_ID 0x6720
31
23/* Armada 375 */ 32/* Armada 375 */
24#define ARMADA_375_Z1_REV 0x0 33#define ARMADA_375_Z1_REV 0x0
25#define ARMADA_375_A0_REV 0x3 34#define ARMADA_375_A0_REV 0x3
26 35
36/* Armada 38x ID */
37#define ARMADA_380_DEV_ID 0x6810
38#define ARMADA_385_DEV_ID 0x6820
39#define ARMADA_388_DEV_ID 0x6828
40
41/* Armada 38x Revision */
42#define ARMADA_38x_Z1_REV 0x0
43#define ARMADA_38x_A0_REV 0x4
44
27#ifdef CONFIG_ARCH_MVEBU 45#ifdef CONFIG_ARCH_MVEBU
28int mvebu_get_soc_id(u32 *dev, u32 *rev); 46int mvebu_get_soc_id(u32 *dev, u32 *rev);
29#else 47#else