summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-am335x-3.2.0-psp04.06.00.08/0001-mach-omap2-pm33xx-Disable-VT-switch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-am335x-3.2.0-psp04.06.00.08/0001-mach-omap2-pm33xx-Disable-VT-switch.patch')
-rw-r--r--recipes-kernel/linux/linux-am335x-3.2.0-psp04.06.00.08/0001-mach-omap2-pm33xx-Disable-VT-switch.patch71
1 files changed, 71 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-am335x-3.2.0-psp04.06.00.08/0001-mach-omap2-pm33xx-Disable-VT-switch.patch b/recipes-kernel/linux/linux-am335x-3.2.0-psp04.06.00.08/0001-mach-omap2-pm33xx-Disable-VT-switch.patch
new file mode 100644
index 00000000..66c643e9
--- /dev/null
+++ b/recipes-kernel/linux/linux-am335x-3.2.0-psp04.06.00.08/0001-mach-omap2-pm33xx-Disable-VT-switch.patch
@@ -0,0 +1,71 @@
1From 31ec2850e89414efb30accb9d8b5228257e507b1 Mon Sep 17 00:00:00 2001
2From: Chase Maupin <Chase.Maupin@ti.com>
3Date: Wed, 21 Mar 2012 10:18:03 -0500
4Subject: [PATCH 1/1] mach-omap2: pm33xx: Disable VT switch
5
6* Added a new config option TI_PM_DISABLE_VT_SWITCH which
7 disables the VT console switch which normally occurs during
8 suspend. This console switch can cause a hange when performed
9 with applications like Matrix running. The VT switch is
10 considered unnecessary.
11* Modified the am335x_evm_defconfig file to default the
12 TI_PM_DISABLE_VT_SWITCH to "y".
13* Based on a patch for the linux-omap3 kernel by Greg Guyotte
14
15Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
16---
17 arch/arm/configs/am335x_evm_defconfig | 1 +
18 arch/arm/mach-omap2/Kconfig | 9 +++++++++
19 arch/arm/mach-omap2/pm33xx.c | 5 +++++
20 3 files changed, 15 insertions(+), 0 deletions(-)
21
22diff --git a/arch/arm/configs/am335x_evm_defconfig b/arch/arm/configs/am335x_evm_defconfig
23index 53d1b6a..7a5e7ad 100644
24--- a/arch/arm/configs/am335x_evm_defconfig
25+++ b/arch/arm/configs/am335x_evm_defconfig
26@@ -325,6 +325,7 @@ CONFIG_MACH_TI8148EVM=y
27 CONFIG_MACH_AM335XEVM=y
28 CONFIG_MACH_AM335XIAEVM=y
29 # CONFIG_OMAP3_EMU is not set
30+CONFIG_TI_PM_DISABLE_VT_SWITCH=y
31 # CONFIG_OMAP3_SDRC_AC_TIMING is not set
32 CONFIG_OMAP3_EDMA=y
33
34diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
35index e44e942..f13e9dc 100644
36--- a/arch/arm/mach-omap2/Kconfig
37+++ b/arch/arm/mach-omap2/Kconfig
38@@ -372,6 +372,15 @@ config OMAP3_EMU
39 help
40 Say Y here to enable debugging hardware of omap3
41
42+config TI_PM_DISABLE_VT_SWITCH
43+ bool "TI Disable PM Console Switch"
44+ depends on ARCH_OMAP3
45+ default y
46+ help
47+ This option disables the default PM VT switch behavior for TI devices.
48+ Some platforms hang during suspend due to a failed attempt to
49+ perform the VT switch. The VT switch is unnecessary on many platforms.
50+
51 config OMAP3_SDRC_AC_TIMING
52 bool "Enable SDRC AC timing register changes"
53 depends on ARCH_OMAP3
54diff --git a/arch/arm/mach-omap2/pm33xx.c b/arch/arm/mach-omap2/pm33xx.c
55index 70bcb42..019ae46 100644
56--- a/arch/arm/mach-omap2/pm33xx.c
57+++ b/arch/arm/mach-omap2/pm33xx.c
58@@ -502,6 +502,11 @@ static int __init am33xx_pm_init(void)
59 pr_info("Power Management for AM33XX family\n");
60
61 #ifdef CONFIG_SUSPEND
62+
63+#ifdef CONFIG_TI_PM_DISABLE_VT_SWITCH
64+ pm_set_vt_switch(0);
65+#endif
66+
67 /* Read SDRAM_CONFIG register to determine Memory Type */
68 base = am33xx_get_ram_base();
69 reg = readl(base + EMIF4_0_SDRAM_CONFIG);
70--
711.7.0.4