Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ff027f1 authored by J Keerthy's avatar J Keerthy Committed by Greg Kroah-Hartman
Browse files

staging: ti-soc-thermal: Introduce HAS_COUNTER_DELAY feature for bandgap



Introduce HAS_COUNTER_DELAY feature for bandgap.

Signed-off-by: default avatarJ Keerthy <j-keerthy@ti.com>
Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8b6ecd35
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -312,6 +312,9 @@ struct ti_temp_sensor {
 * TI_BANDGAP_FEATURE_FREEZE_BIT - used when the bandgap device features
 * TI_BANDGAP_FEATURE_FREEZE_BIT - used when the bandgap device features
 *      a history buffer that its update can be freezed/unfreezed.
 *      a history buffer that its update can be freezed/unfreezed.
 *
 *
 * TI_BANDGAP_FEATURE_COUNTER_DELAY - used when the bandgap device features
 *	a delay programming based on distinct values.
 *
 * TI_BANDGAP_HAS(b, f) - macro to check if a bandgap device is capable of a
 * TI_BANDGAP_HAS(b, f) - macro to check if a bandgap device is capable of a
 *      specific feature (above) or not. Return non-zero, if yes.
 *      specific feature (above) or not. Return non-zero, if yes.
 */
 */
@@ -323,6 +326,7 @@ struct ti_temp_sensor {
#define TI_BANDGAP_FEATURE_POWER_SWITCH		BIT(5)
#define TI_BANDGAP_FEATURE_POWER_SWITCH		BIT(5)
#define TI_BANDGAP_FEATURE_CLK_CTRL		BIT(6)
#define TI_BANDGAP_FEATURE_CLK_CTRL		BIT(6)
#define TI_BANDGAP_FEATURE_FREEZE_BIT		BIT(7)
#define TI_BANDGAP_FEATURE_FREEZE_BIT		BIT(7)
#define TI_BANDGAP_FEATURE_COUNTER_DELAY	BIT(8)
#define TI_BANDGAP_HAS(b, f)			\
#define TI_BANDGAP_HAS(b, f)			\
			((b)->conf->features & TI_BANDGAP_FEATURE_ ## f)
			((b)->conf->features & TI_BANDGAP_FEATURE_ ## f)