blob: 869b415ba981520a9d04b5c69d50e0b452af844a [file] [log] [blame]
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +09001/*
Nobuhiro Iwamatsu0955ef32008-06-17 16:27:38 +09002 * Copyright (C) 2007,2008
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +09003 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4 *
5 * Copyright (C) 2007
6 * Kenati Technologies, Inc.
Wolfgang Denk61fb15c52007-12-27 01:52:50 +01007 *
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +09008 * board/ms7722se/ms7722se.c
9 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090011 */
12
13#include <common.h>
Ben Warren7194ab82009-10-04 22:37:03 -070014#include <netdev.h>
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090015#include <asm/io.h>
16#include <asm/processor.h>
17
18#define LED_BASE 0xB0800000
19
20int checkboard(void)
21{
22 puts("BOARD: Hitachi UL MS7722SE\n");
23 return 0;
24}
25
26int board_init(void)
27{
28 /* Setup PTXMD[1:0] for /CS6A */
29 outw(inw(PXCR) & ~0xf000, PXCR);
30
31 return 0;
32}
33
Nobuhiro Iwamatsu0955ef32008-06-17 16:27:38 +090034void led_set_state(unsigned short value)
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090035{
Nobuhiro Iwamatsu0955ef32008-06-17 16:27:38 +090036 writew(value & 0xFF, LED_BASE);
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090037}
Ben Warren7194ab82009-10-04 22:37:03 -070038
39#ifdef CONFIG_CMD_NET
40int 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