evm.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <serial.h>
  20. DECLARE_GLOBAL_DATA_PTR;
  21. #define UART_RESET (0x1 << 1)
  22. #define UART_CLK_RUNNING_MASK 0x1
  23. #define UART_SMART_IDLE_EN (0x1 << 0x3)
  24. /*
  25. * Basic board specific setup
  26. */
  27. int init_basic_setup(void)
  28. {
  29. /* Initialize the Timer */
  30. init_timer();
  31. /* address of boot parameters */
  32. gd->bd->bi_boot_params = PHYS_DRAM_1 + 0x100;
  33. return 0;
  34. }
  35. int board_init(void)
  36. {
  37. enable_uart0_pin_mux();
  38. init_basic_setup();
  39. return 0;
  40. }