Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Svyatoslav Ryhel and committed by
Linus Walleij
e1106d62 005a3254

+9 -2
+9 -2
drivers/pinctrl/tegra/pinctrl-tegra20.c
··· 2222 2222 .drvtype_in_mux = false, 2223 2223 }; 2224 2224 2225 - static const char *cdev1_parents[] = { 2225 + static const char * const cdev1_parents[] = { 2226 2226 "dev1_osc_div", "pll_a_out0", "pll_m_out1", "audio", 2227 2227 }; 2228 2228 2229 - static const char *cdev2_parents[] = { 2229 + static const char * const cdev2_parents[] = { 2230 2230 "dev2_osc_div", "hclk", "pclk", "pll_p_out4", 2231 + }; 2232 + 2233 + static const char * const csus_parents[] = { 2234 + "pll_c_out1", "pll_p_out2", "pll_p_out3", "vi_sensor", 2231 2235 }; 2232 2236 2233 2237 static void tegra20_pinctrl_register_clock_muxes(struct platform_device *pdev) ··· 2243 2239 2244 2240 clk_register_mux(NULL, "cdev2_mux", cdev2_parents, 4, 0, 2245 2241 pmx->regs[1] + 0x8, 4, 2, CLK_MUX_READ_ONLY, NULL); 2242 + 2243 + clk_register_mux(NULL, "csus_mux", csus_parents, 4, 0, 2244 + pmx->regs[1] + 0x8, 6, 2, CLK_MUX_READ_ONLY, NULL); 2246 2245 } 2247 2246 2248 2247 static int tegra20_pinctrl_probe(struct platform_device *pdev)