summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0048-HACK-try-to-poweron-stuff-on-xM-rev-A.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0048-HACK-try-to-poweron-stuff-on-xM-rev-A.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0048-HACK-try-to-poweron-stuff-on-xM-rev-A.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0048-HACK-try-to-poweron-stuff-on-xM-rev-A.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0048-HACK-try-to-poweron-stuff-on-xM-rev-A.patch
new file mode 100644
index 00000000..19a235ac
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0048-HACK-try-to-poweron-stuff-on-xM-rev-A.patch
@@ -0,0 +1,60 @@
1From 258a962bea2da43df6f70fd264a0e23b65669176 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Tue, 4 May 2010 17:04:27 +0200
4Subject: [PATCH 48/48] HACK: try to poweron stuff on xM rev A
5
6---
7 arch/arm/mach-omap2/board-omap3beagle.c | 14 +++++++-------
8 1 files changed, 7 insertions(+), 7 deletions(-)
9
10diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
11index b313350..7f0e241 100644
12--- a/arch/arm/mach-omap2/board-omap3beagle.c
13+++ b/arch/arm/mach-omap2/board-omap3beagle.c
14@@ -237,7 +237,6 @@ static struct omap_dss_device beagle_dvi_device = {
15 .name = "dvi",
16 .driver_name = "generic_panel",
17 .phy.dpi.data_lines = 24,
18- .reset_gpio = 170,
19 .platform_enable = beagle_enable_dvi,
20 .platform_disable = beagle_disable_dvi,
21 };
22@@ -364,6 +363,9 @@ static int beagle_twl_gpio_setup(struct device *dev,
23 */
24
25 if (cpu_is_omap3630()) {
26+ /* DVI reset GPIO is different between revisions */
27+ beagle_dvi_device.reset_gpio = 129;
28+
29 /* Power on DVI, Serial and PWR led */
30 gpio_request(gpio + 1, "nDVI_PWR_EN");
31 gpio_direction_output(gpio + 1, 0);
32@@ -374,9 +376,12 @@ static int beagle_twl_gpio_setup(struct device *dev,
33
34 /* TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, active low) */
35 gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR");
36- gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1);
37+ gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);
38 }
39 else {
40+ /* DVI reset GPIO is different between revisions */
41+ beagle_dvi_device.reset_gpio = 170;
42+
43 gpio_request(gpio + 1, "EHCI_nOC");
44 gpio_direction_input(gpio + 1);
45
46@@ -735,11 +740,6 @@ static void __init omap3_beagle_init(void)
47 ARRAY_SIZE(omap3_beagle_devices));
48 omap_serial_init();
49
50- omap_mux_init_gpio(170, OMAP_PIN_INPUT);
51- gpio_request(170, "DVI_nPD");
52- /* REVISIT leave DVI powered down until it's needed ... */
53- gpio_direction_output(170, true);
54-
55 if(!strcmp(expansionboard_name, "zippy"))
56 {
57 printk(KERN_INFO "Beagle expansionboard: initializing enc28j60\n");
58--
591.6.6.1
60