Patchwork [U-Boot,4/13] imx31_litekit: Remove dram_init_banksize()

login
register
mail settings
Submitter Fabio Estevam
Date Sept. 22, 2011, 6:07 p.m.
Message ID <1316714842-18271-4-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/115986/
State Accepted
Commit 7a5faf089b455a99f9dd79f734d21d02a1b159a4
Delegated to: Stefano Babic
Headers show

Comments

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

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/logicpd/imx31_litekit/imx31_litekit.c |    6 ------
 include/configs/imx31_litekit.h             |    2 +-
 2 files changed, 1 insertions(+), 7 deletions(-)
Stefano Babic - Sept. 23, 2011, 8:52 a.m.
On 09/22/2011 08:07 PM, Fabio Estevam wrote:
> As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  board/logicpd/imx31_litekit/imx31_litekit.c |    6 ------
>  include/configs/imx31_litekit.h             |    2 +-
>  2 files changed, 1 insertions(+), 7 deletions(-)
> 
> diff --git a/board/logicpd/imx31_litekit/imx31_litekit.c b/board/logicpd/imx31_litekit/imx31_litekit.c
> index 09cc9c5..0402a0b 100644
> --- a/board/logicpd/imx31_litekit/imx31_litekit.c
> +++ b/board/logicpd/imx31_litekit/imx31_litekit.c
> @@ -37,12 +37,6 @@ int dram_init(void)
>  	return 0;
>  }
>  
> -void dram_init_banksize(void)
> -{
> -	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
> -	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
> -}
> -
>  int board_early_init_f(void)
>  {
>  	__REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */
> diff --git a/include/configs/imx31_litekit.h b/include/configs/imx31_litekit.h
> index b7f1cb3..2a02b3d 100644
> --- a/include/configs/imx31_litekit.h
> +++ b/include/configs/imx31_litekit.h
> @@ -150,7 +150,7 @@
>  #define PHYS_SDRAM_1_SIZE	(128 * 1024 * 1024)
>  #define CONFIG_BOARD_EARLY_INIT_F
>  
> -#define CONFIG_SYS_SDRAM_BASE		CSD0_BASE
> +#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
>  #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
>  #define CONFIG_SYS_INIT_RAM_SIZE		IRAM_SIZE
>  #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/board/logicpd/imx31_litekit/imx31_litekit.c b/board/logicpd/imx31_litekit/imx31_litekit.c
index 09cc9c5..0402a0b 100644
--- a/board/logicpd/imx31_litekit/imx31_litekit.c
+++ b/board/logicpd/imx31_litekit/imx31_litekit.c
@@ -37,12 +37,6 @@  int dram_init(void)
 	return 0;
 }
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
-}
-
 int board_early_init_f(void)
 {
 	__REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */
diff --git a/include/configs/imx31_litekit.h b/include/configs/imx31_litekit.h
index b7f1cb3..2a02b3d 100644
--- a/include/configs/imx31_litekit.h
+++ b/include/configs/imx31_litekit.h
@@ -150,7 +150,7 @@ 
 #define PHYS_SDRAM_1_SIZE	(128 * 1024 * 1024)
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CONFIG_SYS_SDRAM_BASE		CSD0_BASE
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE		IRAM_SIZE
 #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)