dm355.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * SoC-specific code for tms320dm355 and similar chips
  3. *
  4. * Copyright (C) 2009 David Brownell
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. */
  23. #include <common.h>
  24. #include <asm/arch/hardware.h>
  25. void davinci_enable_uart0(void)
  26. {
  27. lpsc_on(DAVINCI_LPSC_UART0);
  28. /* Bringup UART0 out of reset */
  29. REG(UART0_PWREMU_MGMT) = 0x00006001;
  30. }
  31. #ifdef CONFIG_DRIVER_DAVINCI_I2C
  32. void davinci_enable_i2c(void)
  33. {
  34. lpsc_on(DAVINCI_LPSC_I2C);
  35. /* Enable I2C pin Mux */
  36. REG(PINMUX3) |= (1 << 20) | (1 << 19);
  37. }
  38. #endif