aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-10-30 06:03:28 -0400
committerArnd Bergmann <arnd@arndb.de>2017-10-30 06:03:28 -0400
commit141f70ea2bbc540187fa0d4a477667db151ef0d2 (patch)
tree96a3d6471d7990151bee76407e154d247b01a890
parent688de98f3488b55b333601030c790a923183169d (diff)
parentfa1e581d02d293d4d52c6950dc083484babe09f2 (diff)
Merge tag 'arm-soc/for-4.15/soc-part2' of http://github.com/Broadcom/stblinux into next/soc
Pull "Broadcom soc changes for 4.15 (part 2)" from Florian Fainelli: This pull request contains Broadcom ARM-based SoC changes for 4.15 (second part), please pull the following: - Florian adds support for the Broadcom Hurricane 2 SoC machine entry point and defines the debug UART address for use with earlyprintk/DEBUG_LL * tag 'arm-soc/for-4.15/soc-part2' of http://github.com/Broadcom/stblinux: ARM: debug: Add Hurricane 2 UART2 debug addresses ARM: bcm: Add support for Broadcom Hurricane 2 SoC
-rw-r--r--arch/arm/Kconfig.debug10
-rw-r--r--arch/arm/mach-bcm/Kconfig9
-rw-r--r--arch/arm/mach-bcm/Makefile3
-rw-r--r--arch/arm/mach-bcm/bcm_hr2.c25
4 files changed, 46 insertions, 1 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 31bf312be7d5..c6472d5f1610 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -169,6 +169,11 @@ choice
169 depends on ARCH_BCM_5301X || ARCH_BCM_NSP 169 depends on ARCH_BCM_5301X || ARCH_BCM_NSP
170 select DEBUG_UART_8250 170 select DEBUG_UART_8250
171 171
172 config DEBUG_BCM_HR2
173 bool "Kernel low-level debugging on Hurricane 2 UART2"
174 depends on ARCH_BCM_HR2
175 select DEBUG_UART_8250
176
172 config DEBUG_BCM_KONA_UART 177 config DEBUG_BCM_KONA_UART
173 bool "Kernel low-level debugging messages via BCM KONA UART" 178 bool "Kernel low-level debugging messages via BCM KONA UART"
174 depends on ARCH_BCM_MOBILE 179 depends on ARCH_BCM_MOBILE
@@ -1516,6 +1521,7 @@ config DEBUG_UART_PHYS
1516 default 0x11009000 if DEBUG_MT8135_UART3 1521 default 0x11009000 if DEBUG_MT8135_UART3
1517 default 0x16000000 if DEBUG_INTEGRATOR 1522 default 0x16000000 if DEBUG_INTEGRATOR
1518 default 0x18000300 if DEBUG_BCM_5301X 1523 default 0x18000300 if DEBUG_BCM_5301X
1524 default 0x18000400 if DEBUG_BCM_HR2
1519 default 0x18010000 if DEBUG_SIRFATLAS7_UART0 1525 default 0x18010000 if DEBUG_SIRFATLAS7_UART0
1520 default 0x18020000 if DEBUG_SIRFATLAS7_UART1 1526 default 0x18020000 if DEBUG_SIRFATLAS7_UART1
1521 default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1 1527 default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
@@ -1633,6 +1639,7 @@ config DEBUG_UART_VIRT
1633 default 0xf01fb000 if DEBUG_NOMADIK_UART 1639 default 0xf01fb000 if DEBUG_NOMADIK_UART
1634 default 0xf0201000 if DEBUG_BCM2835 || DEBUG_BCM2836 1640 default 0xf0201000 if DEBUG_BCM2835 || DEBUG_BCM2836
1635 default 0xf1000300 if DEBUG_BCM_5301X 1641 default 0xf1000300 if DEBUG_BCM_5301X
1642 default 0xf1000400 if DEBUG_BCM_HR2
1636 default 0xf1002000 if DEBUG_MT8127_UART0 1643 default 0xf1002000 if DEBUG_MT8127_UART0
1637 default 0xf1006000 if DEBUG_MT6589_UART0 1644 default 0xf1006000 if DEBUG_MT6589_UART0
1638 default 0xf1009000 if DEBUG_MT8135_UART3 1645 default 0xf1009000 if DEBUG_MT8135_UART3
@@ -1738,7 +1745,8 @@ config DEBUG_UART_8250_SHIFT
1738 int "Register offset shift for the 8250 debug UART" 1745 int "Register offset shift for the 8250 debug UART"
1739 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250 1746 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1740 default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \ 1747 default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \
1741 DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || DEBUG_OMAP7XXUART3 1748 DEBUG_BCM_HR2 || DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || \
1749 DEBUG_OMAP7XXUART3
1742 default 2 1750 default 2
1743 1751
1744config DEBUG_UART_8250_WORD 1752config DEBUG_UART_8250_WORD
diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
index 73be3d578851..76807581f9f3 100644
--- a/arch/arm/mach-bcm/Kconfig
+++ b/arch/arm/mach-bcm/Kconfig
@@ -36,6 +36,15 @@ config ARCH_BCM_CYGNUS
36 BCM11300, BCM11320, BCM11350, BCM11360, 36 BCM11300, BCM11320, BCM11350, BCM11360,
37 BCM58300, BCM58302, BCM58303, BCM58305. 37 BCM58300, BCM58302, BCM58303, BCM58305.
38 38
39config ARCH_BCM_HR2
40 bool "Broadcom Hurricane 2 SoC support"
41 depends on ARCH_MULTI_V7
42 select ARCH_BCM_IPROC
43 help
44 Enable support for the Hurricane 2 family,
45 which includes the following variants:
46 BCM53342, BCM53343, BCM53344, BCM53346.
47
39config ARCH_BCM_NSP 48config ARCH_BCM_NSP
40 bool "Broadcom Northstar Plus SoC Support" 49 bool "Broadcom Northstar Plus SoC Support"
41 depends on ARCH_MULTI_V7 50 depends on ARCH_MULTI_V7
diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile
index 62a59008c5a8..8fd23b263c60 100644
--- a/arch/arm/mach-bcm/Makefile
+++ b/arch/arm/mach-bcm/Makefile
@@ -13,6 +13,9 @@
13# Cygnus 13# Cygnus
14obj-$(CONFIG_ARCH_BCM_CYGNUS) += bcm_cygnus.o 14obj-$(CONFIG_ARCH_BCM_CYGNUS) += bcm_cygnus.o
15 15
16# Hurricane 2
17obj-$(CONFIG_ARCH_BCM_HR2) += bcm_hr2.o
18
16# Northstar Plus 19# Northstar Plus
17obj-$(CONFIG_ARCH_BCM_NSP) += bcm_nsp.o 20obj-$(CONFIG_ARCH_BCM_NSP) += bcm_nsp.o
18 21
diff --git a/arch/arm/mach-bcm/bcm_hr2.c b/arch/arm/mach-bcm/bcm_hr2.c
new file mode 100644
index 000000000000..c104f28995d7
--- /dev/null
+++ b/arch/arm/mach-bcm/bcm_hr2.c
@@ -0,0 +1,25 @@
1/*
2 * Copyright (C) 2017 Broadcom
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation version 2.
7 *
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include <asm/mach/arch.h>
15
16static const char * const bcm_hr2_dt_compat[] __initconst = {
17 "brcm,hr2",
18 NULL,
19};
20
21DT_MACHINE_START(BCM_HR2_DT, "Broadcom Hurricane 2 SoC")
22 .l2c_aux_val = 0,
23 .l2c_aux_mask = ~0,
24 .dt_compat = bcm_hr2_dt_compat,
25MACHINE_END