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