forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
0978a31
commit a18534d
Showing
6 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
|
||
menuconfig ARCH_SUNPLUS | ||
bool "Sunplus SoCs" | ||
depends on ARCH_MULTI_V7 | ||
help | ||
Support for Sunplus SoC family: SP7021 and succeeding SoC-based systems, | ||
such as the Banana Pi BPI-F2S development board (and derivatives). | ||
(<http://www.sinovoip.com.cn/ecp_view.asp?id=586>) | ||
(<https://tibbo.com/store/plus1.html>) | ||
|
||
config SOC_SP7021 | ||
bool "Sunplus SP7021 SoC support" | ||
depends on ARCH_SUNPLUS | ||
default ARCH_SUNPLUS | ||
select HAVE_ARM_ARCH_TIMER | ||
select ARM_GIC | ||
select ARM_PSCI | ||
select PINCTRL | ||
select PINCTRL_SPPCTL | ||
select SERIAL_SUNPLUS | ||
select SERIAL_SUNPLUS_CONSOLE | ||
help | ||
Support for Sunplus SP7021 SoC. It is based on ARM 4-core | ||
Cortex-A7 with various peripherals (ex: I2C, SPI, SDIO, | ||
Ethernet and etc.), FPGA interface, chip-to-chip bus. | ||
It is designed for industrial control. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# | ||
# Makefile for the linux kernel. | ||
# | ||
|
||
# Object file lists. | ||
|
||
obj-$(CONFIG_SOC_SP7021) += sp7021.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
/* | ||
* Copyright (C) Sunplus Technology Co., Ltd. | ||
* All rights reserved. | ||
*/ | ||
#include <linux/kernel.h> | ||
#include <asm/mach/arch.h> | ||
|
||
static const char *sp7021_compat[] __initconst = { | ||
"sunplus,sp7021", | ||
NULL | ||
}; | ||
|
||
DT_MACHINE_START(SP7021_DT, "SP7021") | ||
.dt_compat = sp7021_compat, | ||
MACHINE_END |