blob: 3463f52693aaf0ec24ba0b5e60cd86ebe7c3e60f [file] [log] [blame]
wdenk281e00a2004-08-01 22:48:16 +00001/*
2 * Copyright (C) 2004 Sascha Hauer, Synertronixx GmbH
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
wdenk281e00a2004-08-01 22:48:16 +00005 */
6
7#include <common.h>
Remy Bohmer60f61e62009-05-02 21:49:18 +02008#include <netdev.h>
wdenk281e00a2004-08-01 22:48:16 +00009
Wolfgang Denkd87080b2006-03-31 18:32:53 +020010DECLARE_GLOBAL_DATA_PTR;
11
Wolfgang Denkd87080b2006-03-31 18:32:53 +020012int board_init (void)
13{
14 gd->bd->bi_arch_number = MACH_TYPE_SCB9328;
15 gd->bd->bi_boot_params = 0x08000100;
wdenk281e00a2004-08-01 22:48:16 +000016
Wolfgang Denkd87080b2006-03-31 18:32:53 +020017 return 0;
wdenk281e00a2004-08-01 22:48:16 +000018}
19
Wolfgang Denkd87080b2006-03-31 18:32:53 +020020int dram_init (void)
21{
Torsten Koschorrek386393c2011-07-14 23:16:51 +000022 /* dram_init must store complete ramsize in gd->ram_size */
Stefano Babica410d0a2011-08-26 12:06:56 +020023 gd->ram_size = get_ram_size((void *)SCB9328_SDRAM_1,
Torsten Koschorrek386393c2011-07-14 23:16:51 +000024 SCB9328_SDRAM_1_SIZE);
25
26 return 0;
27}
28
29void dram_init_banksize(void)
30{
Wolfgang Denkd87080b2006-03-31 18:32:53 +020031 gd->bd->bi_dram[0].start = SCB9328_SDRAM_1;
32 gd->bd->bi_dram[0].size = SCB9328_SDRAM_1_SIZE;
wdenk281e00a2004-08-01 22:48:16 +000033}
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
44void show_boot_progress (int status)
45{
46 return;
47}
Remy Bohmer60f61e62009-05-02 21:49:18 +020048
49#ifdef CONFIG_DRIVER_DM9000
50int board_eth_init(bd_t *bis)
51{
52 return dm9000_initialize(bis);
53}
54#endif