From patchwork Wed Jul 14 19:46:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maurus Cuelenaere X-Patchwork-Id: 112055 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6EJklZn004543 for ; Wed, 14 Jul 2010 19:46:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756939Ab0GNTqq (ORCPT ); Wed, 14 Jul 2010 15:46:46 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:59423 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754508Ab0GNTqp (ORCPT ); Wed, 14 Jul 2010 15:46:45 -0400 Received: by ewy23 with SMTP id 23so34055ewy.19 for ; Wed, 14 Jul 2010 12:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:received:date:from :subject:to:cc; bh=iGFX8s1hj80P00To7Uo3PwBKNxtGQtKK6qkhmpAKZlE=; b=aizPKtii/Ni5qMFKynU6tU79mqKhIyJxVd2nsFIyLUwRGbsLbtUhGiwARpTXX2Kif/ 2aTX2YBJ2vDHjyuJEznyw1KbVruAlgmVzQclZ4wE86E2/V7tO7cQ2APcaKSFepkvqS+1 koijhgavCdkLP9rNTDzrLmsJ8Di1uPnV38Emo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:to:cc; b=oKbP+WBqs3TtY1pTyb8ytsLPG+ADsHoDQlVtad6vOsqeT+8GuRpp09DFrWvcs/Z2N4 /hZW/s2lwpXuNdIOU825lYh/a162hSf8Mt5DLQFtw2f0IXSf/WYlCdDb5mx07TdginEN IJkEHB+Q2q9wmu8rzccPGpvqmDCdnxgkq9Dao= Received: by 10.213.17.7 with SMTP id q7mr1929756eba.2.1279136803993; Wed, 14 Jul 2010 12:46:43 -0700 (PDT) Received: from wim2160 (d54C4B918.access.telenet.be [84.196.185.24]) by mx.google.com with ESMTPS id v59sm901332eeh.10.2010.07.14.12.46.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Jul 2010 12:46:42 -0700 (PDT) Message-ID: <4c3e1422.d37b0e0a.7b5e.092d@mx.google.com> Received: by wim2160 (sSMTP sendmail emulation); Wed, 14 Jul 2010 21:46:40 +0200 Date: Wed, 14 Jul 2010 21:46:40 +0200 From: Maurus Cuelenaere Subject: [PATCH] ARM: OMAP3: Add S-Video output to IGEPv2 board To: linux-omap@vger.kernel.org, tony@atomide.com Cc: linux-arm-kernel@lists.infradead.org, eballetbo@iseebcn.com Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 14 Jul 2010 19:46:47 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index d55c57b..3ec48bd 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -310,8 +310,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 = { @@ -328,6 +336,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, @@ -429,7 +456,7 @@ static struct twl4030_platform_data igep2_twldata = { .vmmc1 = &igep2_vmmc1, .vmmc2 = &igep2_vmmc2, .vpll2 = &igep2_vpll2, - + .vdac = &igep2_vdac, }; static struct i2c_board_info __initdata igep2_i2c_boardinfo[] = {