[U-Boot] [PATCH v2] rk3399: Reserve space for ARM Trust Firmware

Andreas Färber afaerber at suse.de
Thu Nov 3 02:32:02 CET 2016


Hello,

Am 25.07.2016 um 05:45 schrieb Kever Yang:
> RK3399 needs reserve 0x200000 at the beginning of DRAM, for ATF bl31.
> 
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
> 
> Changes in v2:
> - correct some typo on commit message and comment
> 
>  board/rockchip/evb_rk3399/evb-rk3399.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c
> index 39a26fa..84a00fc 100644
> --- a/board/rockchip/evb_rk3399/evb-rk3399.c
> +++ b/board/rockchip/evb_rk3399/evb-rk3399.c
> @@ -35,6 +35,7 @@ int dram_init(void)
>  
>  void dram_init_banksize(void)
>  {
> -	gd->bd->bi_dram[0].start = 0;
> +	/* Reserve 0x200000 for ATF bl31 */
> +	gd->bd->bi_dram[0].start = 0x200000;
>  	gd->bd->bi_dram[0].size = 0x80000000;

Doesn't the size need to be deduced by the same amount then?

Regards,
Andreas

>  }
> 


-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)


More information about the U-Boot mailing list