thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals
authorDavid Collins <collinsd@codeaurora.org>
Thu, 24 May 2018 07:19:02 +0000 (12:49 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 1 Jun 2018 21:22:28 +0000 (14:22 -0700)
commit10c8251cce3380823c755a63f97cca432fcc4aec
treeea005414c14128756e3c7366088f2dc384d41308
parentd86910b9141e16f2bbe38e53429f63f13569624b
thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals

Add support for the TEMP_ALARM GEN2 PMIC peripheral subtype.  The
GEN2 subtype defines an over temperature state with hysteresis
instead of stage in the status register.  There are two GEN2
states corresponding to stages 1 and 2.

Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom-spmi-temp-alarm.c