From 418348f95c7d0c4c77a6e392e2044541e3f8851c Mon Sep 17 00:00:00 2001 From: Mattis Fjallstrom Date: Fri, 4 Nov 2016 11:41:14 -0700 Subject: Mods for turning off UART3 pins, setting them in safe mode. Change-Id: I30b35780710afd2d1579cc6b4b91d4d1b735a149 --- arch/arm/boot/dts/omap3_h1.dts | 8 ++++++++ arch/arm/mach-omap2/Kconfig | 8 ++++++++ 2 files changed, 16 insertions(+) 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 -- cgit v1.2.3-70-g09d2