From 897ebf670ee0a348975e9aed79e3f92d95fd3e61 Mon Sep 17 00:00:00 2001 From: Tatenda Chipeperekwa Date: Fri, 21 Feb 2020 15:11:58 -0800 Subject: [PATCH] clk: qcom: update the DisplayPort clocks Update the frequencies of the clocks from Hz to KHz so that they match the frequencies requested by the DisplayPort driver. This ensures that the clock framework correctly scales parent clock values for all DisplayPort clock requests. Change-Id: I46be984340902f1facba59ad966e0f2ad1b1b006 Signed-off-by: Tatenda Chipeperekwa --- drivers/clk/qcom/dispcc-lahaina.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/clk/qcom/dispcc-lahaina.c b/drivers/clk/qcom/dispcc-lahaina.c index eb9b6ee4dbbc..f71a1e7098a0 100644 --- a/drivers/clk/qcom/dispcc-lahaina.c +++ b/drivers/clk/qcom/dispcc-lahaina.c @@ -410,9 +410,9 @@ static struct clk_rcg2 disp_cc_mdss_dp_link1_clk_src = { .vdd_class = &vdd_mm, .num_rate_max = VDD_NUM, .rate_max = (unsigned long[VDD_NUM]) { - [VDD_LOWER] = 270000000, - [VDD_LOW_L1] = 540000000, - [VDD_NOMINAL] = 810000000}, + [VDD_LOWER] = 270000, + [VDD_LOW_L1] = 540000, + [VDD_NOMINAL] = 810000}, }, }; @@ -433,9 +433,9 @@ static struct clk_rcg2 disp_cc_mdss_dp_link_clk_src = { .vdd_class = &vdd_mm, .num_rate_max = VDD_NUM, .rate_max = (unsigned long[VDD_NUM]) { - [VDD_LOWER] = 270000000, - [VDD_LOW_L1] = 540000000, - [VDD_NOMINAL] = 810000000}, + [VDD_LOWER] = 270000, + [VDD_LOW_L1] = 540000, + [VDD_NOMINAL] = 810000}, }, }; @@ -456,8 +456,8 @@ static struct clk_rcg2 disp_cc_mdss_dp_pixel1_clk_src = { .vdd_class = &vdd_mm, .num_rate_max = VDD_NUM, .rate_max = (unsigned long[VDD_NUM]) { - [VDD_LOWER] = 337500000, - [VDD_NOMINAL] = 675000000}, + [VDD_LOWER] = 337500, + [VDD_NOMINAL] = 675000}, }, }; @@ -478,8 +478,8 @@ static struct clk_rcg2 disp_cc_mdss_dp_pixel2_clk_src = { .vdd_class = &vdd_mm, .num_rate_max = VDD_NUM, .rate_max = (unsigned long[VDD_NUM]) { - [VDD_LOWER] = 337500000, - [VDD_NOMINAL] = 675000000}, + [VDD_LOWER] = 337500, + [VDD_NOMINAL] = 675000}, }, }; @@ -500,8 +500,8 @@ static struct clk_rcg2 disp_cc_mdss_dp_pixel_clk_src = { .vdd_class = &vdd_mm, .num_rate_max = VDD_NUM, .rate_max = (unsigned long[VDD_NUM]) { - [VDD_LOWER] = 337500000, - [VDD_NOMINAL] = 675000000}, + [VDD_LOWER] = 337500, + [VDD_NOMINAL] = 675000}, }, };