ARM: renesas: Mallocate bootparams on Gen3
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 13 Jun 2021 20:42:26 +0000 (22:42 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 8 Aug 2021 10:27:04 +0000 (12:27 +0200)
The bootparams do not have to be at fixed location, they can be
dynamically mallocated instead. Make it so to get rid of another
fixed assignment.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
board/renesas/condor/condor.c
board/renesas/draak/draak.c
board/renesas/eagle/eagle.c
board/renesas/ebisu/ebisu.c
board/renesas/salvator-x/salvator-x.c
board/renesas/ulcb/ulcb.c
include/configs/rcar-gen3-common.h

index e930de3..2dd2c15 100644 (file)
@@ -21,9 +21,6 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
-
        return 0;
 }
 
index 0aaae81..3d00652 100644 (file)
@@ -54,9 +54,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
-
        /* USB1 pull-up */
        setbits_le32(PFC_PUEN6, PUEN_USB1_OVC | PUEN_USB1_PWEN);
 
index bb32e3d..3417b50 100644 (file)
@@ -65,9 +65,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
-
        return 0;
 }
 
index 9d4af8d..9a70192 100644 (file)
@@ -32,9 +32,6 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
-
        return 0;
 }
 
index 1802547..d4752e5 100644 (file)
@@ -53,9 +53,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
-
        /* USB1 pull-up */
        setbits_le32(PFC_PUEN6, PUEN_USB1_OVC | PUEN_USB1_PWEN);
 
index ffc4eb9..4626d22 100644 (file)
@@ -51,9 +51,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-       /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
-
        /* USB1 pull-up */
        setbits_le32(PFC_PUEN6, PUEN_USB1_OVC | PUEN_USB1_PWEN);
 
index b9762f5..99ef27b 100644 (file)
@@ -17,6 +17,8 @@
 #define CONFIG_SPL_TARGET      "spl/u-boot-spl.scif"
 #endif
 
+#define CONFIG_SYS_BOOTPARAMS_LEN      SZ_128K
+
 /* boot option */
 
 #define CONFIG_CMDLINE_TAG