blob: f9550a16d34a767fb2c43172830dc35f9c76977b [file] [log] [blame]
David Brownell6f7e6392009-05-15 23:44:09 +02001/*
2 * SoC-specific code for tms320dm355 and similar chips
3 *
4 * Copyright (C) 2009 David Brownell
5 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
David Brownell6f7e6392009-05-15 23:44:09 +02007 */
8
9#include <common.h>
10#include <asm/arch/hardware.h>
11
12
13void 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
Vitaly Andrianovbc9cd952014-04-04 13:16:52 -040022#ifdef CONFIG_SYS_I2C_DAVINCI
David Brownell6f7e6392009-05-15 23:44:09 +020023void 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