Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / u-boot / board / renesas / MigoR / migo_r.c
1 /*
2  * Copyright (C) 2007
3  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4  *
5  * Copyright (C) 2007
6  * Kenati Technologies, Inc.
7  *
8  * board/MigoR/migo_r.c
9  *
10  * SPDX-License-Identifier:     GPL-2.0+
11  */
12
13 #include <common.h>
14 #include <netdev.h>
15 #include <asm/io.h>
16 #include <asm/processor.h>
17
18 DECLARE_GLOBAL_DATA_PTR;
19
20 int checkboard(void)
21 {
22         puts("BOARD: Renesas MigoR\n");
23         return 0;
24 }
25
26 int board_init(void)
27 {
28         return 0;
29 }
30
31 int dram_init (void)
32 {
33         gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
34         gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
35         printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
36         return 0;
37 }
38
39 void led_set_state (unsigned short value)
40 {
41 }
42
43 #ifdef CONFIG_CMD_NET
44 int board_eth_init(bd_t *bis)
45 {
46         int rc = 0;
47 #ifdef CONFIG_SMC91111
48         rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
49 #endif
50         return rc;
51 }
52 #endif