Skip to content

Commit 7f17e39

Browse files
committed
Merge tag 'socfpga_updates_for_v5.0' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into next/soc
SoCFPGA updates for v5.0 - Split Kconfig options for debug UART on Cyclone5 - Remove unused functions from socfpga platform code - Turn on ARM and PL310 errata for SOCFPGA ARMv7 platform * tag 'socfpga_updates_for_v5.0' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: ARM: socfpga: Turn on ARM errata for L2 cache ARM: socfpga: Clean unused functions ARM: debug: enable UART1 for socfpga Cyclone5 Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents d88bb41 + fbc125a commit 7f17e39

4 files changed

Lines changed: 24 additions & 10 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,14 +1087,21 @@ choice
10871087
Say Y here if you want kernel low-level debugging support
10881088
on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
10891089

1090-
config DEBUG_SOCFPGA_UART1
1090+
config DEBUG_SOCFPGA_ARRIA10_UART1
10911091
depends on ARCH_SOCFPGA
1092-
bool "Use SOCFPGA UART1 for low-level debug"
1092+
bool "Use SOCFPGA Arria10 UART1 for low-level debug"
10931093
select DEBUG_UART_8250
10941094
help
10951095
Say Y here if you want kernel low-level debugging support
10961096
on SOCFPGA(Arria 10) based platforms.
10971097

1098+
config DEBUG_SOCFPGA_CYCLONE5_UART1
1099+
depends on ARCH_SOCFPGA
1100+
bool "Use SOCFPGA Cyclone 5 UART1 for low-level debug"
1101+
select DEBUG_UART_8250
1102+
help
1103+
Say Y here if you want kernel low-level debugging support
1104+
on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
10981105

10991106
config DEBUG_SUN9I_UART0
11001107
bool "Kernel low-level debugging messages via sun9i UART0"
@@ -1682,7 +1689,8 @@ config DEBUG_UART_PHYS
16821689
default 0xfe800000 if ARCH_IOP32X
16831690
default 0xff690000 if DEBUG_RK32_UART2
16841691
default 0xffc02000 if DEBUG_SOCFPGA_UART0
1685-
default 0xffc02100 if DEBUG_SOCFPGA_UART1
1692+
default 0xffc02100 if DEBUG_SOCFPGA_ARRIA10_UART1
1693+
default 0xffc03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
16861694
default 0xffd82340 if ARCH_IOP13XX
16871695
default 0xffe40000 if DEBUG_RCAR_GEN1_SCIF0
16881696
default 0xffe42000 if DEBUG_RCAR_GEN1_SCIF2
@@ -1789,7 +1797,8 @@ config DEBUG_UART_VIRT
17891797
default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
17901798
default 0xfeb31000 if DEBUG_KEYSTONE_UART1
17911799
default 0xfec02000 if DEBUG_SOCFPGA_UART0
1792-
default 0xfec02100 if DEBUG_SOCFPGA_UART1
1800+
default 0xfec02100 if DEBUG_SOCFPGA_ARRIA10_UART1
1801+
default 0xfec03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
17931802
default 0xfec12000 if (DEBUG_MVEBU_UART0 || DEBUG_MVEBU_UART0_ALTERNATE) && ARCH_MVEBU
17941803
default 0xfec12100 if DEBUG_MVEBU_UART1_ALTERNATE
17951804
default 0xfec10000 if DEBUG_SIRFATLAS7_UART0
@@ -1838,9 +1847,9 @@ config DEBUG_UART_8250_WORD
18381847
depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
18391848
depends on DEBUG_UART_8250_SHIFT >= 2
18401849
default y if DEBUG_PICOXCELL_UART || \
1841-
DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_UART1 || \
1842-
DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \
1843-
DEBUG_ALPINE_UART0 || \
1850+
DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_ARRIA10_UART1 || \
1851+
DEBUG_SOCFPGA_CYCLONE5_UART1 || DEBUG_KEYSTONE_UART0 || \
1852+
DEBUG_KEYSTONE_UART1 || DEBUG_ALPINE_UART0 || \
18441853
DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
18451854
DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_BCM_IPROC_UART3 || \
18461855
DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2

‎arch/arm/mach-socfpga/Kconfig‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ menuconfig ARCH_SOCFPGA
1111
select HAVE_ARM_TWD if SMP
1212
select MFD_SYSCON
1313
select PCI_DOMAINS if PCI
14+
select ARM_ERRATA_754322
15+
select ARM_ERRATA_764369 if SMP
16+
select ARM_ERRATA_775420
17+
select PL310_ERRATA_588369
18+
select PL310_ERRATA_727915
19+
select PL310_ERRATA_753970 if PL310
20+
select PL310_ERRATA_769419
1421

1522
if ARCH_SOCFPGA
1623
config SOCFPGA_SUSPEND

‎arch/arm/mach-socfpga/core.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434

3535
#define RSTMGR_MPUMODRST_CPU1 0x2 /* CPU1 Reset */
3636

37-
extern void socfpga_init_clocks(void);
38-
extern void socfpga_sysmgr_init(void);
3937
void socfpga_init_l2_ecc(void);
4038
void socfpga_init_ocram_ecc(void);
4139
void socfpga_init_arria10_l2_ecc(void);

‎arch/arm/mach-socfpga/socfpga.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void __iomem *rst_manager_base_addr;
3232
void __iomem *sdr_ctl_base_addr;
3333
unsigned long socfpga_cpu1start_addr;
3434

35-
void __init socfpga_sysmgr_init(void)
35+
static void __init socfpga_sysmgr_init(void)
3636
{
3737
struct device_node *np;
3838

0 commit comments

Comments
 (0)