Attention is currently required from: Shelley Chen, Ravi kumar, Taniya Das, mturney mturney.

mturney mturney uploaded patch set #4 to the change originally created by Ravi kumar.

View Change

qualcomm/sc7180: Cleanups for drivers with common clock

As we move to use the common clock driver, the sc7180 clock driver,
watchdog and display drivers requires few cleanups, thus update the
impacted drivers.

Earlier the display client is expected to provide 2n divider value,
as the divider value in register is in form "2n-1".
mdss_clk_cfg.div = half_divider ? (half_divider - 1) : 0;

The older convention in the upcoming patches would be replaced with the
common macro of QCOM_CLOCK_DIV, thus need the divider needs to be updated.
mdss_clk_cfg.div = half_divider ? QCOM_CLOCK_DIV(half_divider) : 0;

To accommodate impacting the functionality, the half_divider is taken
care in the clock driver.

BUG=b:182963902
TEST=Validated on qualcomm sc7180 development board

Change-Id: Ic334fd0d43e5b4b1e43a27d5db7665f0bc151d66
Signed-off-by: Taniya Das <tdas@codeaurora.org>
---
M src/soc/qualcomm/sc7180/clock.c
M src/soc/qualcomm/sc7180/display/dsi_phy.c
M src/soc/qualcomm/sc7180/include/soc/clock.h
M src/soc/qualcomm/sc7180/watchdog.c
4 files changed, 65 insertions(+), 58 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/56587/4

To view, visit change 56587. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic334fd0d43e5b4b1e43a27d5db7665f0bc151d66
Gerrit-Change-Number: 56587
Gerrit-PatchSet: 4
Gerrit-Owner: Ravi kumar <rbokka@codeaurora.org>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: Shelley Chen <shchen@google.com>
Gerrit-Reviewer: Taniya Das <tdas@codeaurora.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: mturney mturney <mturney@codeaurora.org>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-CC: Ravi Kumar Bokka <c_rbokka@qualcomm.corp-partner.google.com>
Gerrit-Attention: Shelley Chen <shchen@google.com>
Gerrit-Attention: Ravi kumar <rbokka@codeaurora.org>
Gerrit-Attention: Taniya Das <tdas@codeaurora.org>
Gerrit-Attention: mturney mturney <mturney@codeaurora.org>
Gerrit-MessageType: newpatchset