Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321222
b: refs/heads/master
c: 73c2a9d
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Paul Mundt committed Jun 28, 2012
1 parent 404f4af commit c9ad61c
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 2bd5d0865629f6711f90301d5f49f4da3dfeeef0
refs/heads/master: 73c2a9dc0eb0049e01e8e71a0c3854b393723be7
10 changes: 10 additions & 0 deletions trunk/arch/sh/boards/board-polaris.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smsc911x.h>
#include <linux/io.h>
#include <asm/irq.h>
Expand All @@ -22,6 +24,12 @@
#define AREA5_WAIT_CTRL (0x1C00)
#define WAIT_STATES_10 (0x7)

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

static struct resource smsc911x_resources[] = {
[0] = {
.name = "smsc911x-memory",
Expand Down Expand Up @@ -88,6 +96,8 @@ static int __init polaris_initialise(void)

printk(KERN_INFO "Configuring Polaris external bus\n");

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

/* Configure area 5 with 2 wait states */
wcr = __raw_readw(WCR2);
wcr &= (~AREA5_WAIT_CTRL);
Expand Down

0 comments on commit c9ad61c

Please sign in to comment.