]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: bd718x7: Make power button press duration configurable
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 21 May 2019 20:41:14 +0000 (20:41 +0000)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
commite0039783d2dc9e9e2a3af3bd894abe914cf9b939
tree115e02c15074a3738b5cb14b6c5ce7854140fa6d
parentcd596157ff7f0a7c13975f51c559b5721e072304
mfd: bd718x7: Make power button press duration configurable

Allow overwriting the values in BD718XX_REG_PWRONCONFIG0 and
BD718XX_REG_PWRONCONFIG1 via devicetree. Read values in milliseconds and
attempt to round them to something supported by the hardware.

Keep existing values (from bootloader or OTP) if property is not
present.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-By: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
[Lee: Fixed-up merge/API conflict]
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rohm-bd718x7.c