blob: fa2bf78cf157f0efc420912002363b7b0e45ab03 [file] [log] [blame]
goda.yusukefd768072008-01-25 20:46:36 +09001/*
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 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
goda.yusukefd768072008-01-25 20:46:36 +090011 */
12
13#include <common.h>
Ben Warren0fd6aae2009-10-04 22:37:03 -070014#include <netdev.h>
goda.yusukefd768072008-01-25 20:46:36 +090015#include <asm/io.h>
16#include <asm/processor.h>
17
John Rigby0d21ed02010-12-20 18:27:51 -070018DECLARE_GLOBAL_DATA_PTR;
19
goda.yusukefd768072008-01-25 20:46:36 +090020int checkboard(void)
21{
22 puts("BOARD: Renesas MigoR\n");
23 return 0;
24}
25
26int board_init(void)
27{
28 return 0;
29}
30
31int dram_init (void)
32{
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020033 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));
goda.yusukefd768072008-01-25 20:46:36 +090036 return 0;
37}
38
39void led_set_state (unsigned short value)
40{
41}
Ben Warren0fd6aae2009-10-04 22:37:03 -070042
43#ifdef CONFIG_CMD_NET
44int 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