scb9328.c 2.0 KB

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