wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004 Sascha Hauer, Synertronixx GmbH |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Remy Bohmer | 60f61e6 | 2009-05-02 21:49:18 +0200 | [diff] [blame] | 8 | #include <netdev.h> |
wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 9 | |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 10 | DECLARE_GLOBAL_DATA_PTR; |
| 11 | |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 12 | int board_init (void) |
| 13 | { |
| 14 | gd->bd->bi_arch_number = MACH_TYPE_SCB9328; |
| 15 | gd->bd->bi_boot_params = 0x08000100; |
wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 16 | |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 17 | return 0; |
wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 18 | } |
| 19 | |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 20 | int dram_init (void) |
| 21 | { |
Torsten Koschorrek | 386393c | 2011-07-14 23:16:51 +0000 | [diff] [blame] | 22 | /* dram_init must store complete ramsize in gd->ram_size */ |
Stefano Babic | a410d0a | 2011-08-26 12:06:56 +0200 | [diff] [blame] | 23 | gd->ram_size = get_ram_size((void *)SCB9328_SDRAM_1, |
Torsten Koschorrek | 386393c | 2011-07-14 23:16:51 +0000 | [diff] [blame] | 24 | SCB9328_SDRAM_1_SIZE); |
| 25 | |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | void dram_init_banksize(void) |
| 30 | { |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 31 | gd->bd->bi_dram[0].start = SCB9328_SDRAM_1; |
| 32 | gd->bd->bi_dram[0].size = SCB9328_SDRAM_1_SIZE; |
wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | /** |
| 36 | * show_boot_progress: - indicate state of the boot process |
| 37 | * |
| 38 | * @param status: Status number - see README for details. |
| 39 | * |
| 40 | * The CSB226 does only have 3 LEDs, so we switch them on at the most |
| 41 | * important states (1, 5, 15). |
| 42 | */ |
| 43 | |
| 44 | void show_boot_progress (int status) |
| 45 | { |
| 46 | return; |
| 47 | } |
Remy Bohmer | 60f61e6 | 2009-05-02 21:49:18 +0200 | [diff] [blame] | 48 | |
| 49 | #ifdef CONFIG_DRIVER_DM9000 |
| 50 | int board_eth_init(bd_t *bis) |
| 51 | { |
| 52 | return dm9000_initialize(bis); |
| 53 | } |
| 54 | #endif |