uboot/board/scb9328/scb9328.c
<<
>>
Prefs
   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>
  22#include <netdev.h>
  23
  24DECLARE_GLOBAL_DATA_PTR;
  25
  26#ifdef CONFIG_SHOW_BOOT_PROGRESS
  27# define SHOW_BOOT_PROGRESS(arg)        show_boot_progress(arg)
  28#else
  29# define SHOW_BOOT_PROGRESS(arg)
  30#endif
  31
  32int board_init (void)
  33{
  34        gd->bd->bi_arch_number = MACH_TYPE_SCB9328;
  35        gd->bd->bi_boot_params = 0x08000100;
  36
  37        return 0;
  38}
  39
  40int dram_init (void)
  41{
  42        /* dram_init must store complete ramsize in gd->ram_size */
  43        gd->ram_size = get_ram_size((void *)SCB9328_SDRAM_1,
  44                                    SCB9328_SDRAM_1_SIZE);
  45
  46        return 0;
  47}
  48
  49void dram_init_banksize(void)
  50{
  51        gd->bd->bi_dram[0].start = SCB9328_SDRAM_1;
  52        gd->bd->bi_dram[0].size = SCB9328_SDRAM_1_SIZE;
  53}
  54
  55/**
  56 * show_boot_progress: - indicate state of the boot process
  57 *
  58 * @param status: Status number - see README for details.
  59 *
  60 * The CSB226 does only have 3 LEDs, so we switch them on at the most
  61 * important states (1, 5, 15).
  62 */
  63
  64void show_boot_progress (int status)
  65{
  66        return;
  67}
  68
  69#ifdef CONFIG_DRIVER_DM9000
  70int board_eth_init(bd_t *bis)
  71{
  72        return dm9000_initialize(bis);
  73}
  74#endif
  75