]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: renesas: Align configuration headers
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 14 Dec 2024 22:45:11 +0000 (23:45 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 29 Dec 2024 15:55:31 +0000 (16:55 +0100)
Align R-Car Gen2/Gen3/Gen4 configuration header file to look
basically the same way across these three SoC generations.
There are subtle difference between the remaining bits in
those files across SoC generations, but the common bits are
now aligned. There is not much left in those headers either,
most of the configuration is now converted to Kconfig.

Specifically for R-Car Gen3, GIC registers have been moved
to architecture specific header file rcar-gen3-base.h , the
rest of the changes here are comment changes and indentation
changes.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
arch/arm/mach-renesas/include/mach/rcar-gen3-base.h
include/configs/rcar-gen2-common.h
include/configs/rcar-gen3-common.h
include/configs/rcar-gen4-common.h

index 5e2e9eca452913ad37f41cae782889817bfea15f..7b4f5f0c651817e9c64eae83e414b34066cce8f0 100644 (file)
 #define SMSTPCR10              0xE6150998
 #define SMSTPCR11              0xE615099C
 
+/* GICv3 */
+/* Distributor Registers */
+#define GICD_BASE              0xF1010000
+#define GICC_BASE              0xF1020000
+
 /* PFC */
 #define PFC_PUEN5      0xE6060414
 #define PUEN_SSI_SDATA4        BIT(17)
index 67c9faeca57aefbcc8c1909b79b2acc05fc1405e..020e79ca2a847d56153beb64c30685a9f94561ed 100644 (file)
@@ -1,8 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /*
  * include/configs/rcar-gen2-common.h
+ *     This file is R-Car Gen2 common configuration file.
  *
- * Copyright (C) 2013,2014 Renesas Electronics Corporation
+ * Copyright (C) 2013-2024 Renesas Electronics Corporation
  */
 
 #ifndef __RCAR_GEN2_COMMON_H
 
 #include <asm/arch/renesas.h>
 
-/* console */
-#define CFG_SYS_BAUDRATE_TABLE { 38400, 115200 }
+/* Console */
+#define CFG_SYS_BAUDRATE_TABLE         { 38400, 115200 }
 
+/* Memory */
 #define CFG_SYS_SDRAM_BASE             (RCAR_GEN2_SDRAM_BASE)
 #define CFG_SYS_SDRAM_SIZE             (RCAR_GEN2_UBOOT_SDRAM_SIZE)
 
 /* Timer */
-#define CFG_SYS_TIMER_COUNTER  (TMU_BASE + 0xc)        /* TCNT0 */
+#define CFG_SYS_TIMER_COUNTER          (TMU_BASE + 0xc)        /* TCNT0 */
 #define CFG_SYS_TIMER_RATE             (get_board_sys_clk() / 8)
 
 #endif /* __RCAR_GEN2_COMMON_H */
index 3f0831a901cf96a7649a9a0e1c7b41b1befb664d..bedb1c0843e67a1ccab214776ceb52fa1a9f0eb5 100644 (file)
@@ -3,7 +3,7 @@
  * include/configs/rcar-gen3-common.h
  *     This file is R-Car Gen3 common configuration file.
  *
- * Copyright (C) 2015-2017 Renesas Electronics Corporation
+ * Copyright (C) 2015-2024 Renesas Electronics Corporation
  */
 
 #ifndef __RCAR_GEN3_COMMON_H
 
 #include <asm/arch/renesas.h>
 
-/* boot option */
+/* Console */
+#define CFG_SYS_BAUDRATE_TABLE         { 115200, 38400 }
 
-/* Generic Interrupt Controller Definitions */
-#define GICD_BASE      0xF1010000
-#define GICC_BASE      0xF1020000
-
-/* console */
-#define CFG_SYS_BAUDRATE_TABLE { 115200, 38400 }
-
-/* MEMORY */
+/* Memory */
 #define DRAM_RSV_SIZE                  0x08000000
 #define CFG_SYS_SDRAM_BASE             (0x40000000 + DRAM_RSV_SIZE)
 #define CFG_SYS_SDRAM_SIZE             (0x80000000u - DRAM_RSV_SIZE)
 #define CFG_MAX_MEM_MAPPED             (0x80000000u - DRAM_RSV_SIZE)
 
-/* ENV setting */
-
-#define CFG_EXTRA_ENV_SETTINGS \
+/* Environment setting */
+#define CFG_EXTRA_ENV_SETTINGS         \
        "bootm_size=0x10000000\0"
 
 #endif /* __RCAR_GEN3_COMMON_H */
index 37a37c013df58f8a81fa11ceef2b02a5cffaa699..1a00adb79d165f5c221d7baa20336efa9909339c 100644 (file)
@@ -3,7 +3,7 @@
  * include/configs/rcar-gen4-common.h
  *     This file is R-Car Gen4 common configuration file.
  *
- * Copyright (C) 2021 Renesas Electronics Corporation
+ * Copyright (C) 2021-2024 Renesas Electronics Corporation
  */
 
 #ifndef __RCAR_GEN4_COMMON_H
@@ -12,7 +12,7 @@
 #include <asm/arch/renesas.h>
 
 /* Console */
-#define CFG_SYS_BAUDRATE_TABLE { 38400, 115200, 921600, 1843200 }
+#define CFG_SYS_BAUDRATE_TABLE         { 38400, 115200, 921600, 1843200 }
 
 /* Memory */
 #define DRAM_RSV_SIZE                  0x08000000
 #define CFG_SYS_SDRAM_SIZE             (0x80000000u - DRAM_RSV_SIZE)
 #define CFG_MAX_MEM_MAPPED             (0x80000000u - DRAM_RSV_SIZE)
 
-/* PHY needs a longer autoneg timeout */
-
 /* Environment setting */
-#define CFG_EXTRA_ENV_SETTINGS                                 \
+#define CFG_EXTRA_ENV_SETTINGS         \
        "bootm_size=0x10000000\0"
 
 #endif /* __RCAR_GEN4_COMMON_H */