Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298676
b: refs/heads/master
c: ccdf327
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Sascha Hauer committed Apr 2, 2012
1 parent 1bf4fba commit 3138c0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 954c59acd3f9df6899f908004e3ff349a7cecd7b
refs/heads/master: ccdf327843d1f61ffb7463ae5cdf4ca5f09f631b
9 changes: 9 additions & 0 deletions trunk/arch/arm/mach-imx/mach-kzm_arm11_01.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <linux/serial_8250.h>
#include <linux/smsc911x.h>
#include <linux/types.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/fixed.h>

#include <asm/irq.h>
#include <asm/mach-types.h>
Expand Down Expand Up @@ -166,6 +168,11 @@ static struct platform_device kzm_smsc9118_device = {
},
};

static struct regulator_consumer_supply dummy_supplies[] = {
REGULATOR_SUPPLY("vdd33a", "smsc911x"),
REGULATOR_SUPPLY("vddvario", "smsc911x"),
};

static int __init kzm_init_smsc9118(void)
{
/*
Expand All @@ -175,6 +182,8 @@ static int __init kzm_init_smsc9118(void)
gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO1_2), "smsc9118-int");
gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_GPIO1_2));

regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies));

return platform_device_register(&kzm_smsc9118_device);
}
#else
Expand Down

0 comments on commit 3138c0a

Please sign in to comment.