summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorShiraz Hashim <shiraz.hashim@st.com>2011-06-11 21:32:57 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-08-04 13:50:01 +0200
commita39fcfb24be1520859af038971f1eb1b5e06e927 (patch)
tree6c47737d2935c4ff35ddf637c1f234d53b01822a /board
parentceb1d6d75e1a3102ceb7f4407840d9f92b87a926 (diff)
downloadu-boot-imx-a39fcfb24be1520859af038971f1eb1b5e06e927.zip
u-boot-imx-a39fcfb24be1520859af038971f1eb1b5e06e927.tar.gz
u-boot-imx-a39fcfb24be1520859af038971f1eb1b5e06e927.tar.bz2
spear: fix build errors for spear3xx/spear600 platforms
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com> Acked-by: Vipin Kumar <vipin.kumar@st.com>
Diffstat (limited to 'board')
-rw-r--r--board/spear/common/spr_misc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/board/spear/common/spr_misc.c b/board/spear/common/spr_misc.c
index 0562222..0812c20 100644
--- a/board/spear/common/spr_misc.c
+++ b/board/spear/common/spr_misc.c
@@ -46,9 +46,7 @@ int dram_init(void)
struct xloader_table_1_2 *table_1_2;
struct chip_data *chip = &chip_data;
- gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
- gd->bd->bi_dram[0].size = get_ram_size(PHYS_SDRAM_1,
- PHYS_SDRAM_1_MAXSIZE);
+ gd->ram_size = get_ram_size(PHYS_SDRAM_1, PHYS_SDRAM_1_MAXSIZE);
if (XLOADER_TABLE_VERSION_1_1 == xloader_tb->table_version) {
table_1_1 = &xloader_tb->table.table_1_1;
@@ -66,6 +64,12 @@ 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 = gd->ram_size;
+}
+
int misc_init_r(void)
{
#if defined(CONFIG_CMD_NET)