return ret;
#endif
}
+EXPORT_SYMBOL(tegra_unpowergate_partition);
int tegra_cpu_powergate_id(int cpuid)
{
return ret;
#endif
}
+EXPORT_SYMBOL(tegra_powergate_partition);
int tegra_powergate_partition_with_clk_off(int id)
{
#ifdef CONFIG_SND_HDA_VPR
#include <linux/nvmap.h>
#endif
+#ifdef CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA
+#include <mach/powergate.h>
+#endif
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
{
int i;
+#ifdef CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA
+#if defined(CONFIG_ARCH_TEGRA_11x_SOC)
+ tegra_unpowergate_partition(TEGRA_POWERGATE_DISB);
+#endif
+#endif
+
for (i = 0; i < chip->platform_clk_count; i++)
clk_enable(chip->platform_clks[i]);
chip->platform_clk_enable++;
+
}
static void azx_platform_disable_clocks(struct azx *chip)
for (i = 0; i < chip->platform_clk_count; i++)
clk_disable(chip->platform_clks[i]);
+#ifdef CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA
+#if defined(CONFIG_ARCH_TEGRA_11x_SOC)
+ tegra_powergate_partition(TEGRA_POWERGATE_DISB);
+#endif
+#endif
+
chip->platform_clk_enable--;
}
#endif /* CONFIG_SND_HDA_PLATFORM_DRIVER */