]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - board/tb0229/tb0229.c
MIPS: tb0229: fix compile errors
[karo-tx-uboot.git] / board / tb0229 / tb0229.c
1 /*
2  * Board initialize code for TANBAC Evaluation board TB0229.
3  *
4  * (C) Masami Komiya <mkomiya@sonare.it> 2004
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2, or (at
9  * your option) any later version.
10  */
11
12 #include <common.h>
13 #include <command.h>
14 #include <netdev.h>
15 #include <asm/addrspace.h>
16 #include <asm/io.h>
17 #include <asm/reboot.h>
18 #include <pci.h>
19
20 void _machine_restart(void)
21 {
22         void (*f)(void) = (void *) 0xbfc00000;
23
24         f();
25 }
26
27 #if defined(CONFIG_PCI)
28 static struct pci_controller hose;
29
30 void pci_init_board (void)
31 {
32         init_vr4131_pci(&hose);
33 }
34 #endif
35
36 phys_size_t initdram(int board_type)
37 {
38         return get_ram_size (CONFIG_SYS_SDRAM_BASE, 0x8000000);
39 }
40
41 int checkboard (void)
42 {
43         printf("Board: TANBAC TB0229 ");
44         printf("(CPU Speed %d MHz)\n", (int)CPU_CLOCK_RATE/1000000);
45
46         set_io_port_base(0);
47
48         return 0;
49 }
50
51 int board_eth_init(bd_t *bis)
52 {
53         return pci_eth_init(bis);
54 }