dm355.c 503 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * SoC-specific code for tms320dm355 and similar chips
  3. *
  4. * Copyright (C) 2009 David Brownell
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #include <common.h>
  9. #include <asm/arch/hardware.h>
  10. void davinci_enable_uart0(void)
  11. {
  12. lpsc_on(DAVINCI_LPSC_UART0);
  13. /* Bringup UART0 out of reset */
  14. REG(UART0_PWREMU_MGMT) = 0x00006001;
  15. }
  16. #ifdef CONFIG_SYS_I2C_DAVINCI
  17. void davinci_enable_i2c(void)
  18. {
  19. lpsc_on(DAVINCI_LPSC_I2C);
  20. /* Enable I2C pin Mux */
  21. REG(PINMUX3) |= (1 << 20) | (1 << 19);
  22. }
  23. #endif