Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321227
b: refs/heads/master
c: 48aff64
h: refs/heads/master
i:
  321225: 297a05a
  321223: 3cf8efe
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Paul Mundt committed Jun 28, 2012
1 parent 0202e29 commit 3c71c9a
Show file tree
Hide file tree
Showing 2 changed files with 14 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: da5f2ddce883afef20680674706a2ba8b6433f36
refs/heads/master: 48aff643d969f4767f218e17347c1d1d13c6aaa4
13 changes: 13 additions & 0 deletions trunk/arch/sh/boards/mach-migor/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <linux/mtd/physmap.h>
#include <linux/mtd/nand.h>
#include <linux/i2c.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smc91x.h>
#include <linux/delay.h>
#include <linux/clk.h>
Expand Down Expand Up @@ -386,6 +388,13 @@ static struct platform_device migor_ceu_device = {
},
};

/* Fixed 3.3V regulator to be used by SDHI0 */
static struct regulator_consumer_supply fixed3v3_power_consumers[] =
{
REGULATOR_SUPPLY("vmmc", "sh_mobile_sdhi.0"),
REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.0"),
};

static struct resource sdhi_cn9_resources[] = {
[0] = {
.name = "SDHI",
Expand Down Expand Up @@ -498,6 +507,10 @@ static int __init migor_devices_setup(void)
&migor_sdram_enter_end,
&migor_sdram_leave_start,
&migor_sdram_leave_end);

regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers,
ARRAY_SIZE(fixed3v3_power_consumers), 3300000);

/* Let D11 LED show STATUS0 */
gpio_request(GPIO_FN_STATUS0, NULL);

Expand Down

0 comments on commit 3c71c9a

Please sign in to comment.