Commit e1106d62 authored by Svyatoslav Ryhel's avatar Svyatoslav Ryhel Committed by Linus Walleij
Browse files

pinctrl: tegra20: register csus_mux clock



Add csus_mux for further use as the csus clock parent, similar to how the
cdev1 and cdev2 muxes are utilized. Additionally, constify the cdev parent
name lists to resolve checkpatch warnings.

Signed-off-by: default avatarSvyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 005a3254
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2222,14 +2222,18 @@ static const struct tegra_pinctrl_soc_data tegra20_pinctrl = {
	.drvtype_in_mux = false,
};

static const char *cdev1_parents[] = {
static const char * const cdev1_parents[] = {
	"dev1_osc_div", "pll_a_out0", "pll_m_out1", "audio",
};

static const char *cdev2_parents[] = {
static const char * const cdev2_parents[] = {
	"dev2_osc_div", "hclk", "pclk", "pll_p_out4",
};

static const char * const csus_parents[] = {
	"pll_c_out1", "pll_p_out2", "pll_p_out3", "vi_sensor",
};

static void tegra20_pinctrl_register_clock_muxes(struct platform_device *pdev)
{
	struct tegra_pmx *pmx = platform_get_drvdata(pdev);
@@ -2239,6 +2243,9 @@ static void tegra20_pinctrl_register_clock_muxes(struct platform_device *pdev)

	clk_register_mux(NULL, "cdev2_mux", cdev2_parents, 4, 0,
			 pmx->regs[1] + 0x8, 4, 2, CLK_MUX_READ_ONLY, NULL);

	clk_register_mux(NULL, "csus_mux", csus_parents, 4, 0,
			 pmx->regs[1] + 0x8, 6, 2, CLK_MUX_READ_ONLY, NULL);
}

static int tegra20_pinctrl_probe(struct platform_device *pdev)