]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/scb9328/scb9328.c
fw_env: calculate default number of env sectors
[karo-tx-uboot.git] / board / scb9328 / scb9328.c
1 /*
2  * Copyright (C) 2004 Sascha Hauer, Synertronixx GmbH
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <common.h>
8 #include <netdev.h>
9
10 DECLARE_GLOBAL_DATA_PTR;
11
12 int board_init (void)
13 {
14         gd->bd->bi_arch_number = MACH_TYPE_SCB9328;
15         gd->bd->bi_boot_params = 0x08000100;
16
17         return 0;
18 }
19
20 int dram_init (void)
21 {
22         /* dram_init must store complete ramsize in gd->ram_size */
23         gd->ram_size = get_ram_size((void *)SCB9328_SDRAM_1,
24                                     SCB9328_SDRAM_1_SIZE);
25
26         return 0;
27 }
28
29 void dram_init_banksize(void)
30 {
31         gd->bd->bi_dram[0].start = SCB9328_SDRAM_1;
32         gd->bd->bi_dram[0].size = SCB9328_SDRAM_1_SIZE;
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 }
48
49 #ifdef CONFIG_DRIVER_DM9000
50 int board_eth_init(bd_t *bis)
51 {
52         return dm9000_initialize(bis);
53 }
54 #endif