diff mbox

[U-Boot,2/6] Revert "sunxi: Reserve ATF memory space on A64"

Message ID 1462396534-32390-3-git-send-email-andre.przywara@arm.com
State Accepted
Commit 087504958a6c509b95e2967d7f78883728cf7b05
Delegated to: Hans de Goede
Headers show

Commit Message

Andre Przywara May 4, 2016, 9:15 p.m. UTC
The ARM Trusted Firmware (ATF) code now lives in SRAM on the Pine64/A64,
so we can claim the whole of DRAM for OS use.

This reverts commit 3ffe39ed2b66af71c7271d0cef2a248b5bf7dfdb.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 board/sunxi/board.c | 9 ---------
 1 file changed, 9 deletions(-)

Comments

Hans de Goede May 15, 2016, 10:12 a.m. UTC | #1
Hi,

On 04-05-16 23:15, Andre Przywara wrote:
> The ARM Trusted Firmware (ATF) code now lives in SRAM on the Pine64/A64,
> so we can claim the whole of DRAM for OS use.
>
> This reverts commit 3ffe39ed2b66af71c7271d0cef2a248b5bf7dfdb.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Thanks, looks good to me applied to:

http://git.denx.de/?p=u-boot/u-boot-sunxi.git;a=shortlog;h=refs/heads/next

This will be part of my first pull-req for u-boot v2016.07.

Regards,

Hans


> ---
>  board/sunxi/board.c | 9 ---------
>  1 file changed, 9 deletions(-)
>
> diff --git a/board/sunxi/board.c b/board/sunxi/board.c
> index 3cf3614..ccf4129 100644
> --- a/board/sunxi/board.c
> +++ b/board/sunxi/board.c
> @@ -133,15 +133,6 @@ int dram_init(void)
>  	return 0;
>  }
>
> -#ifdef CONFIG_MACH_SUN50I
> -void dram_init_banksize(void)
> -{
> -	/* We need to reserve the first 16MB of RAM for ATF */
> -	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE + (16 * 1024 * 1024);
> -	gd->bd->bi_dram[0].size = get_effective_memsize() - (16 * 1024 * 1024);
> -}
> -#endif
> -
>  #if defined(CONFIG_NAND_SUNXI) && defined(CONFIG_SPL_BUILD)
>  static void nand_pinmux_setup(void)
>  {
>
diff mbox

Patch

diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 3cf3614..ccf4129 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -133,15 +133,6 @@  int dram_init(void)
 	return 0;
 }
 
-#ifdef CONFIG_MACH_SUN50I
-void dram_init_banksize(void)
-{
-	/* We need to reserve the first 16MB of RAM for ATF */
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE + (16 * 1024 * 1024);
-	gd->bd->bi_dram[0].size = get_effective_memsize() - (16 * 1024 * 1024);
-}
-#endif
-
 #if defined(CONFIG_NAND_SUNXI) && defined(CONFIG_SPL_BUILD)
 static void nand_pinmux_setup(void)
 {