Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 1 | /* |
Nobuhiro Iwamatsu | 0955ef3 | 2008-06-17 16:27:38 +0900 | [diff] [blame] | 2 | * Copyright (C) 2007,2008 |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 3 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 4 | * |
| 5 | * Copyright (C) 2007 |
| 6 | * Kenati Technologies, Inc. |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 7 | * |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 8 | * board/ms7722se/ms7722se.c |
| 9 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +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> |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 15 | #include <asm/io.h> |
| 16 | #include <asm/processor.h> |
| 17 | |
| 18 | #define LED_BASE 0xB0800000 |
| 19 | |
| 20 | int checkboard(void) |
| 21 | { |
| 22 | puts("BOARD: Hitachi UL MS7722SE\n"); |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | int board_init(void) |
| 27 | { |
| 28 | /* Setup PTXMD[1:0] for /CS6A */ |
| 29 | outw(inw(PXCR) & ~0xf000, PXCR); |
| 30 | |
| 31 | return 0; |
| 32 | } |
| 33 | |
Nobuhiro Iwamatsu | 0955ef3 | 2008-06-17 16:27:38 +0900 | [diff] [blame] | 34 | void led_set_state(unsigned short value) |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 35 | { |
Nobuhiro Iwamatsu | 0955ef3 | 2008-06-17 16:27:38 +0900 | [diff] [blame] | 36 | writew(value & 0xFF, LED_BASE); |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 37 | } |
Ben Warren | 7194ab8 | 2009-10-04 22:37:03 -0700 | [diff] [blame] | 38 | |
| 39 | #ifdef CONFIG_CMD_NET |
| 40 | int board_eth_init(bd_t *bis) |
| 41 | { |
| 42 | int rc = 0; |
| 43 | #ifdef CONFIG_SMC91111 |
| 44 | rc = smc91111_initialize(0, CONFIG_SMC91111_BASE); |
| 45 | #endif |
| 46 | return rc; |
| 47 | } |
| 48 | #endif |