xref: /openbmc/u-boot/board/ms7720se/ms7720se.c (revision 7ca6f363)
1 /*
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  *
13  * SPDX-License-Identifier:	GPL-2.0+
14  */
15 
16 #include <common.h>
17 #include <asm/io.h>
18 #include <asm/processor.h>
19 
20 DECLARE_GLOBAL_DATA_PTR;
21 
22 #define LED_BASE	0xB0800000
23 
24 int checkboard(void)
25 {
26 	puts("BOARD: Hitachi UL MS7720SE\n");
27 	return 0;
28 }
29 
30 int board_init(void)
31 {
32 	return 0;
33 }
34 
35 int dram_init(void)
36 {
37 	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));
40 	return 0;
41 }
42 
43 void led_set_state(unsigned short value)
44 {
45 	outw(value & 0xFF, LED_BASE);
46 }
47