diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0024-DSS2-Beagle-Use-gpio_set_value.patch')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0024-DSS2-Beagle-Use-gpio_set_value.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0024-DSS2-Beagle-Use-gpio_set_value.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0024-DSS2-Beagle-Use-gpio_set_value.patch new file mode 100644 index 0000000000..559e49f40a --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0024-DSS2-Beagle-Use-gpio_set_value.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 2710416c43572652cb5355a5eaf68038c95659e8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tomi Valkeinen <tomi.valkeinen@nokia.com> | ||
3 | Date: Thu, 9 Apr 2009 12:10:46 +0300 | ||
4 | Subject: [PATCH] DSS2: Beagle: Use gpio_set_value | ||
5 | |||
6 | --- | ||
7 | arch/arm/mach-omap2/board-omap3beagle.c | 10 +++++++--- | ||
8 | 1 files changed, 7 insertions(+), 3 deletions(-) | ||
9 | |||
10 | diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c | ||
11 | index b67e7a5..8c1961d 100644 | ||
12 | --- a/arch/arm/mach-omap2/board-omap3beagle.c | ||
13 | +++ b/arch/arm/mach-omap2/board-omap3beagle.c | ||
14 | @@ -372,7 +372,7 @@ static struct platform_device keys_gpio = { | ||
15 | static int beagle_enable_dvi(struct omap_display *display) | ||
16 | { | ||
17 | if (display->hw_config.panel_reset_gpio != -1) | ||
18 | - gpio_direction_output(display->hw_config.panel_reset_gpio, 1); | ||
19 | + gpio_set_value(display->hw_config.panel_reset_gpio, 1); | ||
20 | |||
21 | return 0; | ||
22 | } | ||
23 | @@ -380,7 +380,7 @@ static int beagle_enable_dvi(struct omap_display *display) | ||
24 | static void beagle_disable_dvi(struct omap_display *display) | ||
25 | { | ||
26 | if (display->hw_config.panel_reset_gpio != -1) | ||
27 | - gpio_direction_output(display->hw_config.panel_reset_gpio, 0); | ||
28 | + gpio_set_value(display->hw_config.panel_reset_gpio, 0); | ||
29 | } | ||
30 | |||
31 | static struct omap_dss_display_config beagle_display_data_dvi = { | ||
32 | @@ -445,8 +445,12 @@ static void __init beagle_display_init(void) | ||
33 | int r; | ||
34 | |||
35 | r = gpio_request(beagle_display_data_dvi.panel_reset_gpio, "DVI reset"); | ||
36 | - if (r < 0) | ||
37 | + if (r < 0) { | ||
38 | printk(KERN_ERR "Unable to get DVI reset GPIO\n"); | ||
39 | + return; | ||
40 | + } | ||
41 | + | ||
42 | + gpio_direction_output(beagle_display_data_dvi.panel_reset_gpio, 0); | ||
43 | } | ||
44 | |||
45 | static struct omap_board_config_kernel omap3_beagle_config[] __initdata = { | ||
46 | -- | ||
47 | 1.5.6.5 | ||
48 | |||