Commit 920f5500936c075b18ffce1ad2fdc456ee733a0b
Committed by
Paul Mundt
1 parent
15719ccc27
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
sh: add fixed voltage regulators to apsh4a3a
On apsh4a3a provide a dummy regulator for the smsc911x driver. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Showing 1 changed file with 10 additions and 0 deletions Side-by-side Diff
arch/sh/boards/board-apsh4a3a.c
... | ... | @@ -13,6 +13,8 @@ |
13 | 13 | #include <linux/platform_device.h> |
14 | 14 | #include <linux/io.h> |
15 | 15 | #include <linux/mtd/physmap.h> |
16 | +#include <linux/regulator/fixed.h> | |
17 | +#include <linux/regulator/machine.h> | |
16 | 18 | #include <linux/smsc911x.h> |
17 | 19 | #include <linux/irq.h> |
18 | 20 | #include <linux/clk.h> |
... | ... | @@ -66,6 +68,12 @@ |
66 | 68 | .resource = nor_flash_resources, |
67 | 69 | }; |
68 | 70 | |
71 | +/* Dummy supplies, where voltage doesn't matter */ | |
72 | +static struct regulator_consumer_supply dummy_supplies[] = { | |
73 | + REGULATOR_SUPPLY("vddvario", "smsc911x"), | |
74 | + REGULATOR_SUPPLY("vdd33a", "smsc911x"), | |
75 | +}; | |
76 | + | |
69 | 77 | static struct resource smsc911x_resources[] = { |
70 | 78 | [0] = { |
71 | 79 | .name = "smsc911x-memory", |
... | ... | @@ -105,6 +113,8 @@ |
105 | 113 | |
106 | 114 | static int __init apsh4a3a_devices_setup(void) |
107 | 115 | { |
116 | + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); | |
117 | + | |
108 | 118 | return platform_add_devices(apsh4a3a_devices, |
109 | 119 | ARRAY_SIZE(apsh4a3a_devices)); |
110 | 120 | } |