mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
input: qcom-hv-haptics: enable SW_CTRL_HBST workarounds for PM8550B V1
Enable SW_CTRL_HBST workarounds for haptics module in PM8550B V1 silicon in which the HAPTICS_BOOST module is having digital revision as V0.1. Change-Id: Ida824ae0846cef1e2be6adade0f3b4ac2461bf06 Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
This commit is contained in:
parent
8ed2d0ed39
commit
eeca4b54e1
|
|
@ -257,6 +257,7 @@
|
|||
#define HAP_BOOST_REVISION2 0x01
|
||||
#define HAP_BOOST_V0P0 0x0000
|
||||
#define HAP_BOOST_V0P1 0x0001
|
||||
#define HAP_BOOST_V0P2 0x0002
|
||||
|
||||
#define HAP_BOOST_STATUS4_REG 0x0B
|
||||
#define BOOST_DTEST1_STATUS_BIT BIT(0)
|
||||
|
|
@ -2912,7 +2913,10 @@ static int haptics_config_wa(struct haptics_chip *chip)
|
|||
TOGGLE_EN_TO_FLUSH_FIFO | RECOVER_SWR_SLAVE;
|
||||
break;
|
||||
case HAP520_MV:
|
||||
break;
|
||||
case HAP525_HV:
|
||||
if (chip->hbst_revision == HAP_BOOST_V0P1)
|
||||
chip->wa_flags |= SW_CTRL_HBST;
|
||||
break;
|
||||
default:
|
||||
dev_err(chip->dev, "HW type %d does not match\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user