Patchwork [U-Boot,1/4] zmx25: Remove dram_init_banksize()

login
register
mail settings
Submitter Fabio Estevam
Date Sept. 23, 2011, 12:50 p.m.
Message ID <1316782252-29098-1-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/116057/
State Accepted
Commit 5a9361c267b47ac3d38378bb9d77afaf6ae1981e
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - Sept. 23, 2011, 12:50 p.m.
As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

Cc: Matthias Weisser <weisserm@arcor.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/syteco/zmx25/zmx25.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
Stefano Babic - Sept. 25, 2011, 3:58 p.m.
On 09/23/2011 02:50 PM, Fabio Estevam wrote:
> As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c
> 
> Cc: Matthias Weisser <weisserm@arcor.de>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  board/syteco/zmx25/zmx25.c |    6 ------
>  1 files changed, 0 insertions(+), 6 deletions(-)
> 
> diff --git a/board/syteco/zmx25/zmx25.c b/board/syteco/zmx25/zmx25.c
> index 893adc6..a49d831 100644
> --- a/board/syteco/zmx25/zmx25.c
> +++ b/board/syteco/zmx25/zmx25.c
> @@ -188,9 +188,3 @@ int dram_init(void)
>  				PHYS_SDRAM_SIZE);
>  	return 0;
>  }
> -
> -void dram_init_banksize(void)
> -{
> -	gd->bd->bi_dram[0].start = PHYS_SDRAM;
> -	gd->bd->bi_dram[0].size = gd->ram_size;
> -}

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic

Patch

diff --git a/board/syteco/zmx25/zmx25.c b/board/syteco/zmx25/zmx25.c
index 893adc6..a49d831 100644
--- a/board/syteco/zmx25/zmx25.c
+++ b/board/syteco/zmx25/zmx25.c
@@ -188,9 +188,3 @@  int dram_init(void)
 				PHYS_SDRAM_SIZE);
 	return 0;
 }
-
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM;
-	gd->bd->bi_dram[0].size = gd->ram_size;
-}