]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: da9063: Add support for OnKey driver
authorSteve Twiss <stwiss.opensource@diasemi.com>
Tue, 19 May 2015 10:32:45 +0000 (11:32 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 22 Jun 2015 11:25:20 +0000 (12:25 +0100)
commit9011e4a8a6fe57f76511609930ed00d305389089
tree15c42a2f5e7fc9cbb05dc6db239d196b8f90dbd4
parente2ae0fbc738fa207cfb712657d339a1863c6bd3e
mfd: da9063: Add support for OnKey driver

Add MFD support for the DA9063 OnKey driver

The function da9063_clear_fault_log() is added to mitigate the case of a
hardware power-cut after a long-long OnKey press. Although there is no
software intervention in this case (by definition) such a shutdown would
cause persistent information within the DA9063 FAULT_LOG that would be
available during the next device restart.

Clearance of this persistent register must be completed after such a
hardware power-cut operation has happened so that the FAULT_LOG does not
continue with previous values. The clearance function has been added here
in the kernel driver because wiping the fault-log cannot be counted on
outside the Linux kernel.

Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
[Lee: Removed 'key_power' for Dmitry to take through the Input Tree]
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9063-core.c