aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/rohm-bd718x7.c
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2019-05-21 20:41:12 +0000
committerLee Jones <lee.jones@linaro.org>2019-07-02 12:11:31 +0100
commit2a87f09020c0d35193c803c20dfdae6522b36d5e (patch)
treeb454a7965888f20715a4217bb802591625efcb15 /drivers/mfd/rohm-bd718x7.c
parentmfd: cros_ec: Register cros_ec_lid_angle driver when presented (diff)
downloadlinux-dev-2a87f09020c0d35193c803c20dfdae6522b36d5e.tar.xz
linux-dev-2a87f09020c0d35193c803c20dfdae6522b36d5e.zip
mfd: bd718x7: Remove hardcoded config for button press duration
The reset button on imx8mm-evk is tied to PWRON_B pin of bd71847 and the long press duration is set to zero from OTP. The linux driver overrides those values and breaks reset from button. Overwriting OTP or bootloader configuration with some hardcoded defaults is not desirable, keep already programmed values instead. Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Acked-By: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/rohm-bd718x7.c')
-rw-r--r--drivers/mfd/rohm-bd718x7.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/mfd/rohm-bd718x7.c b/drivers/mfd/rohm-bd718x7.c
index 7beb444a57cb..af91092c7fca 100644
--- a/drivers/mfd/rohm-bd718x7.c
+++ b/drivers/mfd/rohm-bd718x7.c
@@ -118,29 +118,6 @@ static int bd718xx_i2c_probe(struct i2c_client *i2c,
return ret;
}
- /* Configure short press to 10 milliseconds */
- ret = regmap_update_bits(bd718xx->chip.regmap,
- BD718XX_REG_PWRONCONFIG0,
- BD718XX_PWRBTN_PRESS_DURATION_MASK,
- BD718XX_PWRBTN_SHORT_PRESS_10MS);
- if (ret) {
- dev_err(&i2c->dev,
- "Failed to configure button short press timeout\n");
- return ret;
- }
-
- /* Configure long press to 10 seconds */
- ret = regmap_update_bits(bd718xx->chip.regmap,
- BD718XX_REG_PWRONCONFIG1,
- BD718XX_PWRBTN_PRESS_DURATION_MASK,
- BD718XX_PWRBTN_LONG_PRESS_10S);
-
- if (ret) {
- dev_err(&i2c->dev,
- "Failed to configure button long press timeout\n");
- return ret;
- }
-
ret = regmap_irq_get_virq(bd718xx->irq_data, BD718XX_INT_PWRBTN_S);
if (ret < 0) {