blob: bc158d9675200ebc99ba662926ba6e26b99e83bf [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
David Brownellf1d944e2009-05-15 23:44:09 +02002/*
3 * SoC-specific code for tms320dm355 and similar chips
4 *
5 * Copyright (C) 2009 David Brownell
David Brownellf1d944e2009-05-15 23:44:09 +02006 */
7
8#include <common.h>
9#include <asm/arch/hardware.h>
10
11
12void 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 Andrianove8459dc2014-04-04 13:16:52 -040021#ifdef CONFIG_SYS_I2C_DAVINCI
David Brownellf1d944e2009-05-15 23:44:09 +020022void 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