summaryrefslogtreecommitdiff
path: root/arch/arm/mach-davinci/dm646x.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/dm646x.c
parent09f455dca74973ef5e42311162c8dff7e83d44a2 (diff)
downloadu-boot-imx-601fbec7cf815bc2b26ba2546ac5e8501fc7edae.zip
u-boot-imx-601fbec7cf815bc2b26ba2546ac5e8501fc7edae.tar.gz
u-boot-imx-601fbec7cf815bc2b26ba2546ac5e8501fc7edae.tar.bz2
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/dm646x.c')
-rw-r--r--arch/arm/mach-davinci/dm646x.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c
new file mode 100644
index 0000000..cfea830
--- /dev/null
+++ b/arch/arm/mach-davinci/dm646x.c
@@ -0,0 +1,26 @@
+/*
+ * SoC-specific code for TMS320DM646x chips
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <asm/arch/hardware.h>
+
+void davinci_enable_uart0(void)
+{
+ lpsc_on(DAVINCI_DM646X_LPSC_UART0);
+}
+
+#ifdef CONFIG_DRIVER_TI_EMAC
+void davinci_enable_emac(void)
+{
+ lpsc_on(DAVINCI_DM646X_LPSC_EMAC);
+}
+#endif
+
+#ifdef CONFIG_SYS_I2C_DAVINCI
+void davinci_enable_i2c(void)
+{
+ lpsc_on(DAVINCI_DM646X_LPSC_I2C);
+}
+#endif