David Brownell | f1d944e | 2009-05-15 23:44:09 +0200 | [diff] [blame] | 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 | |
| 24 | #include <common.h> |
| 25 | #include <asm/arch/hardware.h> |
| 26 | |
| 27 | |
| 28 | void davinci_enable_uart0(void) |
| 29 | { |
| 30 | lpsc_on(DAVINCI_LPSC_UART0); |
| 31 | |
| 32 | /* Bringup UART0 out of reset */ |
| 33 | REG(UART0_PWREMU_MGMT) = 0x00006001; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | #ifdef CONFIG_DRIVER_DAVINCI_I2C |
| 38 | void davinci_enable_i2c(void) |
| 39 | { |
| 40 | lpsc_on(DAVINCI_LPSC_I2C); |
| 41 | |
| 42 | /* Enable I2C pin Mux */ |
| 43 | REG(PINMUX3) |= (1 << 20) | (1 << 19); |
| 44 | } |
| 45 | #endif |