zoom2.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright (c) 2009 Wind River Systems, Inc.
  3. * Tom Rix <Tom.Rix@windriver.com>
  4. *
  5. * Derived from Zoom1 code by
  6. * Nishanth Menon <nm@ti.com>
  7. * Sunil Kumar <sunilsaini05@gmail.com>
  8. * Shashi Ranjan <shashiranjanmca05@gmail.com>
  9. * Richard Woodruff <r-woodruff2@ti.com>
  10. * Syed Mohammed Khasim <khasim@ti.com>
  11. *
  12. *
  13. * See file CREDITS for list of people who contributed to this
  14. * project.
  15. *
  16. * This program is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU General Public License as
  18. * published by the Free Software Foundation; either version 2 of
  19. * the License, or (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, write to the Free Software
  28. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  29. * MA 02111-1307 USA
  30. */
  31. #include <common.h>
  32. #include <asm/io.h>
  33. #include <asm/arch/mux.h>
  34. #include <asm/arch/sys_proto.h>
  35. #include <asm/mach-types.h>
  36. #include "zoom2.h"
  37. /*
  38. * Routine: board_init
  39. * Description: Early hardware init.
  40. */
  41. int board_init (void)
  42. {
  43. DECLARE_GLOBAL_DATA_PTR;
  44. gpmc_init (); /* in SRAM or SDRAM, finish GPMC */
  45. /* board id for Linux */
  46. gd->bd->bi_arch_number = MACH_TYPE_OMAP_ZOOM2;
  47. /* boot param addr */
  48. gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
  49. return 0;
  50. }
  51. /*
  52. * Routine: misc_init_r
  53. * Description: Configure zoom board specific configurations
  54. */
  55. int misc_init_r (void)
  56. {
  57. power_init_r ();
  58. dieid_num_r ();
  59. return 0;
  60. }
  61. /*
  62. * Routine: set_muxconf_regs
  63. * Description: Setting up the configuration Mux registers specific to the
  64. * hardware. Many pins need to be moved from protect to primary
  65. * mode.
  66. */
  67. void set_muxconf_regs (void)
  68. {
  69. /* platform specific muxes */
  70. MUX_ZOOM2 ();
  71. }