blob: 5f85162b8e00bbf8dc67a282f06f003ff412ab29 [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
22#ifdef CONFIG_DRIVER_DAVINCI_I2C
23void 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