David Brownell | 6f7e639 | 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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
David Brownell | 6f7e639 | 2009-05-15 23:44:09 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <asm/arch/hardware.h> |
| 11 | |
| 12 | |
| 13 | void davinci_enable_uart0(void) |
| 14 | { |
| 15 | lpsc_on(DAVINCI_LPSC_UART0); |
| 16 | |
| 17 | /* Bringup UART0 out of reset */ |
| 18 | REG(UART0_PWREMU_MGMT) = 0x00006001; |
| 19 | } |
| 20 | |
| 21 | |
| 22 | #ifdef CONFIG_DRIVER_DAVINCI_I2C |
| 23 | void davinci_enable_i2c(void) |
| 24 | { |
| 25 | lpsc_on(DAVINCI_LPSC_I2C); |
| 26 | |
| 27 | /* Enable I2C pin Mux */ |
| 28 | REG(PINMUX3) |= (1 << 20) | (1 << 19); |
| 29 | } |
| 30 | #endif |