summaryrefslogtreecommitdiff
path: root/board/Marvell/openrd_base
diff options
context:
space:
mode:
authorPrafulla Wadaskar <prafulla@marvell.com>2010-09-30 19:33:19 +0530
committerWolfgang Denk <wd@denx.de>2010-10-13 09:36:07 +0200
commitbeeb2589761d218076b2b5ed5699a08216ca8cf9 (patch)
tree06e12d51a9f3a919f029f1d1ee88f6c320c2a173 /board/Marvell/openrd_base
parent500f2ff52a812d6ffd50b81978375116815f7f5b (diff)
downloadu-boot-imx-beeb2589761d218076b2b5ed5699a08216ca8cf9.zip
u-boot-imx-beeb2589761d218076b2b5ed5699a08216ca8cf9.tar.gz
u-boot-imx-beeb2589761d218076b2b5ed5699a08216ca8cf9.tar.bz2
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 <prafulla@marvell.com>
Diffstat (limited to 'board/Marvell/openrd_base')
-rw-r--r--board/Marvell/openrd_base/openrd_base.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/board/Marvell/openrd_base/openrd_base.c b/board/Marvell/openrd_base/openrd_base.c
index c00a08a..d006b2d 100644
--- a/board/Marvell/openrd_base/openrd_base.c
+++ b/board/Marvell/openrd_base/openrd_base.c
@@ -113,17 +113,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)