diff options
| author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-06-26 18:50:09 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2012-06-28 05:01:03 -0400 |
| commit | 67ef578699ff42aa772d797bffae1f9e25c254c5 (patch) | |
| tree | 3356c2213d9dc6c022f5c46a609cc36bd4bca19e | |
| parent | 2fcfe22ae791e1e4e0cc9d0fbad617405552ffc0 (diff) | |
sh: add fixed voltage regulators to se7724
On se7724 provide a 3.3V supply for its SD/MMC-card interfaces.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| -rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index ffbf5bc7366b..35f6efa3ac0e 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
| @@ -18,6 +18,8 @@ | |||
| 18 | #include <linux/mmc/sh_mobile_sdhi.h> | 18 | #include <linux/mmc/sh_mobile_sdhi.h> |
| 19 | #include <linux/mtd/physmap.h> | 19 | #include <linux/mtd/physmap.h> |
| 20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
| 21 | #include <linux/regulator/fixed.h> | ||
| 22 | #include <linux/regulator/machine.h> | ||
| 21 | #include <linux/smc91x.h> | 23 | #include <linux/smc91x.h> |
| 22 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
| 23 | #include <linux/input.h> | 25 | #include <linux/input.h> |
| @@ -454,6 +456,15 @@ static struct platform_device sh7724_usb1_gadget_device = { | |||
| 454 | .resource = sh7724_usb1_gadget_resources, | 456 | .resource = sh7724_usb1_gadget_resources, |
| 455 | }; | 457 | }; |
| 456 | 458 | ||
| 459 | /* Fixed 3.3V regulator to be used by SDHI0, SDHI1 */ | ||
| 460 | static struct regulator_consumer_supply fixed3v3_power_consumers[] = | ||
| 461 | { | ||
| 462 | REGULATOR_SUPPLY("vmmc", "sh_mobile_sdhi.0"), | ||
| 463 | REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.0"), | ||
| 464 | REGULATOR_SUPPLY("vmmc", "sh_mobile_sdhi.1"), | ||
| 465 | REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.1"), | ||
| 466 | }; | ||
| 467 | |||
| 457 | static struct resource sdhi0_cn7_resources[] = { | 468 | static struct resource sdhi0_cn7_resources[] = { |
| 458 | [0] = { | 469 | [0] = { |
| 459 | .name = "SDHI0", | 470 | .name = "SDHI0", |
| @@ -684,6 +695,10 @@ static int __init devices_setup(void) | |||
| 684 | &ms7724se_sdram_enter_end, | 695 | &ms7724se_sdram_enter_end, |
| 685 | &ms7724se_sdram_leave_start, | 696 | &ms7724se_sdram_leave_start, |
| 686 | &ms7724se_sdram_leave_end); | 697 | &ms7724se_sdram_leave_end); |
| 698 | |||
| 699 | regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers, | ||
| 700 | ARRAY_SIZE(fixed3v3_power_consumers), 3300000); | ||
| 701 | |||
| 687 | /* Reset Release */ | 702 | /* Reset Release */ |
| 688 | fpga_out = __raw_readw(FPGA_OUT); | 703 | fpga_out = __raw_readw(FPGA_OUT); |
| 689 | /* bit4: NTSC_PDN, bit5: NTSC_RESET */ | 704 | /* bit4: NTSC_PDN, bit5: NTSC_RESET */ |
