eco5pk.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * eco5pk.c - board file for 8D Technology's AM3517 based eco5pk board
  4. *
  5. * Based on am3517evm.c
  6. *
  7. * Copyright (C) 2011-2012 8D Technologies inc.
  8. * Copyright (C) 2009 Texas Instruments Incorporated
  9. */
  10. #include <common.h>
  11. #include <netdev.h>
  12. #include <asm/io.h>
  13. #include <asm/arch/mem.h>
  14. #include <asm/arch/mux.h>
  15. #include <asm/arch/sys_proto.h>
  16. #include <asm/arch/emac_defs.h>
  17. #include <asm/gpio.h>
  18. #include <i2c.h>
  19. #include <crc.h>
  20. #include <asm/mach-types.h>
  21. #include "eco5pk.h"
  22. DECLARE_GLOBAL_DATA_PTR;
  23. /*
  24. * Routine: board_init
  25. * Description: Early hardware init.
  26. */
  27. int board_init(void)
  28. {
  29. gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
  30. gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
  31. gpio_request(30, "RESOUT");
  32. gpio_direction_output(30, 1);
  33. return 0;
  34. }
  35. /*
  36. * Routine: set_muxconf_regs
  37. * Description: Setting up the configuration Mux registers specific to the
  38. * hardware. Many pins need to be moved from protect to primary
  39. * mode.
  40. */
  41. void set_muxconf_regs(void)
  42. {
  43. MUX_ECO5_PK();
  44. }