From beeb2589761d218076b2b5ed5699a08216ca8cf9 Mon Sep 17 00:00:00 2001 From: Prafulla Wadaskar Date: Thu, 30 Sep 2010 19:33:19 +0530 Subject: Kirkwood: dram_init is moved to dram.c For all Kirkwood boards so far dram_init function is duplicated dram_init function is moved to dram.c and relevant code from all board specific files removed If any board needs specific dram init handling than standard one, then, a macro CONFIG_SYS_BOARD_DRAM_INIT should be defined in board config header file and the dram_init function can be put in board specific source file For ex. keymile boards Signed-off-by: Prafulla Wadaskar --- board/Marvell/sheevaplug/sheevaplug.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'board/Marvell/sheevaplug') diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c index 547126af8f..173a7b809d 100644 --- a/board/Marvell/sheevaplug/sheevaplug.c +++ b/board/Marvell/sheevaplug/sheevaplug.c @@ -108,17 +108,6 @@ int board_init(void) return 0; } -int dram_init(void) -{ - int i; - - for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) { - gd->bd->bi_dram[i].start = kw_sdram_bar(i); - gd->bd->bi_dram[i].size = kw_sdram_bs(i); - } - return 0; -} - #ifdef CONFIG_RESET_PHY_R /* Configure and enable MV88E1116 PHY */ void reset_phy(void) -- cgit v1.2.1