eco5pk.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * eco5pk.c - board file for 8D Technology's AM3517 based eco5pk board
  3. *
  4. * Based on am3517evm.c
  5. *
  6. * Copyright (C) 2011-2012 8D Technologies inc.
  7. * Copyright (C) 2009 Texas Instruments Incorporated
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. */
  23. #include <common.h>
  24. #include <netdev.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/arch/emac_defs.h>
  30. #include <asm/gpio.h>
  31. #include <i2c.h>
  32. #include <crc.h>
  33. #include <asm/mach-types.h>
  34. #include "eco5pk.h"
  35. DECLARE_GLOBAL_DATA_PTR;
  36. /*
  37. * Routine: board_init
  38. * Description: Early hardware init.
  39. */
  40. int board_init(void)
  41. {
  42. gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
  43. gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
  44. gpio_request(30, "RESOUT");
  45. gpio_direction_output(30, 1);
  46. return 0;
  47. }
  48. /*
  49. * Routine: set_muxconf_regs
  50. * Description: Setting up the configuration Mux registers specific to the
  51. * hardware. Many pins need to be moved from protect to primary
  52. * mode.
  53. */
  54. void set_muxconf_regs(void)
  55. {
  56. MUX_ECO5_PK();
  57. }