PD#SWPL-2909
Problem:
The gpu clock rate can not be changed.
Solution:
1.it called meson_init_gpu function which used by txlx
in txl clock driver, change it to meson_txl_gpu_init function.
2.the /sys/kernel/debug/aml_clk/clk_test node can not work
in txl platform, Initial value for clk_numbers which needed
by clk_test driver.
Verify:
test passed on P321
Change-Id: Iade63691edf5b39325f34abb4789d48d33339329
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
pr_err("%s: Unable to map clk base\n", __func__);
return;
}
-
/* Populate base address for PLLs */
for (i = 0; i < ARRAY_SIZE(txl_clk_plls); i++)
txl_clk_plls[i]->base = clk_base;
clk_data.clks = clks;
clk_data.clk_num = NR_CLKS;
+ clk_numbers = NR_CLKS;
/*register all clks*/
for (clkid = 0; clkid < CLOCK_GATE; clkid++) {
meson_txl_sdemmc_init();
meson_txl_media_init();
- meson_init_gpu();
+ meson_txl_gpu_init();
parent_hw = clk_hw_get_parent(&txl_cpu_clk.mux.hw);
parent_clk = parent_hw->clk;