diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-06-27 00:49:59 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-06-28 18:00:47 +0900 |
commit | 1f8eca1293ab0231408369556e0345a8e74976bc (patch) | |
tree | 59ce760f264be626dfe8d5c588f5416b1a72e2be /arch/sh/boards | |
parent | 920f5500936c075b18ffce1ad2fdc456ee733a0b (diff) | |
download | blackbird-op-linux-1f8eca1293ab0231408369556e0345a8e74976bc.tar.gz blackbird-op-linux-1f8eca1293ab0231408369556e0345a8e74976bc.zip |
sh: add fixed voltage regulators to apsh4ad0a
On apsh4ad0a 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>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/board-apsh4ad0a.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/boards/board-apsh4ad0a.c b/arch/sh/boards/board-apsh4ad0a.c index b4d6292a9247..92eac3a99187 100644 --- a/arch/sh/boards/board-apsh4ad0a.c +++ b/arch/sh/boards/board-apsh4ad0a.c @@ -12,12 +12,20 @@ #include <linux/init.h> #include <linux/platform_device.h> #include <linux/io.h> +#include <linux/regulator/fixed.h> +#include <linux/regulator/machine.h> #include <linux/smsc911x.h> #include <linux/irq.h> #include <linux/clk.h> #include <asm/machvec.h> #include <asm/sizes.h> +/* Dummy supplies, where voltage doesn't matter */ +static struct regulator_consumer_supply dummy_supplies[] = { + REGULATOR_SUPPLY("vddvario", "smsc911x"), + REGULATOR_SUPPLY("vdd33a", "smsc911x"), +}; + static struct resource smsc911x_resources[] = { [0] = { .name = "smsc911x-memory", @@ -56,6 +64,8 @@ static struct platform_device *apsh4ad0a_devices[] __initdata = { static int __init apsh4ad0a_devices_setup(void) { + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); + return platform_add_devices(apsh4ad0a_devices, ARRAY_SIZE(apsh4ad0a_devices)); } |