diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-04-09 05:37:15 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-07 01:26:31 -0400 |
commit | 741440e868f5f08f747292097620ebad43cc5ef0 (patch) | |
tree | 17a256782ab64fd1abc9ed78f3d7ea4b696d1cc5 /arch/arm/mach-shmobile | |
parent | d998cef3fc7ccd52c0ea2c849453dfcde38c8a56 (diff) |
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 @@ | |||
20 | 20 | ||
21 | #include <linux/pinctrl/machine.h> | 21 | #include <linux/pinctrl/machine.h> |
22 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
23 | #include <linux/regulator/fixed.h> | ||
24 | #include <linux/regulator/machine.h> | ||
23 | #include <linux/smsc911x.h> | 25 | #include <linux/smsc911x.h> |
24 | #include <mach/common.h> | 26 | #include <mach/common.h> |
25 | #include <mach/irqs.h> | 27 | #include <mach/irqs.h> |
@@ -34,6 +36,12 @@ | |||
34 | * SW41 SCIF RCAN | 36 | * SW41 SCIF RCAN |
35 | */ | 37 | */ |
36 | 38 | ||
39 | /* Dummy supplies, where voltage doesn't matter */ | ||
40 | static struct regulator_consumer_supply dummy_supplies[] = { | ||
41 | REGULATOR_SUPPLY("vddvario", "smsc911x"), | ||
42 | REGULATOR_SUPPLY("vdd33a", "smsc911x"), | ||
43 | }; | ||
44 | |||
37 | static struct smsc911x_platform_config smsc911x_data = { | 45 | static struct smsc911x_platform_config smsc911x_data = { |
38 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | 46 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, |
39 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | 47 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, |
@@ -82,6 +90,9 @@ static void __init bockw_init(void) | |||
82 | iowrite16(val, base + IRQ0MR); | 90 | iowrite16(val, base + IRQ0MR); |
83 | iounmap(base); | 91 | iounmap(base); |
84 | 92 | ||
93 | regulator_register_fixed(0, dummy_supplies, | ||
94 | ARRAY_SIZE(dummy_supplies)); | ||
95 | |||
85 | platform_device_register_resndata( | 96 | platform_device_register_resndata( |
86 | &platform_bus, "smsc911x", -1, | 97 | &platform_bus, "smsc911x", -1, |
87 | smsc911x_resources, ARRAY_SIZE(smsc911x_resources), | 98 | smsc911x_resources, ARRAY_SIZE(smsc911x_resources), |