summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/dm355.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2015-02-20 17:04:05 +0900
committerTom Rini <trini@ti.com>2015-02-21 08:23:51 -0500
commit601fbec7cf815bc2b26ba2546ac5e8501fc7edae (patch)
tree61c83cdadd3499fcbcf63feb39064ef4130afe3e /arch/arm/mach-davinci/dm355.c
parent09f455dca74973ef5e42311162c8dff7e83d44a2 (diff)
downloadblackbird-obmc-uboot-601fbec7cf815bc2b26ba2546ac5e8501fc7edae.tar.gz
blackbird-obmc-uboot-601fbec7cf815bc2b26ba2546ac5e8501fc7edae.zip
ARM: davinci: move SoC sources to mach-davinci
Move arch/arm/cpu/arm926ejs/davinci/* -> arch/arm/mach-davinci/* Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm355.c')
-rw-r--r--arch/arm/mach-davinci/dm355.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c
new file mode 100644
index 0000000000..f9550a16d3
--- /dev/null
+++ b/arch/arm/mach-davinci/dm355.c
@@ -0,0 +1,30 @@
+/*
+ * SoC-specific code for tms320dm355 and similar chips
+ *
+ * Copyright (C) 2009 David Brownell
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#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
OpenPOWER on IntegriCloud