Skip to content

Commit

Permalink
ARM: mach-shmobile: add fixed voltage regulators to bonito
Browse files Browse the repository at this point in the history
On bonito provide a dummy regulator for the smsc911x driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Guennadi Liakhovetski authored and Rafael J. Wysocki committed Jun 30, 2012
1 parent 21503a8 commit d3ed18e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm/mach-shmobile/board-bonito.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smsc911x.h>
#include <linux/videodev2.h>
#include <mach/common.h>
Expand Down Expand Up @@ -75,6 +77,12 @@
* S38.2 = OFF
*/

/* Dummy supplies, where voltage doesn't matter */
static struct regulator_consumer_supply dummy_supplies[] = {
REGULATOR_SUPPLY("vddvario", "smsc911x"),
REGULATOR_SUPPLY("vdd33a", "smsc911x"),
};

/*
* FPGA
*/
Expand Down Expand Up @@ -360,6 +368,8 @@ static void __init bonito_init(void)
{
u16 val;

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

r8a7740_pinmux_init();
bonito_fpga_init();

Expand Down

0 comments on commit d3ed18e

Please sign in to comment.