Skip to contentSkip to conversation

ARM: rmobile: Update M2-N Gose

PATCH New Marek Vasut 1 participant 1 message Apr 26, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: rmobile: Update M2-N Gose

The M2-N Gose port was broken since some time. This patch updates the M2-N Gose port to use modern frameworks, DM, DT probing, SPL for the preloading and puts it on par with the M2 Porter board.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 arch/arm/dts/r8a7793-gose-u-boot.dts |   4 +
 arch/arm/mach-rmobile/Kconfig.32     |   3 +
 board/renesas/gose/Makefile          |   8 +-
 board/renesas/gose/gose.c            | 190 ++++---------
 board/renesas/gose/gose_spl.c        | 408 +++++++++++++++++++++++++++
 configs/gose_defconfig               |  49 +++-
 include/configs/gose.h               |  64 ++---
 7 files changed, 545 insertions(+), 181 deletions(-)
 create mode 100644 board/renesas/gose/gose_spl.c
arch/arm/dts/r8a7793-gose-u-boot.dts +4 -0
index 0c16dde4c7..ed6f391c62 100644
@@ -8,3 +8,7 @@
 
 #include "r8a7793-gose.dts"
 #include "r8a7793-u-boot.dtsi"
+
+&scif0 {
+	u-boot,dm-pre-reloc;
+};
arch/arm/mach-rmobile/Kconfig.32 +3 -0
index d8c6a8bac9..176f9a6296 100644
@@ -42,6 +42,9 @@ config TARGET_GOSE
 	bool "Gose board"
 	select DM
 	select DM_SERIAL
+	select SUPPORT_SPL
+	select USE_TINY_PRINTF
+	select SPL_TINY_MEMSET
 
 config TARGET_KOELSCH
 	bool "Koelsch board"
board/renesas/gose/Makefile +6 -2
index e09ae1e414..c6a1dc21cd 100644
@@ -1,9 +1,13 @@
 #
-# board/renesas/alt/Makefile
+# board/renesas/gose/Makefile
 #
 # Copyright (C) 2014 Renesas Electronics Corporation
 #
 # SPDX-License-Identifier: GPL-2.0
 #
 
-obj-y	:= gose.o qos.o ../rcar-common/common.o
+ifdef CONFIG_SPL_BUILD
+obj-y	:= gose_spl.o
+else
+obj-y	:= gose.o qos.o
+endif
board/renesas/gose/gose.c +58 -132

236 lines not on this page · raw message

board/renesas/gose/gose_spl.c new file +408 -0

408 lines not on this page · raw message

configs/gose_defconfig +45 -4

83 lines not on this page · raw message

include/configs/gose.h +21 -43

87 lines not on this page · raw message

Signature · 1 line
2.17.0