diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-06-26 18:32:30 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-06-30 16:51:48 -0400 |
commit | faa661bdfedb059362a85aa0cf26c64dd1025fa6 (patch) | |
tree | 6054d0de00637bce2ca5c12209be240f08abf2e8 /arch/arm | |
parent | 21503a86db5015b74cceb54c41ed8862107ddaec (diff) |
ARM: mach-shmobile: add fixed voltage regulators to kzm9d
On kzm9d provide a dummy regulator for the smsc911x driver.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-shmobile/board-kzm9d.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9d.c b/arch/arm/mach-shmobile/board-kzm9d.c index 7bc5e7d39f9b..21ddd12efb20 100644 --- a/arch/arm/mach-shmobile/board-kzm9d.c +++ b/arch/arm/mach-shmobile/board-kzm9d.c | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/interrupt.h> | 22 | #include <linux/interrupt.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/regulator/fixed.h> | ||
25 | #include <linux/regulator/machine.h> | ||
24 | #include <linux/smsc911x.h> | 26 | #include <linux/smsc911x.h> |
25 | #include <mach/common.h> | 27 | #include <mach/common.h> |
26 | #include <mach/emev2.h> | 28 | #include <mach/emev2.h> |
@@ -28,6 +30,12 @@ | |||
28 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
29 | #include <asm/hardware/gic.h> | 31 | #include <asm/hardware/gic.h> |
30 | 32 | ||
33 | /* Dummy supplies, where voltage doesn't matter */ | ||
34 | static struct regulator_consumer_supply dummy_supplies[] = { | ||
35 | REGULATOR_SUPPLY("vddvario", "smsc911x"), | ||
36 | REGULATOR_SUPPLY("vdd33a", "smsc911x"), | ||
37 | }; | ||
38 | |||
31 | /* Ether */ | 39 | /* Ether */ |
32 | static struct resource smsc911x_resources[] = { | 40 | static struct resource smsc911x_resources[] = { |
33 | [0] = { | 41 | [0] = { |
@@ -63,6 +71,8 @@ static struct platform_device *kzm9d_devices[] __initdata = { | |||
63 | 71 | ||
64 | void __init kzm9d_add_standard_devices(void) | 72 | void __init kzm9d_add_standard_devices(void) |
65 | { | 73 | { |
74 | regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); | ||
75 | |||
66 | emev2_add_standard_devices(); | 76 | emev2_add_standard_devices(); |
67 | 77 | ||
68 | platform_add_devices(kzm9d_devices, ARRAY_SIZE(kzm9d_devices)); | 78 | platform_add_devices(kzm9d_devices, ARRAY_SIZE(kzm9d_devices)); |