Search
SailfishOS Open Build Service
>
Projects
>
home:dcthang:branches:nemo:devel:hw:ti:omap3:n900
>
kernel-adaptation-n900
> linux-2.6-enabled-vdda_dac-regulator-support-tvout-on-rx51.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File linux-2.6-enabled-vdda_dac-regulator-support-tvout-on-rx51.patch of Package kernel-adaptation-n900
From b850c6a65a78039a09814b2a121c6ee92b83a071 Mon Sep 17 00:00:00 2001 From: Bhavanarayana Srikar.1 (EXT-Elektrobit/Helsinki) <ext-srikar.1.bhavanarayana@nokia.com> Date: Thu, 25 Nov 2010 17:09:00 +0100 Subject: [PATCH 24/42] enabled vdda_dac regulator support tvout on rx51 To support tvout on rx51,added the venc vdac regulator consumer supply data and also intialised the vdac regulator with vdac regulator consumer supply data which enables the power supply to venc through twl4030 on rx51 Signed-off-by: Srikar <ext-srikar.1.bhavanarayana@nokia.com> Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com> --- arch/arm/mach-omap2/board-rx51-peripherals.c | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index e08b3b9..cc279c2 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -461,6 +461,16 @@ static struct regulator_consumer_supply rx51_vaux1_consumers[] = { REGULATOR_SUPPLY("vdd", "2-0063"), }; + +#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) +static struct regulator_consumer_supply rx51_vdac_supply[] = { + { + .supply = "vdda_dac", + .dev = &rx51_display_device.dev, + }, +}; +#endif + static struct regulator_init_data rx51_vaux1 = { .constraints = { .name = "V28", @@ -578,14 +588,19 @@ static struct regulator_init_data rx51_vsim = { static struct regulator_init_data rx51_vdac = { .constraints = { + .name = "VDAC", .min_uV = 1800000, .max_uV = 1800000, + .apply_uV = true, .valid_modes_mask = REGULATOR_MODE_NORMAL | REGULATOR_MODE_STANDBY, - .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE - | REGULATOR_CHANGE_MODE + .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, +#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) + .num_consumer_supplies = 1, + .consumer_supplies = rx51_vdac_supply, +#endif }; static struct regulator_init_data rx51_vio = { -- 1.7.0.4