mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
clk: qcom: clk-alpha-pll: add additional configuration support for PLLs
Add support to configure cal_l fields for PLLs. Change-Id: Ib5a7a74aecd8d9885e0a3034f097c13cda4d2268 Signed-off-by: David Dai <daidavid1@codeaurora.org> Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
This commit is contained in:
parent
4297f2dcbe
commit
6e0b4c6522
|
|
@ -1439,7 +1439,12 @@ void clk_trion_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
|
|||
}
|
||||
|
||||
clk_alpha_pll_write_config(regmap, PLL_L_VAL(pll), config->l);
|
||||
regmap_write(regmap, PLL_CAL_L_VAL(pll), TRION_PLL_CAL_VAL);
|
||||
|
||||
if (config->cal_l)
|
||||
regmap_write(regmap, PLL_CAL_L_VAL(pll), config->cal_l);
|
||||
else
|
||||
regmap_write(regmap, PLL_CAL_L_VAL(pll), TRION_PLL_CAL_VAL);
|
||||
|
||||
clk_alpha_pll_write_config(regmap, PLL_ALPHA_VAL(pll), config->alpha);
|
||||
clk_alpha_pll_write_config(regmap, PLL_CONFIG_CTL(pll),
|
||||
config->config_ctl_val);
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ struct clk_alpha_pll_postdiv {
|
|||
|
||||
struct alpha_pll_config {
|
||||
u32 l;
|
||||
u32 cal_l;
|
||||
u32 alpha;
|
||||
u32 alpha_hi;
|
||||
u32 config_ctl_val;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user