aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-09-20 22:12:53 -0300
committerJohn Rigby <john.rigby@linaro.org>2010-11-26 10:17:33 -0700
commit8af28529be4cb549d852f82862413b41b2161794 (patch)
tree149c0a41d67b955794956c0ec47e4743cc2e5bd4
parent52196986715ab18b0b1469a76c7af08255eb3e00 (diff)
ARM: OMAP3: Add S-Video output to IGEPv2 board
This adds S-Video DSS and VDAC regulator platform definitions to the IGEPv2 board. There isn't a physical connector on-board but one can solder one at test points provided by ISEE. BugLink: https://bugs.launchpad.net/bugs/607250 Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
-rw-r--r--arch/arm/mach-omap2/board-igep0020.c31
1 files changed, 29 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c
index 5e035a58b809..6695f51ccdec 100644
--- a/arch/arm/mach-omap2/board-igep0020.c
+++ b/arch/arm/mach-omap2/board-igep0020.c
@@ -442,8 +442,16 @@ static struct omap_dss_device igep2_dvi_device = {
.platform_disable = igep2_disable_dvi,
};
+static struct omap_dss_device igep2_tv_device = {
+ .name = "tv",
+ .driver_name = "venc",
+ .type = OMAP_DISPLAY_TYPE_VENC,
+ .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
+};
+
static struct omap_dss_device *igep2_dss_devices[] = {
- &igep2_dvi_device
+ &igep2_dvi_device,
+ &igep2_tv_device,
};
static struct omap_dss_board_info igep2_dss_data = {
@@ -460,6 +468,25 @@ static struct platform_device igep2_dss_device = {
},
};
+static struct regulator_consumer_supply igep2_vdda_dac_supply = {
+ .supply = "vdda_dac",
+ .dev = &igep2_dss_device.dev,
+};
+
+/* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */
+static struct regulator_init_data igep2_vdac = {
+ .constraints = {
+ .min_uV = 1800000,
+ .max_uV = 1800000,
+ .valid_modes_mask = REGULATOR_MODE_NORMAL
+ | REGULATOR_MODE_STANDBY,
+ .valid_ops_mask = REGULATOR_CHANGE_MODE
+ | REGULATOR_CHANGE_STATUS,
+ },
+ .num_consumer_supplies = 1,
+ .consumer_supplies = &igep2_vdda_dac_supply,
+};
+
static struct regulator_consumer_supply igep2_vpll2_supply = {
.supply = "vdds_dsi",
.dev = &igep2_dss_device.dev,
@@ -519,7 +546,7 @@ static struct twl4030_platform_data igep2_twldata = {
.gpio = &igep2_twl4030_gpio_pdata,
.vmmc1 = &igep2_vmmc1,
.vpll2 = &igep2_vpll2,
-
+ .vdac = &igep2_vdac,
};
static struct i2c_board_info __initdata igep2_i2c1_boardinfo[] = {