xref: /openbmc/u-boot/board/ms7722se/ms7722se.c (revision fabbeb33)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2007,2008
4  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
5  *
6  * Copyright (C) 2007
7  * Kenati Technologies, Inc.
8  *
9  * board/ms7722se/ms7722se.c
10  */
11 
12 #include <common.h>
13 #include <netdev.h>
14 #include <asm/io.h>
15 #include <asm/processor.h>
16 
17 #define LED_BASE	0xB0800000
18 
19 int checkboard(void)
20 {
21 	puts("BOARD: Hitachi UL MS7722SE\n");
22 	return 0;
23 }
24 
25 int board_init(void)
26 {
27 	/* Setup PTXMD[1:0] for /CS6A */
28 	outw(inw(PXCR) & ~0xf000, PXCR);
29 
30 	return 0;
31 }
32 
33 void led_set_state(unsigned short value)
34 {
35 	writew(value & 0xFF, LED_BASE);
36 }
37 
38 #ifdef CONFIG_CMD_NET
39 int 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
48