提交 48aff643 编写于 作者: G Guennadi Liakhovetski 提交者: Paul Mundt

sh: add fixed voltage regulators to migor

On migor provide a 3.3V supply for its SD/MMC-card interfaces.
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 da5f2ddc
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/mtd/physmap.h> #include <linux/mtd/physmap.h>
#include <linux/mtd/nand.h> #include <linux/mtd/nand.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smc91x.h> #include <linux/smc91x.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/clk.h> #include <linux/clk.h>
...@@ -386,6 +388,13 @@ static struct platform_device migor_ceu_device = { ...@@ -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[] = { static struct resource sdhi_cn9_resources[] = {
[0] = { [0] = {
.name = "SDHI", .name = "SDHI",
...@@ -498,6 +507,10 @@ static int __init migor_devices_setup(void) ...@@ -498,6 +507,10 @@ static int __init migor_devices_setup(void)
&migor_sdram_enter_end, &migor_sdram_enter_end,
&migor_sdram_leave_start, &migor_sdram_leave_start,
&migor_sdram_leave_end); &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 */ /* Let D11 LED show STATUS0 */
gpio_request(GPIO_FN_STATUS0, NULL); gpio_request(GPIO_FN_STATUS0, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册