Skip to contentSkip to conversation

ARM: rmobile: Update V2H Blanche

PATCH New Marek Vasut 1 participant 1 message May 12, 2018

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

PATCH 1/1 ARM: rmobile: Update V2H Blanche

The V2H Blanche port was broken since some time. This patch updates the V2H Blanche 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/r8a7792-blanche-u-boot.dts |   4 +
 arch/arm/mach-rmobile/Kconfig.32        |   1 +
 board/renesas/blanche/Makefile          |   2 +-
 board/renesas/blanche/blanche.c         | 633 +++++++++++++-------------------
 configs/blanche_defconfig               |  42 ++-
 include/configs/blanche.h               |  30 +-
 6 files changed, 302 insertions(+), 410 deletions(-)
arch/arm/dts/r8a7792-blanche-u-boot.dts +4 -0
index 8eb263eb5d..3555663d64 100644
@@ -7,3 +7,7 @@
 
 #include "r8a7792-blanche.dts"
 #include "r8a7792-u-boot.dtsi"
+
+&scif0 {
+	u-boot,dm-pre-reloc;
+};
arch/arm/mach-rmobile/Kconfig.32 +1 -0
index 1ceb329f1f..c0b5b2457c 100644
@@ -41,6 +41,7 @@ config TARGET_BLANCHE
 	bool "Blanche board"
 	select DM
 	select DM_SERIAL
+	select USE_TINY_PRINTF
 
 config TARGET_GOSE
 	bool "Gose board"
board/renesas/blanche/Makefile +1 -1
index bdbfb291ec..21986af472 100644
@@ -6,4 +6,4 @@
 # SPDX-License-Identifier: GPL-2.0
 #
 
-obj-y	:= blanche.o qos.o ../rcar-common/common.o
+obj-y	:= blanche.o qos.o
board/renesas/blanche/blanche.c +253 -380

717 lines not on this page · raw message

configs/blanche_defconfig +40 -2

71 lines not on this page · raw message

include/configs/blanche.h +3 -27
index 8ff82d3489..6df0e9bcc0 100644
@@ -12,9 +12,9 @@
 #include "rcar-gen2-common.h"
 
 /* STACK */
-#define CONFIG_SYS_INIT_SP_ADDR		0xE817FFFC
-#define STACK_AREA_SIZE			0xC000
-#define LOW_LEVEL_MERAM_STACK	\
+#define CONFIG_SYS_INIT_SP_ADDR		0x4f000000
+#define STACK_AREA_SIZE			0x00100000
+#define LOW_LEVEL_MERAM_STACK \
 		(CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
 
 /* MEMORY */
@@ -22,12 +22,6 @@
 #define RCAR_GEN2_SDRAM_SIZE		(1024u * 1024 * 1024)
 #define RCAR_GEN2_UBOOT_SDRAM_SIZE	(512 * 1024 * 1024)
 
-/* SCIF */
-#define CONFIG_CONS_SCIF0
-
-#define CONFIG_SYS_MEMTEST_START	(RCAR_GEN2_SDRAM_BASE)
-#define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 504 * 1024 * 1024)
-
 #undef	CONFIG_SYS_MEMTEST_SCRATCH
 #undef	CONFIG_SYS_LOADS_BAUD_CHANGE
 
@@ -55,7 +49,6 @@
 #undef  CONFIG_CMD_SPI
 #endif
 
-
 /* Board Clock */
 #define RMOBILE_XTAL_CLK	20000000u
 #define CONFIG_SYS_CLK_FREQ	RMOBILE_XTAL_CLK
@@ -73,21 +66,4 @@
 #define CONFIG_ENV_SIZE_REDUND	(CONFIG_SYS_MONITOR_LEN)
 #endif
 
-/* Module stop status bits */
-/* INTC-RT */
-#define CONFIG_SMSTP0_ENA	0x00400000
-/* SDHI0 */
-#define CONFIG_SMSTP3_ENA	0x00004000
-/* INTC-SYS, IRQC */
-#define CONFIG_SMSTP4_ENA	0x00000180
-/* SCIF0 */
-#define CONFIG_SMSTP7_ENA	0x00200000
-/* QSPI */
-#define CONFIG_SMSTP9_ENA	0x00020000
-/* SYS-DMAC0 */
-#define CONFIG_RMSTP2_ENA	0x00080000
-
-/* SDHI */
-#define CONFIG_SH_SDHI_FREQ	97500000
-
 #endif	/* __BLANCHE_H */
Signature · 1 line
2.16.2