blob: 32a90547f96015a30f412741ad947dee46cea8bc [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +09002/*
Nobuhiro Iwamatsu0955ef32008-06-17 16:27:38 +09003 * Copyright (C) 2007,2008
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +09004 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
5 *
6 * Copyright (C) 2007
7 * Kenati Technologies, Inc.
Wolfgang Denk61fb15c52007-12-27 01:52:50 +01008 *
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +09009 * board/ms7722se/ms7722se.c
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090010 */
11
12#include <common.h>
Ben Warren7194ab82009-10-04 22:37:03 -070013#include <netdev.h>
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090014#include <asm/io.h>
15#include <asm/processor.h>
16
17#define LED_BASE 0xB0800000
18
19int checkboard(void)
20{
21 puts("BOARD: Hitachi UL MS7722SE\n");
22 return 0;
23}
24
25int board_init(void)
26{
27 /* Setup PTXMD[1:0] for /CS6A */
28 outw(inw(PXCR) & ~0xf000, PXCR);
29
30 return 0;
31}
32
Nobuhiro Iwamatsu0955ef32008-06-17 16:27:38 +090033void led_set_state(unsigned short value)
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090034{
Nobuhiro Iwamatsu0955ef32008-06-17 16:27:38 +090035 writew(value & 0xFF, LED_BASE);
Nobuhiro Iwamatsu6c0bbdc2007-09-23 02:31:13 +090036}
Ben Warren7194ab82009-10-04 22:37:03 -070037
38#ifdef CONFIG_CMD_NET
39int board_eth_init(bd_t *bis)
40{
41 int rc = 0;
42#ifdef CONFIG_SMC91111
43 rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
44#endif
45 return rc;
46}
47#endif