blob: 32a90547f96015a30f412741ad947dee46cea8bc [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsudabcc0e2007-09-23 02:31:13 +09002/*
Nobuhiro Iwamatsu2bf43e12008-06-17 16:27:38 +09003 * Copyright (C) 2007,2008
Nobuhiro Iwamatsudabcc0e2007-09-23 02:31:13 +09004 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
5 *
6 * Copyright (C) 2007
7 * Kenati Technologies, Inc.
Wolfgang Denk0a5c2142007-12-27 01:52:50 +01008 *
Nobuhiro Iwamatsudabcc0e2007-09-23 02:31:13 +09009 * board/ms7722se/ms7722se.c
Nobuhiro Iwamatsudabcc0e2007-09-23 02:31:13 +090010 */
11
12#include <common.h>
Ben Warren0fd6aae2009-10-04 22:37:03 -070013#include <netdev.h>
Nobuhiro Iwamatsudabcc0e2007-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 Iwamatsu2bf43e12008-06-17 16:27:38 +090033void led_set_state(unsigned short value)
Nobuhiro Iwamatsudabcc0e2007-09-23 02:31:13 +090034{
Nobuhiro Iwamatsu2bf43e12008-06-17 16:27:38 +090035 writew(value & 0xFF, LED_BASE);
Nobuhiro Iwamatsudabcc0e2007-09-23 02:31:13 +090036}
Ben Warren0fd6aae2009-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