]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/mach-davinci/dm355.c
ARM: davinci: move SoC sources to mach-davinci
[people/ms/u-boot.git] / arch / arm / mach-davinci / dm355.c
CommitLineData
f1d944e3
DB
1/*
2 * SoC-specific code for tms320dm355 and similar chips
3 *
4 * Copyright (C) 2009 David Brownell
5 *
1a459660 6 * SPDX-License-Identifier: GPL-2.0+
f1d944e3
DB
7 */
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
e8459dcc 22#ifdef CONFIG_SYS_I2C_DAVINCI
f1d944e3
DB
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