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. Signed-off-by: Qin Jian <qinjian@cqplus1.com>
- Loading branch information
1 parent
3b35536
commit a0450f4
Showing
7 changed files
with
71 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,20 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
|
||
config SOC_SP7021 | ||
bool "Sunplus SP7021 SoC support" | ||
default y | ||
select CPU_V7 | ||
select ARM_GIC | ||
select SUNPLUS_SP7021_INTC | ||
select HAVE_SMP | ||
select ARM_PSCI | ||
select COMMON_CLK_SP7021 | ||
select PINCTRL | ||
select PINCTRL_SPPCTL | ||
select OF_OVERLAY | ||
select GPIOLIB | ||
help | ||
Support for Sunplus SP7021 SoC. It is based on ARM 4-core | ||
Cotex-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,9 @@ | ||
# 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,3 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
zreladdr-$(CONFIG_ARCH_SUNPLUS) := 0x00308000 |
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 |