Re: [PATCH 2/2] AM35xx-Craneboard:Display: Add DVI and TV Support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 29-04-2011 15:41, srinath@xxxxxxxxxxxxxxxxxxxx wrote:

From: Srinath <srinath@xxxxxxxxxxxxxxxxxxxx>

Added Display (DVI and TV) support for CraneBoard.

Signed-off-by: Srinath <srinath@xxxxxxxxxxxxxxxxxxxx>
[...]

diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
index 05867b5..83fe85b 100644
--- a/arch/arm/mach-omap2/board-am3517crane.c
+++ b/arch/arm/mach-omap2/board-am3517crane.c
[...]
@@ -66,11 +69,83 @@ static struct usbhs_omap_board_data usbhs_bdata __initdata = {
  	.reset_gpio_port[2]  = -EINVAL
  };

+static void __init am3517_crane_display_init(void)
+{
+	int ret;
+
+	ret = omap_mux_init_gpio(GPIO_DVI_ENABLE, OMAP_PIN_OUTPUT);
+	if (ret<  0) {
+		pr_err("Can not configure mux for GPIO_DVI_ENABLE %d\n",
+			GPIO_DVI_ENABLE);
+		return;
+	}
+
+	ret = gpio_request(GPIO_DVI_ENABLE, "dvi_enable");
+	if (ret<  0) {
+		pr_err("Can not request GPIO %d\n", GPIO_DVI_ENABLE);
+		return;
+	}
+
+	ret = gpio_direction_output(GPIO_DVI_ENABLE, 1);
+	if (ret<  0) {
+		gpio_free(GPIO_DVI_ENABLE);
+		pr_err("Unable to enable DVI\n");
+		return;
+	}

   You can use gpio_request_one() ISO gpio_request()/gpio_direction_output().

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux