scb9328.c 1.9 KB

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