]> code.ossystems Code Review - openembedded-core.git/blob
f4d43259c9382a07d4f3923cbf9e48a824ecf6c3
[openembedded-core.git] /
1 From 48c56cb077e21cf56f0673c9010dde7be4c1bd88 Mon Sep 17 00:00:00 2001
2 From: Roger Quadros <roger.quadros@nokia.com>
3 Date: Fri, 12 Mar 2010 16:14:22 +0200
4 Subject: [PATCH 5/10] OMAP: RX51: Add "vdds_sdi" supply voltage for SDI
5
6 From: Roger Quadros <roger.quadros@nokia.com>
7
8 Patch-mainline: 2.6.35?
9 Git-repo: http://www.gitorious.org/linux-omap-dss2/linux/commit/659550d7f54a2620ba2cc1a98273793ce97de230
10
11 The SDI Display subsystem needs access to the vdds_sdi supply
12 regulator. This is TWL4030's VAUX1 supply on RX-51.
13
14 Signed-off-by: Roger Quadros <roger.quadros@nokia.com>
15 ---
16  arch/arm/mach-omap2/board-rx51-peripherals.c |   15 +++++++++++++++
17  1 files changed, 15 insertions(+), 0 deletions(-)
18
19 diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
20 index 7bae364..6a41a0a 100644
21 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c
22 +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
23 @@ -256,6 +256,19 @@ static struct regulator_consumer_supply rx51_vsim_supply = {
24         .supply                 = "vmmc_aux",
25  };
26  
27 +#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
28 +extern struct platform_device rx51_display_device;
29 +#endif
30 +
31 +static struct regulator_consumer_supply rx51_vaux1_consumers[] = {
32 +#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
33 +       {
34 +               .supply = "vdds_sdi",
35 +               .dev    = &rx51_display_device.dev,
36 +       },
37 +#endif
38 +};
39 +
40  static struct regulator_init_data rx51_vaux1 = {
41         .constraints = {
42                 .name                   = "V28",
43 @@ -266,6 +279,8 @@ static struct regulator_init_data rx51_vaux1 = {
44                 .valid_ops_mask         = REGULATOR_CHANGE_MODE
45                                         | REGULATOR_CHANGE_STATUS,
46         },
47 +       .num_consumer_supplies  = ARRAY_SIZE(rx51_vaux1_consumers),
48 +       .consumer_supplies      = rx51_vaux1_consumers,
49  };
50  
51  static struct regulator_init_data rx51_vaux2 = {
52 -- 
53 1.6.0.4
54