Initial r7s72100 Genmai board support [PATCH 1/2] Put common r7s72100 code in board/renesas/common [PATCH 2/2] Add support for the r7s72100 Genmai board
These two patches for U-Boot aim at adding initial support for the Genmai board which is based on the r7s72100 (RZ/A1H) SoC from Renesas. The first patch takes SoC specific code from the GR-Peach board and breaks it out into the board/renesas/common directory so it can be easily shared between GR-Peach and Genmai. The second patch adds board specific details for the Genmai board. There is nothing out of the ordinary on this board, serial console, NOR flash and Ethernet all come from the upstream DT and seem to be working. Please note that the external SDRAM (hooked up to CS2/CS3) to the r7s72100 on the Genmai board remains unconfigured at this point. Because of this the U-Boot Genmai board code is instead making use of the 10 MiB on-chip RAM available in the r7s72100 SoC. The upstream DT for the Genmai board is however describing the external SDRAM memory banks as expected from a Linux point of view, and to "make it work" the memory bank configuration in U-Boot today is not using DT to describe the memories. Once SDRAM configuration code gets added as an incremental patch the memory configuration code can be easily switched over to use DT by adjusting the number of memory banks in the defconfig and updating the dram_*() functions. Thanks to Chris Brandt for the older out of tree board code, Marek Vasut for the upstream GR-Peach board code and the pinctrl-rza1.c driver. Signed-off-by: Magnus Damm <[email protected]> --- arch/arm/dts/Makefile | 3 arch/arm/dts/r7s72100-genmai-u-boot.dtsi | 33 +++++++++ arch/arm/mach-renesas/Kconfig.rza1 | 4 + board/renesas/common/Makefile | 6 + board/renesas/common/rza1-common.c | 27 +++++++ board/renesas/common/rza1-lowlevel_init.S | 106 +++++++++++++++++++++++++++++ board/renesas/genmai/Kconfig | 12 +++ board/renesas/genmai/MAINTAINERS | 7 + board/renesas/genmai/Makefile | 10 ++ board/renesas/genmai/genmai.c | 49 +++++++++++++ board/renesas/grpeach/Makefile | 1 board/renesas/grpeach/grpeach.c | 22 ------ board/renesas/grpeach/lowlevel_init.S | 106 ----------------------------- configs/genmai_defconfig | 81 ++++++++++++++++++++++ configs/grpeach_defconfig | 1 include/configs/genmai.h | 27 +++++++ 16 files changed, 365 insertions(+), 130 deletions(-)

