wdenk | 5401de4 | 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> |
| 15 | #include <asm/inca-ip.h> |
Jean-Christophe PLAGNIOL-VILLARD | 089dbb7 | 2007-11-13 09:11:05 +0100 | [diff] [blame^] | 16 | #include <asm/io.h> |
wdenk | 5401de4 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 17 | #include <pci.h> |
| 18 | |
wdenk | 5401de4 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 19 | #if defined(CONFIG_PCI) |
| 20 | static struct pci_controller hose; |
| 21 | |
| 22 | void pci_init_board (void) |
| 23 | { |
| 24 | init_vr4131_pci(&hose); |
| 25 | } |
| 26 | #endif |
| 27 | |
wdenk | 5401de4 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 28 | long int initdram(int board_type) |
| 29 | { |
| 30 | return get_ram_size (CFG_SDRAM_BASE, 0x8000000); |
| 31 | } |
| 32 | |
wdenk | 5401de4 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 33 | int checkboard (void) |
| 34 | { |
| 35 | printf("Board: TANBAC TB0229 "); |
| 36 | printf("(CPU Speed %d MHz)\n", (int)CPU_CLOCK_RATE/1000000); |
| 37 | |
Jean-Christophe PLAGNIOL-VILLARD | 089dbb7 | 2007-11-13 09:11:05 +0100 | [diff] [blame^] | 38 | set_io_port_base(0); |
| 39 | |
wdenk | 5401de4 | 2004-02-07 01:27:10 +0000 | [diff] [blame] | 40 | return 0; |
| 41 | } |