Skip to content

Commit

Permalink
mfd: qcom_rpm: write fw_version to CTRL_REG
Browse files Browse the repository at this point in the history
This is required as part of the initialization sequence on certain SoCs.

If these registers are not initialized, the hardware can be unresponsive.
This fixes the driver on apq8060 (HP TouchPad device).

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Jonathan Marek authored and Lee Jones committed Jan 3, 2019
1 parent ac4ca4b commit 504e417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mfd/qcom_rpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,10 @@ static int qcom_rpm_probe(struct platform_device *pdev)
return -EFAULT;
}

writel(fw_version[0], RPM_CTRL_REG(rpm, 0));
writel(fw_version[1], RPM_CTRL_REG(rpm, 1));
writel(fw_version[2], RPM_CTRL_REG(rpm, 2));

dev_info(&pdev->dev, "RPM firmware %u.%u.%u\n", fw_version[0],
fw_version[1],
fw_version[2]);
Expand Down

0 comments on commit 504e417

Please sign in to comment.