Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226513
b: refs/heads/master
c: 60d24ee
h: refs/heads/master
i:
  226511: 60256e9
v: v3
  • Loading branch information
Srikar authored and Tony Lindgren committed Dec 21, 2010
1 parent b69a0f2 commit 248365e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: caeeb4aadfbff8d8efbb055594c0459cff94adad
refs/heads/master: 60d24eeda7c7e3b0551f5a349224c7cc721206bd
29 changes: 28 additions & 1 deletion trunk/arch/arm/mach-omap2/board-rx51-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/gpio.h>
#include <linux/spi/spi.h>
#include <linux/mm.h>

#include <asm/mach-types.h>
#include <plat/display.h>
#include <plat/vram.h>
Expand All @@ -25,6 +24,9 @@
#include "mux.h"

#define RX51_LCD_RESET_GPIO 90
/* REVISIT to verify with rx51.c at sound/soc/omap */
#define RX51_TVOUT_SEL_GPIO 40


#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)

Expand All @@ -39,6 +41,17 @@ static void rx51_lcd_disable(struct omap_dss_device *dssdev)
gpio_set_value(dssdev->reset_gpio, 0);
}

static int rx51_tvout_enable(struct omap_dss_device *dssdev)
{
gpio_set_value(dssdev->reset_gpio, 1);
return 0;
}

static void rx51_tvout_disable(struct omap_dss_device *dssdev)
{
gpio_set_value(dssdev->reset_gpio, 0);
}

static struct omap_dss_device rx51_lcd_device = {
.name = "lcd",
.driver_name = "panel-acx565akm",
Expand All @@ -49,8 +62,19 @@ static struct omap_dss_device rx51_lcd_device = {
.platform_disable = rx51_lcd_disable,
};

static struct omap_dss_device rx51_tv_device = {
.name = "tv",
.type = OMAP_DISPLAY_TYPE_VENC,
.driver_name = "venc",
.phy.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
.reset_gpio = RX51_TVOUT_SEL_GPIO,
.platform_enable = rx51_tvout_enable,
.platform_disable = rx51_tvout_disable,
};

static struct omap_dss_device *rx51_dss_devices[] = {
&rx51_lcd_device,
&rx51_tv_device,
};

static struct omap_dss_board_info rx51_dss_board_info = {
Expand Down Expand Up @@ -88,6 +112,9 @@ static int __init rx51_video_init(void)

gpio_direction_output(RX51_LCD_RESET_GPIO, 1);

/* REVISIT to verify with rx51.c at sound/soc/omap */
gpio_direction_output(RX51_TVOUT_SEL_GPIO, 1);

platform_add_devices(rx51_video_devices,
ARRAY_SIZE(rx51_video_devices));
return 0;
Expand Down

0 comments on commit 248365e

Please sign in to comment.