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

clk: tegra: Add la clock for Tegra210

This clock is needed by the memory built-in self test work around.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Hector Martin <marcan@marcan.st>
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Peter De Schrijver and committed by
Thierry Reding
89e423c3 7928b2cb

+15 -1
+14
drivers/clk/tegra/clk-tegra210.c
··· 41 41 #define CLK_SOURCE_CSITE 0x1d4 42 42 #define CLK_SOURCE_EMC 0x19c 43 43 #define CLK_SOURCE_SOR1 0x410 44 + #define CLK_SOURCE_LA 0x1f8 44 45 45 46 #define PLLC_BASE 0x80 46 47 #define PLLC_OUT 0x84 ··· 2655 2654 sor1_parents_idx, 0, &sor1_lock), 2656 2655 }; 2657 2656 2657 + static const char * const la_parents[] = { 2658 + "pll_p", "pll_c2", "pll_c", "pll_c3", "pll_re_out1", "pll_a1", "clk_m", "pll_c4_out0" 2659 + }; 2660 + 2661 + static struct tegra_clk_periph tegra210_la = 2662 + TEGRA_CLK_PERIPH(29, 7, 9, 0, 8, 1, TEGRA_DIVIDER_ROUND_UP, 76, 0, NULL, 0); 2663 + 2658 2664 static __init void tegra210_periph_clk_init(void __iomem *clk_base, 2659 2665 void __iomem *pmc_base) 2660 2666 { ··· 2707 2699 clk_base, 0, 82, 2708 2700 periph_clk_enb_refcnt); 2709 2701 clks[TEGRA210_CLK_DSIB] = clk; 2702 + 2703 + /* la */ 2704 + clk = tegra_clk_register_periph("la", la_parents, 2705 + ARRAY_SIZE(la_parents), &tegra210_la, clk_base, 2706 + CLK_SOURCE_LA, 0); 2707 + clks[TEGRA210_CLK_LA] = clk; 2710 2708 2711 2709 /* emc mux */ 2712 2710 clk = clk_register_mux(NULL, "emc_mux", mux_pllmcp_clkm,
+1 -1
include/dt-bindings/clock/tegra210-car.h
··· 95 95 #define TEGRA210_CLK_CSITE 73 96 96 /* 74 */ 97 97 /* 75 */ 98 - /* 76 */ 98 + #define TEGRA210_CLK_LA 76 99 99 /* 77 */ 100 100 #define TEGRA210_CLK_SOC_THERM 78 101 101 #define TEGRA210_CLK_DTV 79