]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00161127 [mx6q] Add dummy regulators for MMC and SD drivers
authorNancy Chen <Nancy.Chen@freescale.com>
Mon, 31 Oct 2011 22:46:23 +0000 (17:46 -0500)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:52 +0000 (14:09 +0200)
Add dummy regulators for MMC and SD drivers.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
arch/arm/mach-mx6/board-mx6q_arm2.c

index a01c7d354c6090f973b2289a96e7ae882dd634d9..d37d7e5af5c34cd2e35c1e5f94c6222b3c56bf8c 100644 (file)
@@ -881,6 +881,32 @@ static struct imx_esai_platform_data sab_esai_pdata = {
        .flags = IMX_ESAI_NET,
 };
 
+static struct regulator_consumer_supply arm2_vmmc_consumers[] = {
+       REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.1"),
+       REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.2"),
+       REGULATOR_SUPPLY("vmmc", "sdhci-esdhc-imx.3"),
+};
+
+static struct regulator_init_data arm2_vmmc_init = {
+       .num_consumer_supplies = ARRAY_SIZE(arm2_vmmc_consumers),
+       .consumer_supplies = arm2_vmmc_consumers,
+};
+
+static struct fixed_voltage_config arm2_vmmc_reg_config = {
+       .supply_name            = "vmmc",
+       .microvolts             = 3300000,
+       .gpio                   = -1,
+       .init_data              = &arm2_vmmc_init,
+};
+
+static struct platform_device arm2_vmmc_reg_devices = {
+       .name   = "reg-fixed-voltage",
+       .id     = 1,
+       .dev    = {
+               .platform_data = &arm2_vmmc_reg_config,
+       },
+};
+
 #ifdef CONFIG_SND_SOC_SGTL5000
 
 static struct regulator_consumer_supply sgtl5000_arm2_consumer_vdda = {
@@ -976,6 +1002,8 @@ static int imx6q_init_audio(void)
 
        clk_set_parent(esai_clk, pll3_pfd);
        clk_set_rate(esai_clk, 101647058);
+
+       platform_device_register(&arm2_vmmc_reg_devices);
 #ifdef CONFIG_SND_SOC_SGTL5000
        platform_device_register(&sgtl5000_arm2_vdda_reg_devices);
        platform_device_register(&sgtl5000_arm2_vddio_reg_devices);