From: Hai Pham Date: Tue, 28 Feb 2023 21:34:41 +0000 (+0100) Subject: ARM: rmobile: Turn R-Car V3U into R-Car Gen4 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=32e6893caffa35d25337c1fd21c88ad622fb6cd3;p=u-boot.git ARM: rmobile: Turn R-Car V3U into R-Car Gen4 Despite the name, R-Car V3U is the first member of the R-Car Gen4 family [1]. Hence reflect this in related files, select appropriate configuration options and split DT build into its own GEN4 entry. [1] https://www.renesas.com/us/en/products/automotive-products/automotive-system-chips-socs/r-car-v3u-best-class-r-car-v3u-asil-d-system-chip-automated-driving Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Deduplicate DTC_FLAGS addition using RCAR_64 symbol Update commit message] --- diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 0a9b1f7749..0fdc818eae 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1044,10 +1044,12 @@ dtb-$(CONFIG_RCAR_GEN3) += \ r8a77970-eagle-u-boot.dtb \ r8a77980-condor-u-boot.dtb \ r8a77990-ebisu-u-boot.dtb \ - r8a77995-draak-u-boot.dtb \ + r8a77995-draak-u-boot.dtb + +dtb-$(CONFIG_RCAR_GEN4) += \ r8a779a0-falcon-u-boot.dtb -ifdef CONFIG_RCAR_GEN3 +ifdef CONFIG_RCAR_64 DTC_FLAGS += -R 4 -p 0x1000 endif diff --git a/arch/arm/mach-rmobile/Kconfig.rcar3 b/arch/arm/mach-rmobile/Kconfig.rcar3 index 680aa45516..5f338219b4 100644 --- a/arch/arm/mach-rmobile/Kconfig.rcar3 +++ b/arch/arm/mach-rmobile/Kconfig.rcar3 @@ -70,12 +70,6 @@ config R8A77995 imply CLK_R8A77995 imply PINCTRL_PFC_R8A77995 -config R8A779A0 - bool "Renesas SoC R8A779A0" - select GICV3 - imply CLK_R8A779A0 - imply PINCTRL_PFC_R8A779A0 - config RZ_G2 bool "Renesas ARM SoCs RZ/G2 (64bit)" @@ -123,12 +117,6 @@ config TARGET_EBISU help Support for Renesas R-Car Gen3 Ebisu platform -config TARGET_FALCON - bool "Falcon board" - imply R8A779A0 - help - Support for Renesas R-Car Gen3 Falcon platform - config TARGET_HIHOPE_RZG2 bool "HiHope RZ/G2 board" imply MULTI_DTB_FIT @@ -176,7 +164,6 @@ source "board/renesas/condor/Kconfig" source "board/renesas/draak/Kconfig" source "board/renesas/eagle/Kconfig" source "board/renesas/ebisu/Kconfig" -source "board/renesas/falcon/Kconfig" source "board/renesas/salvator-x/Kconfig" source "board/renesas/ulcb/Kconfig" source "board/beacon/beacon-rzg2m/Kconfig" diff --git a/arch/arm/mach-rmobile/Kconfig.rcar4 b/arch/arm/mach-rmobile/Kconfig.rcar4 index 6d9e16586d..104672f938 100644 --- a/arch/arm/mach-rmobile/Kconfig.rcar4 +++ b/arch/arm/mach-rmobile/Kconfig.rcar4 @@ -1,8 +1,27 @@ if RCAR_GEN4 +menu "Select Target SoC" + +config R8A779A0 + bool "Renesas SoC R8A779A0" + select GICV3 + imply CLK_R8A779A0 + imply PINCTRL_PFC_R8A779A0 + +endmenu + choice prompt "Renesas ARM64 SoCs board select" optional + +config TARGET_FALCON + bool "Falcon board" + imply R8A779A0 + help + Support for Renesas R-Car Gen3 Falcon platform + endchoice +source "board/renesas/falcon/Kconfig" + endif diff --git a/configs/r8a779a0_falcon_defconfig b/configs/r8a779a0_falcon_defconfig index 083055a1df..14feaf13d6 100644 --- a/configs/r8a779a0_falcon_defconfig +++ b/configs/r8a779a0_falcon_defconfig @@ -10,7 +10,7 @@ CONFIG_ENV_SECT_SIZE=0x40000 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="r8a779a0-falcon-u-boot" CONFIG_SPL_TEXT_BASE=0xe6338000 -CONFIG_RCAR_GEN3=y +CONFIG_RCAR_GEN4=y CONFIG_TARGET_FALCON=y CONFIG_SPL_STACK=0xe6304000 CONFIG_SYS_CLK_FREQ=16666666 diff --git a/include/configs/falcon.h b/include/configs/falcon.h index 446261cedc..0b62ff9fbe 100644 --- a/include/configs/falcon.h +++ b/include/configs/falcon.h @@ -9,17 +9,7 @@ #ifndef __FALCON_H #define __FALCON_H -#include "rcar-gen3-common.h" - -/* - * Generic Interrupt Controller Definitions. Undefine v2 locations and define - * v3 locations. - */ -#undef GICD_BASE -#undef GICC_BASE -#undef GICR_BASE -#define GICD_BASE 0xF1000000 -#define GICR_BASE 0xF1060000 +#include "rcar-gen4-common.h" /* Board Clock */ /* XTAL_CLK : 16.66MHz */