[RFC PATCH 1/3] arm: mstar: Initial MStar/SigmaStar Armv7 SoC support

Daniel Palmer daniel at 0x0f.com
Mon Sep 14 14:04:39 CEST 2020


The patch adds a very basic skeleton for the MStar/SigmaStar Armv7
SoC to go into. It doesn't do anything yet.

Signed-off-by: Daniel Palmer <daniel at 0x0f.com>
---
 MAINTAINERS                 |  5 +++++
 arch/arm/Kconfig            |  8 ++++++++
 arch/arm/Makefile           |  1 +
 arch/arm/mach-mstar/Kconfig | 17 +++++++++++++++++
 4 files changed, 31 insertions(+)
 create mode 100644 arch/arm/mach-mstar/Kconfig

diff --git a/MAINTAINERS b/MAINTAINERS
index 101f4e185d..be621a614f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -293,6 +293,11 @@ F:	arch/arm/mach-at91/
 F:	board/atmel/
 F:	drivers/misc/microchip_flexcom.c
 
+ARM MSTAR/SIGMASTAR V7
+M:	Daniel Palmer <daniel at thingy.jp>
+S:	Maintained
+F:	arch/arm/mach-mstar/
+
 ARM NEXELL S5P4418
 M:	Stefan Bosch <stefan_b at posteo.net>
 S:	Maintained
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 80702c23d3..7a25410ede 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1166,6 +1166,12 @@ config ARCH_ZYNQMP
 	imply MP
 	imply DM_USB_GADGET
 
+config ARCH_MSTARV7
+	bool "MStar/SigmaStar ARM v7 SoCs"
+	select CPU_V7A
+	select SYS_NS16550
+	imply SUPPORT_SPL
+
 config ARCH_TEGRA
 	bool "NVIDIA Tegra"
 	imply DISTRO_DEFAULTS
@@ -1927,6 +1933,8 @@ source "arch/arm/mach-versal/Kconfig"
 
 source "arch/arm/mach-zynqmp-r5/Kconfig"
 
+source "arch/arm/mach-mstar/Kconfig"
+
 source "arch/arm/cpu/armv7/Kconfig"
 
 source "arch/arm/cpu/armv8/Kconfig"
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 28b523b37c..deeb08b989 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -87,6 +87,7 @@ machine-$(CONFIG_ARCH_VERSAL)		+= versal
 machine-$(CONFIG_ARCH_ZYNQ)		+= zynq
 machine-$(CONFIG_ARCH_ZYNQMP)		+= zynqmp
 machine-$(CONFIG_ARCH_ZYNQMP_R5)	+= zynqmp-r5
+machine-$(CONFIG_ARCH_MSTARV7)		+= mstar
 
 machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
 
diff --git a/arch/arm/mach-mstar/Kconfig b/arch/arm/mach-mstar/Kconfig
new file mode 100644
index 0000000000..ead9e126cc
--- /dev/null
+++ b/arch/arm/mach-mstar/Kconfig
@@ -0,0 +1,17 @@
+menu "MStar/SigmaStar v7 options"
+	depends on ARCH_MSTARV7
+
+endmenu
+
+if ARCH_MSTARV7
+
+config DEBUG_UART_BASE
+	default 0x1f221000
+
+config DEBUG_UART_CLOCK
+	default 172000000
+
+config DEBUG_UART_SHIFT
+	default 3
+
+endif
-- 
2.27.0



More information about the U-Boot mailing list