goda.yusuke | c2042f5 | 2008-01-25 20:46:36 +0900 | [diff] [blame] | 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 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
goda.yusuke | c2042f5 | 2008-01-25 20:46:36 +0900 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #include <common.h> |
Ben Warren | 7194ab8 | 2009-10-04 22:37:03 -0700 | [diff] [blame] | 14 | #include <netdev.h> |
goda.yusuke | c2042f5 | 2008-01-25 20:46:36 +0900 | [diff] [blame] | 15 | #include <asm/io.h> |
| 16 | #include <asm/processor.h> |
| 17 | |
John Rigby | 2956532 | 2010-12-20 18:27:51 -0700 | [diff] [blame] | 18 | DECLARE_GLOBAL_DATA_PTR; |
| 19 | |
goda.yusuke | c2042f5 | 2008-01-25 20:46:36 +0900 | [diff] [blame] | 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 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 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)); |
goda.yusuke | c2042f5 | 2008-01-25 20:46:36 +0900 | [diff] [blame] | 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | void led_set_state (unsigned short value) |
| 40 | { |
| 41 | } |
Ben Warren | 7194ab8 | 2009-10-04 22:37:03 -0700 | [diff] [blame] | 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 |