aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-bockw.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/board-bockw.c')
-rw-r--r--arch/arm/mach-shmobile/board-bockw.c11
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 */
40static struct regulator_consumer_supply dummy_supplies[] = {
41 REGULATOR_SUPPLY("vddvario", "smsc911x"),
42 REGULATOR_SUPPLY("vdd33a", "smsc911x"),
43};
44
37static struct smsc911x_platform_config smsc911x_data = { 45static 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),