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:
David Dai 2018-10-11 14:19:08 -07:00 committed by Mike Tipton
parent 4297f2dcbe
commit 6e0b4c6522
2 changed files with 7 additions and 1 deletions

View File

@ -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);

View File

@ -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;