wdenk | f4863a7 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 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 <asm/addrspace.h> |
Jean-Christophe PLAGNIOL-VILLARD | 5c15010 | 2007-11-13 09:11:05 +0100 | [diff] [blame] | 15 | #include <asm/io.h> |
Shinya Kuribayashi | b0c66af | 2008-03-25 21:30:07 +0900 | [diff] [blame] | 16 | #include <asm/reboot.h> |
wdenk | f4863a7 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 17 | #include <pci.h> |
| 18 | |
Shinya Kuribayashi | b0c66af | 2008-03-25 21:30:07 +0900 | [diff] [blame] | 19 | void _machine_restart(void) |
| 20 | { |
| 21 | void (*f)(void) = (void *) 0xbfc00000; |
| 22 | |
| 23 | f(); |
| 24 | } |
| 25 | |
wdenk | f4863a7 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 26 | #if defined(CONFIG_PCI) |
| 27 | static struct pci_controller hose; |
| 28 | |
| 29 | void pci_init_board (void) |
| 30 | { |
| 31 | init_vr4131_pci(&hose); |
| 32 | } |
| 33 | #endif |
| 34 | |
Becky Bruce | 9973e3c | 2008-06-09 16:03:40 -0500 | [diff] [blame] | 35 | phys_size_t initdram(int board_type) |
wdenk | f4863a7 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 36 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 37 | return get_ram_size (CONFIG_SYS_SDRAM_BASE, 0x8000000); |
wdenk | f4863a7 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 38 | } |
| 39 | |
wdenk | f4863a7 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 40 | int checkboard (void) |
| 41 | { |
| 42 | printf("Board: TANBAC TB0229 "); |
| 43 | printf("(CPU Speed %d MHz)\n", (int)CPU_CLOCK_RATE/1000000); |
| 44 | |
Jean-Christophe PLAGNIOL-VILLARD | 5c15010 | 2007-11-13 09:11:05 +0100 | [diff] [blame] | 45 | set_io_port_base(0); |
| 46 | |
wdenk | f4863a7 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 47 | return 0; |
| 48 | } |
Ben Warren | 0b252f5 | 2008-08-31 21:41:08 -0700 | [diff] [blame] | 49 | |
| 50 | int board_eth_init(bd_t *bis) |
| 51 | { |
| 52 | return pci_eth_init(bis); |
| 53 | } |