igep0030.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * (C) Copyright 2010
  3. * ISEE 2007 SL, <www.iseebcn.com>
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #include <common.h>
  24. #include <twl4030.h>
  25. #include <asm/io.h>
  26. #include <asm/arch/mem.h>
  27. #include <asm/arch/mux.h>
  28. #include <asm/arch/sys_proto.h>
  29. #include <asm/mach-types.h>
  30. #include "igep0030.h"
  31. /*
  32. * Routine: board_init
  33. * Description: Early hardware init.
  34. */
  35. int board_init(void)
  36. {
  37. DECLARE_GLOBAL_DATA_PTR;
  38. gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
  39. /* board id for Linux */
  40. gd->bd->bi_arch_number = MACH_TYPE_IGEP0030;
  41. /* boot param addr */
  42. gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
  43. return 0;
  44. }
  45. /*
  46. * Routine: misc_init_r
  47. * Description: Configure board specific parts
  48. */
  49. int misc_init_r(void)
  50. {
  51. twl4030_power_init();
  52. dieid_num_r();
  53. return 0;
  54. }
  55. /*
  56. * Routine: set_muxconf_regs
  57. * Description: Setting up the configuration Mux registers specific to the
  58. * hardware. Many pins need to be moved from protect to primary
  59. * mode.
  60. */
  61. void set_muxconf_regs(void)
  62. {
  63. MUX_DEFAULT();
  64. }