xref: /openbmc/u-boot/arch/arm/mach-davinci/dm355.c (revision 6645fd2c)
1 /*
2  * SoC-specific code for tms320dm355 and similar chips
3  *
4  * Copyright (C) 2009 David Brownell
5  *
6  * SPDX-License-Identifier:	GPL-2.0+
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_SYS_I2C_DAVINCI
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
31