wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004 Sascha Hauer, Synertronixx GmbH |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation; either version 2 of |
| 7 | * the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 | * MA 02111-1307 USA |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #include <common.h> |
Remy Bohmer | 7eefd92 | 2009-05-02 21:49:18 +0200 | [diff] [blame] | 22 | #include <netdev.h> |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 23 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 24 | DECLARE_GLOBAL_DATA_PTR; |
| 25 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 26 | int board_init (void) |
| 27 | { |
| 28 | gd->bd->bi_arch_number = MACH_TYPE_SCB9328; |
| 29 | gd->bd->bi_boot_params = 0x08000100; |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 30 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 31 | return 0; |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 32 | } |
| 33 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 34 | int dram_init (void) |
| 35 | { |
Torsten Koschorrek | 253c3ef | 2011-07-14 23:16:51 +0000 | [diff] [blame] | 36 | /* dram_init must store complete ramsize in gd->ram_size */ |
Stefano Babic | a41c104 | 2011-08-26 12:06:56 +0200 | [diff] [blame] | 37 | gd->ram_size = get_ram_size((void *)SCB9328_SDRAM_1, |
Torsten Koschorrek | 253c3ef | 2011-07-14 23:16:51 +0000 | [diff] [blame] | 38 | SCB9328_SDRAM_1_SIZE); |
| 39 | |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | void dram_init_banksize(void) |
| 44 | { |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 45 | gd->bd->bi_dram[0].start = SCB9328_SDRAM_1; |
| 46 | gd->bd->bi_dram[0].size = SCB9328_SDRAM_1_SIZE; |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | /** |
| 50 | * show_boot_progress: - indicate state of the boot process |
| 51 | * |
| 52 | * @param status: Status number - see README for details. |
| 53 | * |
| 54 | * The CSB226 does only have 3 LEDs, so we switch them on at the most |
| 55 | * important states (1, 5, 15). |
| 56 | */ |
| 57 | |
| 58 | void show_boot_progress (int status) |
| 59 | { |
| 60 | return; |
| 61 | } |
Remy Bohmer | 7eefd92 | 2009-05-02 21:49:18 +0200 | [diff] [blame] | 62 | |
| 63 | #ifdef CONFIG_DRIVER_DM9000 |
| 64 | int board_eth_init(bd_t *bis) |
| 65 | { |
| 66 | return dm9000_initialize(bis); |
| 67 | } |
| 68 | #endif |