Yoshihiro Shimoda | dad925c | 2007-12-03 22:58:50 +0900 | [diff] [blame] | 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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 13 | * SPDX-License-Identifier: GPL-2.0+ |
Yoshihiro Shimoda | dad925c | 2007-12-03 22:58:50 +0900 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <common.h> |
| 17 | #include <asm/io.h> |
| 18 | #include <asm/processor.h> |
| 19 | |
John Rigby | 0d21ed0 | 2010-12-20 18:27:51 -0700 | [diff] [blame] | 20 | DECLARE_GLOBAL_DATA_PTR; |
| 21 | |
Yoshihiro Shimoda | dad925c | 2007-12-03 22:58:50 +0900 | [diff] [blame] | 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 | { |
Yoshihiro Shimoda | dad925c | 2007-12-03 22:58:50 +0900 | [diff] [blame] | 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | int dram_init(void) |
| 36 | { |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 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)); |
Yoshihiro Shimoda | dad925c | 2007-12-03 22:58:50 +0900 | [diff] [blame] | 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | void led_set_state(unsigned short value) |
| 44 | { |
| 45 | outw(value & 0xFF, LED_BASE); |
| 46 | } |