diff mbox series

[PATCHv3,1/8] arm64: fsl-layerscape: Assign addr to resv_ram if enabled RESV_RAM config

Message ID 20200428021935.27659-2-Zhiqiang.Hou@nxp.com
State Superseded
Headers show
Series fsl: layerscape: Initialize the GIC redistributor | expand

Commit Message

Zhiqiang Hou April 28, 2020, 2:19 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>

The initialization of gd->arch.resv_ram pointer should depend on if the
RESV_RAM config is enabled.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
---
V3:
 - No change.

 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Wasim Khan April 28, 2020, 6:51 a.m. UTC | #1
> -----Original Message-----
> From: Z.q. Hou <zhiqiang.hou at nxp.com>
> Sent: Tuesday, April 28, 2020 7:49 AM
> To: u-boot at lists.denx.de; Priyanka Jain <priyanka.jain at nxp.com>; Wasim Khan
> <wasim.khan at nxp.com>; bmeng.cn at gmail.com
> Cc: Z.q. Hou <zhiqiang.hou at nxp.com>
> Subject: [PATCHv3 1/8] arm64: fsl-layerscape: Assign addr to resv_ram if
> enabled RESV_RAM config
> 
> From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
> 
> The initialization of gd->arch.resv_ram pointer should depend on if the
> RESV_RAM config is enabled.
> 
> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>

Reviewed-by: Wasim Khan <wasim.khan at nxp.com>

> ---
> V3:
>  - No change.
> 
>  arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> index b443894453..1b7729c046 100644
> --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> @@ -1379,7 +1379,7 @@ static int tfa_dram_init_banksize(void)
>  	if (i > 0)
>  		ret = 0;
> 
> -#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
> +#if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD)
>  	/* Assign memory for MC */
>  #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
>  	if (gd->bd->bi_dram[2].size >=
> @@ -1402,7 +1402,7 @@ static int tfa_dram_init_banksize(void)
>  				board_reserve_ram_top(gd->bd-
> >bi_dram[0].size);
>  		}
>  	}
> -#endif	/* CONFIG_FSL_MC_ENET */
> +#endif	/* CONFIG_RESV_RAM */
> 
>  	return ret;
>  }
> @@ -1465,7 +1465,7 @@ int dram_init_banksize(void)
>  	}
>  #endif	/* CONFIG_SYS_MEM_RESERVE_SECURE */
> 
> -#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
> +#if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD)
>  	/* Assign memory for MC */
>  #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
>  	if (gd->bd->bi_dram[2].size >=
> @@ -1488,7 +1488,7 @@ int dram_init_banksize(void)
>  				board_reserve_ram_top(gd->bd-
> >bi_dram[0].size);
>  		}
>  	}
> -#endif	/* CONFIG_FSL_MC_ENET */
> +#endif	/* CONFIG_RESV_RAM */
> 
>  #ifdef CONFIG_SYS_DP_DDR_BASE_PHY
>  #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
> --
> 2.17.1
Priyanka Jain (OSS) April 30, 2020, 12:29 p.m. UTC | #2
>-----Original Message-----
>From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Zhiqiang Hou
>Sent: Tuesday, April 28, 2020 7:49 AM
>To: u-boot at lists.denx.de; Priyanka Jain <priyanka.jain at nxp.com>; Wasim
>Khan <wasim.khan at nxp.com>; bmeng.cn at gmail.com
>Cc: Z.q. Hou <zhiqiang.hou at nxp.com>
>Subject: [PATCHv3 1/8] arm64: fsl-layerscape: Assign addr to resv_ram if
>enabled RESV_RAM config
>
>From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
>
>The initialization of gd->arch.resv_ram pointer should depend on if the
>RESV_RAM config is enabled.
>
>Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
>---
>V3:
> - No change.
>
> arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
>diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
>b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
>index b443894453..1b7729c046 100644
>--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
>+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
>@@ -1379,7 +1379,7 @@ static int tfa_dram_init_banksize(void)
> 	if (i > 0)
> 		ret = 0;
>
>-#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
>+#if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD)
> 	/* Assign memory for MC */
> #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
> 	if (gd->bd->bi_dram[2].size >=
>@@ -1402,7 +1402,7 @@ static int tfa_dram_init_banksize(void)
> 				board_reserve_ram_top(gd->bd-
>>bi_dram[0].size);
> 		}
> 	}
>-#endif	/* CONFIG_FSL_MC_ENET */
>+#endif	/* CONFIG_RESV_RAM */
>
> 	return ret;
> }
>@@ -1465,7 +1465,7 @@ int dram_init_banksize(void)
> 	}
> #endif	/* CONFIG_SYS_MEM_RESERVE_SECURE */
>
>-#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
>+#if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD)
> 	/* Assign memory for MC */
> #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
> 	if (gd->bd->bi_dram[2].size >=
>@@ -1488,7 +1488,7 @@ int dram_init_banksize(void)
> 				board_reserve_ram_top(gd->bd-
>>bi_dram[0].size);
> 		}
> 	}
>-#endif	/* CONFIG_FSL_MC_ENET */
>+#endif	/* CONFIG_RESV_RAM */
>
> #ifdef CONFIG_SYS_DP_DDR_BASE_PHY
> #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
>--
>2.17.1
Series applied to fsl-qoriq after trimming subjects in some of the patches.
Awaiting upstream

Thanks
Priyanka
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index b443894453..1b7729c046 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -1379,7 +1379,7 @@  static int tfa_dram_init_banksize(void)
 	if (i > 0)
 		ret = 0;
 
-#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
+#if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD)
 	/* Assign memory for MC */
 #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
 	if (gd->bd->bi_dram[2].size >=
@@ -1402,7 +1402,7 @@  static int tfa_dram_init_banksize(void)
 				board_reserve_ram_top(gd->bd->bi_dram[0].size);
 		}
 	}
-#endif	/* CONFIG_FSL_MC_ENET */
+#endif	/* CONFIG_RESV_RAM */
 
 	return ret;
 }
@@ -1465,7 +1465,7 @@  int dram_init_banksize(void)
 	}
 #endif	/* CONFIG_SYS_MEM_RESERVE_SECURE */
 
-#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
+#if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD)
 	/* Assign memory for MC */
 #ifdef CONFIG_SYS_DDR_BLOCK3_BASE
 	if (gd->bd->bi_dram[2].size >=
@@ -1488,7 +1488,7 @@  int dram_init_banksize(void)
 				board_reserve_ram_top(gd->bd->bi_dram[0].size);
 		}
 	}
-#endif	/* CONFIG_FSL_MC_ENET */
+#endif	/* CONFIG_RESV_RAM */
 
 #ifdef CONFIG_SYS_DP_DDR_BASE_PHY
 #ifdef CONFIG_SYS_DDR_BLOCK3_BASE