board: stm32: Remove the bi_boot_params initialization
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 2 Sep 2021 10:02:07 +0000 (12:02 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 8 Oct 2021 06:15:39 +0000 (08:15 +0200)
The stm32 platforms never had to support an ATAGs-based Linux Kernel,
so remove the bi_boot_params initialization.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Tested-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
board/dhelectronics/dh_stm32mp1/board.c
board/engicam/stm32mp1/stm32mp1.c
board/st/stm32f429-discovery/stm32f429-discovery.c
board/st/stm32f429-evaluation/stm32f429-evaluation.c
board/st/stm32f469-discovery/stm32f469-discovery.c
board/st/stm32f746-disco/stm32f746-disco.c
board/st/stm32h743-disco/stm32h743-disco.c
board/st/stm32h743-eval/stm32h743-eval.c
board/st/stm32h750-art-pi/stm32h750-art-pi.c
board/st/stm32mp1/stm32mp1.c

index d7c1857..765b54a 100644 (file)
@@ -590,9 +590,6 @@ static void board_init_fmc2(void)
 /* board dependent setup after realloc */
 int board_init(void)
 {
-       /* address of boot parameters */
-       gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
-
        if (CONFIG_IS_ENABLED(DM_GPIO_HOG))
                gpio_hog_probe_all();
 
index 8bf9c9c..20d8603 100644 (file)
@@ -40,9 +40,6 @@ int checkboard(void)
 /* board dependent setup after realloc */
 int board_init(void)
 {
-       /* address of boot parameters */
-       gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
-
        if (IS_ENABLED(CONFIG_DM_REGULATOR))
                regulators_enable_boot_on(_DEBUG);
 
index 46fcf90..5a50e98 100644 (file)
@@ -53,8 +53,6 @@ u32 get_board_rev(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
-
        return 0;
 }
 
index 3b6df1f..cf30561 100644 (file)
@@ -47,8 +47,6 @@ u32 get_board_rev(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
-
        return 0;
 }
 
index c5df9b0..056c9df 100644 (file)
@@ -47,8 +47,6 @@ u32 get_board_rev(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
-
        return 0;
 }
 
index efa38a0..2543e2a 100644 (file)
@@ -122,8 +122,6 @@ int board_late_init(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
-
 #ifdef CONFIG_ETH_DESIGNWARE
        const char *phy_mode;
        int node;
index 4091d5f..e493786 100644 (file)
@@ -43,6 +43,5 @@ u32 get_board_rev(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
        return 0;
 }
index 4091d5f..e493786 100644 (file)
@@ -43,6 +43,5 @@ u32 get_board_rev(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
        return 0;
 }
index 5785b2e..bec2646 100644 (file)
@@ -53,6 +53,5 @@ int board_late_init(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
        return 0;
 }
index 032f08d..1bceb41 100644 (file)
@@ -646,9 +646,6 @@ static void board_ev1_init(void)
 /* board dependent setup after realloc */
 int board_init(void)
 {
-       /* address of boot parameters */
-       gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
-
        if (CONFIG_IS_ENABLED(DM_GPIO_HOG))
                gpio_hog_probe_all();