Skip to content

Commit a18534d

Browse files
QinJianCQintel-lab-lkp
authored andcommitted
ARM: sunplus: Add initial support for Sunplus SP7021 SoC
This patch aims to add an initial support for Sunplus SP7021 SoC. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Qin Jian <qinjian@cqplus1.com>
1 parent 0978a31 commit a18534d

File tree

6 files changed

+55
-0
lines changed

6 files changed

+55
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,6 +2812,7 @@ F: Documentation/devicetree/bindings/arm/sunplus,sp7021.yaml
28122812
F: Documentation/devicetree/bindings/clock/sunplus,sp7021-clkc.yaml
28132813
F: Documentation/devicetree/bindings/interrupt-controller/sunplus,sp7021-intc.yaml
28142814
F: Documentation/devicetree/bindings/reset/sunplus,reset.yaml
2815+
F: arch/arm/mach-sunplus/
28152816
F: drivers/clk/clk-sp7021.c
28162817
F: drivers/irqchip/irq-sp7021-intc.c
28172818
F: drivers/reset/reset-sunplus.c

arch/arm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ source "arch/arm/mach-sti/Kconfig"
695695

696696
source "arch/arm/mach-stm32/Kconfig"
697697

698+
source "arch/arm/mach-sunplus/Kconfig"
699+
698700
source "arch/arm/mach-sunxi/Kconfig"
699701

700702
source "arch/arm/mach-tegra/Kconfig"

arch/arm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ machine-$(CONFIG_ARCH_RENESAS) += shmobile
217217
machine-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga
218218
machine-$(CONFIG_ARCH_STI) += sti
219219
machine-$(CONFIG_ARCH_STM32) += stm32
220+
machine-$(CONFIG_ARCH_SUNPLUS) += sunplus
220221
machine-$(CONFIG_ARCH_SUNXI) += sunxi
221222
machine-$(CONFIG_ARCH_TEGRA) += tegra
222223
machine-$(CONFIG_ARCH_U8500) += ux500

arch/arm/mach-sunplus/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
3+
menuconfig ARCH_SUNPLUS
4+
bool "Sunplus SoCs"
5+
depends on ARCH_MULTI_V7
6+
help
7+
Support for Sunplus SoC family: SP7021 and succeeding SoC-based systems,
8+
such as the Banana Pi BPI-F2S development board (and derivatives).
9+
(<http://www.sinovoip.com.cn/ecp_view.asp?id=586>)
10+
(<https://tibbo.com/store/plus1.html>)
11+
12+
config SOC_SP7021
13+
bool "Sunplus SP7021 SoC support"
14+
depends on ARCH_SUNPLUS
15+
default ARCH_SUNPLUS
16+
select HAVE_ARM_ARCH_TIMER
17+
select ARM_GIC
18+
select ARM_PSCI
19+
select PINCTRL
20+
select PINCTRL_SPPCTL
21+
select SERIAL_SUNPLUS
22+
select SERIAL_SUNPLUS_CONSOLE
23+
help
24+
Support for Sunplus SP7021 SoC. It is based on ARM 4-core
25+
Cortex-A7 with various peripherals (ex: I2C, SPI, SDIO,
26+
Ethernet and etc.), FPGA interface, chip-to-chip bus.
27+
It is designed for industrial control.

arch/arm/mach-sunplus/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# Makefile for the linux kernel.
4+
#
5+
6+
# Object file lists.
7+
8+
obj-$(CONFIG_SOC_SP7021) += sp7021.o

arch/arm/mach-sunplus/sp7021.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/*
3+
* Copyright (C) Sunplus Technology Co., Ltd.
4+
* All rights reserved.
5+
*/
6+
#include <linux/kernel.h>
7+
#include <asm/mach/arch.h>
8+
9+
static const char *sp7021_compat[] __initconst = {
10+
"sunplus,sp7021",
11+
NULL
12+
};
13+
14+
DT_MACHINE_START(SP7021_DT, "SP7021")
15+
.dt_compat = sp7021_compat,
16+
MACHINE_END

0 commit comments

Comments
 (0)