diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-04-09 02:37:15 -0700 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-07 14:26:31 +0900 |
commit | 741440e868f5f08f747292097620ebad43cc5ef0 (patch) | |
tree | 17a256782ab64fd1abc9ed78f3d7ea4b696d1cc5 /arch/arm/mach-shmobile | |
parent | d998cef3fc7ccd52c0ea2c849453dfcde38c8a56 (diff) | |
download | blackbird-op-linux-741440e868f5f08f747292097620ebad43cc5ef0.tar.gz blackbird-op-linux-741440e868f5f08f747292097620ebad43cc5ef0.zip |
ARM: shmobile: bockw: add dummy regulators for SMSC
SMSC driver will try to get regulator if .config had CONFIG_REGULATOR,
and, shmobile_defconfig has it.
SMSC driver on Bock-W board will be failed if it doens't have
dummy regulator settings.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-bockw.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 3ce020a7bdd9..4d6571590135 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c @@ -20,6 +20,8 @@ #include <linux/pinctrl/machine.h> #include <linux/platform_device.h> +#include <linux/regulator/fixed.h> +#include <linux/regulator/machine.h> #include <linux/smsc911x.h> #include <mach/common.h> #include <mach/irqs.h> @@ -34,6 +36,12 @@ * SW41 SCIF RCAN */ +/* Dummy supplies, where voltage doesn't matter */ +static struct regulator_consumer_supply dummy_supplies[] = { + REGULATOR_SUPPLY("vddvario", "smsc911x"), + REGULATOR_SUPPLY("vdd33a", "smsc911x"), +}; + static struct smsc911x_platform_config smsc911x_data = { .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, @@ -82,6 +90,9 @@ static void __init bockw_init(void) iowrite16(val, base + IRQ0MR); iounmap(base); + regulator_register_fixed(0, dummy_supplies, + ARRAY_SIZE(dummy_supplies)); + platform_device_register_resndata( &platform_bus, "smsc911x", -1, smsc911x_resources, ARRAY_SIZE(smsc911x_resources), |