2 * SoC-specific code for tms320dm355 and similar chips
4 * Copyright (C) 2009 David Brownell
6 * See file CREDITS for list of people who contributed to this
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.
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.
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.
25 #include <asm/arch/hardware.h>
28 void davinci_enable_uart0(void)
30 lpsc_on(DAVINCI_LPSC_UART0);
32 /* Bringup UART0 out of reset */
33 REG(UART0_PWREMU_MGMT) = 0x00006001;
37 #ifdef CONFIG_DRIVER_DAVINCI_I2C
38 void davinci_enable_i2c(void)
40 lpsc_on(DAVINCI_LPSC_I2C);
42 /* Enable I2C pin Mux */
43 REG(PINMUX3) |= (1 << 20) | (1 << 19);