summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattis Fjallstrom <mattis@oliodevices.com>2016-11-04 11:41:14 -0700
committerMattis Fjallstrom <mattis@oliodevices.com>2016-11-04 11:41:14 -0700
commit418348f95c7d0c4c77a6e392e2044541e3f8851c (patch)
treeca161d64247a857d74991e7322a402546e3d55fb
parentb508eb5014ec933bbcdc1ad555091ee73848e526 (diff)
downloadolio-linux-3.10-418348f95c7d0c4c77a6e392e2044541e3f8851c.tar.xz
olio-linux-3.10-418348f95c7d0c4c77a6e392e2044541e3f8851c.zip
Mods for turning off UART3 pins, setting them in safe mode.
Change-Id: I30b35780710afd2d1579cc6b4b91d4d1b735a149
-rw-r--r--arch/arm/boot/dts/omap3_h1.dts8
-rw-r--r--arch/arm/mach-omap2/Kconfig8
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3_h1.dts b/arch/arm/boot/dts/omap3_h1.dts
index 8a909944034..f6959ab91f3 100644
--- a/arch/arm/boot/dts/omap3_h1.dts
+++ b/arch/arm/boot/dts/omap3_h1.dts
@@ -205,8 +205,16 @@
0x1aa 0x004 /* CONTROL_PADCONF_MCSPI2_SOMI, (IDIS | PI | M4 ) */
/* UART3 pins */
+#ifdef CONFIG_OLIO_H1_PRODUCTION
+ /* Production build, no console, safe mode */
+ 0x16a 0x007
+ 0x16c 0x007
+ 0x16e 0x007 /* RX */
+ 0x170 0x007 /* TX */
+#else /* regular build, working UART console */
0x16e 0x100 /* RX, input, off wake up */
0x170 0x000 /* TX, output */
+#endif
/* GPIO146, aka UART2TX, aka Microphone enable */
0x148 0x161C /* (204) OUTPUT | GPIO | OFF_ENABLE | OFF_PULL_LOW */
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 2793feafaae..ea592541f0c 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -237,6 +237,7 @@ config MACH_OMAP3_H1_DVT2
config MACH_OMAP3_H1_PV
bool "PV Build of the H1 board"
depends on MACH_OMAP3_H1
+
endchoice
choice
@@ -259,6 +260,13 @@ config MACH_OMAP3_H1_PV2
the kernel as well.
endchoice
+config OLIO_H1_PRODUCTION
+ bool "Olio H1 Production build"
+ depends on MACH_OMAP3_H1
+ select MACH_OMAP3_H1_PV2
+ help
+ Turns off UART3 pins. Don't forget to also turn off the console! (In device drivers -> character devices -> serial, and in kernel hacking as well).
+
config MACH_DEVKIT8000
bool "DEVKIT8000 board"
depends on ARCH_OMAP3