summaryrefslogtreecommitdiff
path: root/arch/arm/mach-davinci/dm355.c
blob: bc158d9675200ebc99ba662926ba6e26b99e83bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: GPL-2.0+
/*
 * SoC-specific code for tms320dm355 and similar chips
 *
 * Copyright (C) 2009 David Brownell
 */

#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;
}


#ifdef CONFIG_SYS_I2C_DAVINCI
void davinci_enable_i2c(void)
{
	lpsc_on(DAVINCI_LPSC_I2C);

	/* Enable I2C pin Mux */
	REG(PINMUX3) |= (1 << 20) | (1 << 19);
}
#endif