evm.c 946 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * evm.c
  3. *
  4. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  10. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  11. * kind, whether express or implied; without even the implied warranty
  12. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include <common.h>
  16. #include <asm/arch/cpu.h>
  17. #include <asm/arch/hardware.h>
  18. #include <asm/arch/common_def.h>
  19. #include <i2c.h>
  20. DECLARE_GLOBAL_DATA_PTR;
  21. /*
  22. * Basic board specific setup
  23. */
  24. int board_init(void)
  25. {
  26. enable_uart0_pin_mux();
  27. #ifdef CONFIG_I2C
  28. enable_i2c0_pin_mux();
  29. i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
  30. #endif
  31. gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100;
  32. return 0;
  33. }