Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
David Brownell | f1d944e | 2009-05-15 23:44:09 +0200 | [diff] [blame] | 2 | /* |
| 3 | * SoC-specific code for tms320dm355 and similar chips |
| 4 | * |
| 5 | * Copyright (C) 2009 David Brownell |
David Brownell | f1d944e | 2009-05-15 23:44:09 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <asm/arch/hardware.h> |
| 10 | |
| 11 | |
| 12 | void davinci_enable_uart0(void) |
| 13 | { |
| 14 | lpsc_on(DAVINCI_LPSC_UART0); |
| 15 | |
| 16 | /* Bringup UART0 out of reset */ |
| 17 | REG(UART0_PWREMU_MGMT) = 0x00006001; |
| 18 | } |
| 19 | |
| 20 | |
Vitaly Andrianov | e8459dc | 2014-04-04 13:16:52 -0400 | [diff] [blame] | 21 | #ifdef CONFIG_SYS_I2C_DAVINCI |
David Brownell | f1d944e | 2009-05-15 23:44:09 +0200 | [diff] [blame] | 22 | void davinci_enable_i2c(void) |
| 23 | { |
| 24 | lpsc_on(DAVINCI_LPSC_I2C); |
| 25 | |
| 26 | /* Enable I2C pin Mux */ |
| 27 | REG(PINMUX3) |= (1 << 20) | (1 << 19); |
| 28 | } |
| 29 | #endif |