dm355.c 500 B

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