]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: rmobile: Turn R-Car V3U into R-Car Gen4
authorHai Pham <hai.pham.ud@renesas.com>
Tue, 28 Feb 2023 21:34:41 +0000 (22:34 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 15:13:28 +0000 (17:13 +0200)
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 <marek.vasut+renesas@mailbox.org>
Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
[Marek: Deduplicate DTC_FLAGS addition using RCAR_64 symbol
        Update commit message]

arch/arm/dts/Makefile
arch/arm/mach-rmobile/Kconfig.rcar3
arch/arm/mach-rmobile/Kconfig.rcar4
configs/r8a779a0_falcon_defconfig
include/configs/falcon.h

index 0a9b1f7749d5346b73fbbc8a1c7711f1d486fbb1..0fdc818eaefdf9c1674d05d30fe3a4d5f2f5a316 100644 (file)
@@ -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
 
index 680aa4551608e239792517dfa18a6c87c7df6f13..5f338219b4561caffb874b3b2ee31ee4cbf4437c 100644 (file)
@@ -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"
index 6d9e16586d99f33dea34c89020cea392ac859f3e..104672f938e1afdf59887dc23b6cc55de29aeff7 100644 (file)
@@ -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
index 083055a1dfaf8e047ace900444fae58b6014ecd3..14feaf13d6e1c1b7721360cb59bbce1e2e0f9c8e 100644 (file)
@@ -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
index 446261cedc74f7d910f0ebe8f199d956a4168d3d..0b62ff9fbe1817317a745739abebcacec15b0d31 100644 (file)
@@ -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 */