summaryrefslogtreecommitdiffstats
path: root/board/ms7722se
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2016-11-28 00:15:31 +0200
committerTom Rini <trini@konsulko.com>2016-12-02 21:32:51 -0500
commitcdbb0cf8ecf30d5dbbfa500e8939a32ef45896c5 (patch)
tree6d01620f6567eaa8b5b5177a3882501752d17552 /board/ms7722se
parent18a40e8470246da3ee4cdef721524140f54cc6c9 (diff)
downloadu-boot-cdbb0cf8ecf30d5dbbfa500e8939a32ef45896c5.tar.gz
u-boot-cdbb0cf8ecf30d5dbbfa500e8939a32ef45896c5.tar.xz
u-boot-cdbb0cf8ecf30d5dbbfa500e8939a32ef45896c5.zip
sh: add common dram_init() function for all boards
Generic board support assumes a different method of specifying DRAM size on board, also it can be shared among all boards, notably only sh7763rdp board has a custom legacy dram_init(), however the difference is only in printing some additional information, this feature can be removed. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/ms7722se')
-rw-r--r--board/ms7722se/ms7722se.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/board/ms7722se/ms7722se.c b/board/ms7722se/ms7722se.c
index ee1e99c117..869b415ba9 100644
--- a/board/ms7722se/ms7722se.c
+++ b/board/ms7722se/ms7722se.c
@@ -15,8 +15,6 @@
#include <asm/io.h>
#include <asm/processor.h>
-DECLARE_GLOBAL_DATA_PTR;
-
#define LED_BASE 0xB0800000
int checkboard(void)
@@ -33,14 +31,6 @@ int board_init(void)
return 0;
}
-int dram_init(void)
-{
- gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
- gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
- printf("DRAM: %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
- return 0;
-}
-
void led_set_state(unsigned short value)
{
writew(value & 0xFF, LED_BASE);