]>
Commit | Line | Data |
---|---|---|
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 | ||
29565326 JR |
18 | DECLARE_GLOBAL_DATA_PTR; |
19 | ||
6c0bbdcc NI |
20 | #define LED_BASE 0xB0800000 |
21 | ||
22 | int checkboard(void) | |
23 | { | |
24 | puts("BOARD: Hitachi UL MS7722SE\n"); | |
25 | return 0; | |
26 | } | |
27 | ||
28 | int board_init(void) | |
29 | { | |
30 | /* Setup PTXMD[1:0] for /CS6A */ | |
31 | outw(inw(PXCR) & ~0xf000, PXCR); | |
32 | ||
33 | return 0; | |
34 | } | |
35 | ||
0955ef34 | 36 | int dram_init(void) |
6c0bbdcc | 37 | { |
6d0f6bcf JCPV |
38 | gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE; |
39 | gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; | |
40 | printf("DRAM: %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024)); | |
6c0bbdcc NI |
41 | return 0; |
42 | } | |
43 | ||
0955ef34 | 44 | void led_set_state(unsigned short value) |
6c0bbdcc | 45 | { |
0955ef34 | 46 | writew(value & 0xFF, LED_BASE); |
6c0bbdcc | 47 | } |
7194ab80 BW |
48 | |
49 | #ifdef CONFIG_CMD_NET | |
50 | int board_eth_init(bd_t *bis) | |
51 | { | |
52 | int rc = 0; | |
53 | #ifdef CONFIG_SMC91111 | |
54 | rc = smc91111_initialize(0, CONFIG_SMC91111_BASE); | |
55 | #endif | |
56 | return rc; | |
57 | } | |
58 | #endif |