Commit 504e4175829c44328773b96ad9c538e4783a8d22
Committed by
Lee Jones
1 parent
ac4ca4b9f4
mfd: qcom_rpm: write fw_version to CTRL_REG
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>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
drivers/mfd/qcom_rpm.c
... | ... | @@ -638,6 +638,10 @@ |
638 | 638 | return -EFAULT; |
639 | 639 | } |
640 | 640 | |
641 | + writel(fw_version[0], RPM_CTRL_REG(rpm, 0)); | |
642 | + writel(fw_version[1], RPM_CTRL_REG(rpm, 1)); | |
643 | + writel(fw_version[2], RPM_CTRL_REG(rpm, 2)); | |
644 | + | |
641 | 645 | dev_info(&pdev->dev, "RPM firmware %u.%u.%u\n", fw_version[0], |
642 | 646 | fw_version[1], |
643 | 647 | fw_version[2]); |