Greg Watson | 6ff2ab9 | 2004-01-13 22:18:03 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2003, Greg Watson <gwatson@lanl.gov> |
| 3 | * |
| 4 | * See file CREDITS for list of people who contributed to this |
| 5 | * project. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; either version 2 of |
| 10 | * the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
Stefan Reinauer | 6ab43fc | 2005-10-05 18:17:45 +0000 | [diff] [blame^] | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 20 | * MA 02110-1301 USA |
Greg Watson | 6ff2ab9 | 2004-01-13 22:18:03 +0000 | [diff] [blame] | 21 | */ |
| 22 | |
| 23 | /* |
| 24 | * Do very early board initialization: |
Greg Watson | 6ff2ab9 | 2004-01-13 22:18:03 +0000 | [diff] [blame] | 25 | */ |
| 26 | |
| 27 | #include <ppc_asm.tmpl> |
| 28 | #include <ppc.h> |
Greg Watson | c72e276 | 2004-06-04 22:28:23 +0000 | [diff] [blame] | 29 | #include <arch/io.h> |
| 30 | #include <console/console.h> |
Greg Watson | 6ff2ab9 | 2004-01-13 22:18:03 +0000 | [diff] [blame] | 31 | |
| 32 | void |
| 33 | board_init(void) |
| 34 | { |
Greg Watson | ab8ff84 | 2004-06-05 14:54:46 +0000 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | void |
| 38 | board_init2(void) |
| 39 | { |
Greg Watson | c72e276 | 2004-06-04 22:28:23 +0000 | [diff] [blame] | 40 | /* |
| 41 | * Enable UART |
| 42 | */ |
| 43 | uart8250_init(TTYS0_BASE, TTYS0_DIV, TTYS0_LCS); |
Greg Watson | ab8ff84 | 2004-06-05 14:54:46 +0000 | [diff] [blame] | 44 | printk_info("briQ initialized...\n"); |
Greg Watson | c72e276 | 2004-06-04 22:28:23 +0000 | [diff] [blame] | 45 | |
Greg Watson | 6ff2ab9 | 2004-01-13 22:18:03 +0000 | [diff] [blame] | 46 | } |