Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cdc5a5b authored by Taniya Das's avatar Taniya Das
Browse files

clk: qcom: lagoon: Update CAL_L values for Fabia PLLs



Update the cal_l values of the PLL to use the user specified value
rather than the fixed 0x3f value. These are as per the HW
recommendations.

Change-Id: I39bbe08edbced474f65a6d34c465f4fec9250772
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent def31195
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -179,6 +179,7 @@ static struct pll_vco fabia_vco[] = {
/* 600MHz configuration */
static const struct alpha_pll_config cam_cc_pll0_config = {
	.l = 0x1F,
	.cal_l = 0x22,
	.alpha = 0x4000,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,
@@ -234,6 +235,7 @@ static struct clk_alpha_pll_postdiv cam_cc_pll0_out_even = {
/* 808MHz configuration */
static const struct alpha_pll_config cam_cc_pll1_config = {
	.l = 0x2A,
	.cal_l = 0x2C,
	.alpha = 0x1555,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,
@@ -357,6 +359,7 @@ static struct clk_alpha_pll_postdiv cam_cc_pll2_out_main = {
/* 384MHz configuration */
static const struct alpha_pll_config cam_cc_pll3_config = {
	.l = 0x14,
	.cal_l = 0x16,
	.alpha = 0x0,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ static struct pll_vco fabia_vco[] = {

static const struct alpha_pll_config disp_cc_pll0_config = {
	.l = 0x3A,
	.cal_l = 0x3F,
	.cal_l = 0x31,
	.alpha = 0x5555,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ static struct clk_fixed_factor crc_div = {
/* 514MHz Configuration*/
static const struct alpha_pll_config gpu_cc_pll1_config = {
	.l = 0x1A,
	.cal_l = 0x3F,
	.cal_l = 0x3D,
	.alpha = 0xC555,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,
+3 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ static struct pll_vco fabia_vco[] = {
/* 537.60MHz Configuration */
static struct alpha_pll_config npu_cc_pll0_config = {
	.l = 0x1C,
	.cal_l = 0x3F,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,
	.test_ctl_val = 0x40000000,
@@ -147,6 +148,7 @@ static struct clk_alpha_pll npu_cc_pll0 = {
/* 300MHz Configuration */
static struct alpha_pll_config npu_cc_pll1_config = {
	.l = 0xF,
	.cal_l = 0x33,
	.alpha = 0xA000,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,
@@ -182,6 +184,7 @@ static struct clk_alpha_pll npu_cc_pll1 = {
/* 250MHz Configuration */
static struct alpha_pll_config npu_q6ss_pll_config = {
	.l = 0xD,
	.cal_l = 0x1E,
	.alpha = 0x555,
	.config_ctl_val = 0x20485699,
	.config_ctl_hi_val = 0x00002067,