2009-05-15 21:44:09 +00:00
|
|
|
/*
|
|
|
|
* SoC-specific code for tms320dm355 and similar chips
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 David Brownell
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-05-15 21:44:09 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <asm/arch/hardware.h>
|
|
|
|
|
|
|
|
|
|
|
|
void davinci_enable_uart0(void)
|
|
|
|
{
|
|
|
|
lpsc_on(DAVINCI_LPSC_UART0);
|
|
|
|
|
|
|
|
/* Bringup UART0 out of reset */
|
|
|
|
REG(UART0_PWREMU_MGMT) = 0x00006001;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-04-04 17:16:52 +00:00
|
|
|
#ifdef CONFIG_SYS_I2C_DAVINCI
|
2009-05-15 21:44:09 +00:00
|
|
|
void davinci_enable_i2c(void)
|
|
|
|
{
|
|
|
|
lpsc_on(DAVINCI_LPSC_I2C);
|
|
|
|
|
|
|
|
/* Enable I2C pin Mux */
|
|
|
|
REG(PINMUX3) |= (1 << 20) | (1 << 19);
|
|
|
|
}
|
|
|
|
#endif
|