]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/ms7722se/ms7722se.c
sh: add common dram_init() function for all boards
[people/ms/u-boot.git] / board / ms7722se / ms7722se.c
CommitLineData
6c0bbdcc 1/*
0955ef34 2 * Copyright (C) 2007,2008
6c0bbdcc
NI
3 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4 *
5 * Copyright (C) 2007
6 * Kenati Technologies, Inc.
61fb15c5 7 *
6c0bbdcc
NI
8 * board/ms7722se/ms7722se.c
9 *
1a459660 10 * SPDX-License-Identifier: GPL-2.0+
6c0bbdcc
NI
11 */
12
13#include <common.h>
7194ab80 14#include <netdev.h>
6c0bbdcc
NI
15#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
0955ef34 34void led_set_state(unsigned short value)
6c0bbdcc 35{
0955ef34 36 writew(value & 0xFF, LED_BASE);
6c0bbdcc 37}
7194ab80
BW
38
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