blob: 534a4220430d65bcbc645eaf12e7e1467d055ed9 [file] [log] [blame]
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09001/*
2 * Copyright (C) 2007
3 * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
4 *
5 * Copyright (C) 2007
6 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7 *
8 * Copyright (C) 2007
9 * Kenati Technologies, Inc.
10 *
11 * board/ms7720se/ms7720se.c
12 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020013 * SPDX-License-Identifier: GPL-2.0+
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +090014 */
15
16#include <common.h>
17#include <asm/io.h>
18#include <asm/processor.h>
19
John Rigby0d21ed02010-12-20 18:27:51 -070020DECLARE_GLOBAL_DATA_PTR;
21
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +090022#define LED_BASE 0xB0800000
23
24int checkboard(void)
25{
26 puts("BOARD: Hitachi UL MS7720SE\n");
27 return 0;
28}
29
30int board_init(void)
31{
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +090032 return 0;
33}
34
35int dram_init(void)
36{
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020037 gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
38 gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
39 printf("DRAM: %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +090040 return 0;
41}
42
43void led_set_state(unsigned short value)
44{
45 outw(value & 0xFF, LED_BASE);
46}