diff options
author | J Keerthy <j-keerthy@ti.com> | 2013-04-01 16:04:43 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-01 19:27:30 (GMT) |
commit | 07a7fb648f7fad2c16d28b1a8e8e773aa16e1b90 (patch) | |
tree | b950006ddee57bc70b4b87c8da504f447d5145e0 | |
parent | 58bccd073b818aa286b361c161146f393d378d83 (diff) | |
download | linux-fsl-qoriq-07a7fb648f7fad2c16d28b1a8e8e773aa16e1b90.tar.xz |
staging: ti-soc-thermal: Introduce HAS_HISTORY_BUFFER feature for bandgap
The patch introduces HISTORY_BUFFER feature. This is present in OMAP5 bandgap
and it is a hardware history buffer of previously read temperatures.
Signed-off-by: J Keerthy <j-keerthy@ti.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ti-soc-thermal/ti-bandgap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.h b/drivers/staging/ti-soc-thermal/ti-bandgap.h index 8ee4857..e29e357 100644 --- a/drivers/staging/ti-soc-thermal/ti-bandgap.h +++ b/drivers/staging/ti-soc-thermal/ti-bandgap.h @@ -315,6 +315,9 @@ struct ti_temp_sensor { * TI_BANDGAP_FEATURE_COUNTER_DELAY - used when the bandgap device features * a delay programming based on distinct values. * + * TI_BANDGAP_FEATURE_HISTORY_BUFFER - used when the bandgap device features + * a history buffer of temperatures. + * * 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. */ @@ -327,6 +330,7 @@ struct ti_temp_sensor { #define TI_BANDGAP_FEATURE_CLK_CTRL BIT(6) #define TI_BANDGAP_FEATURE_FREEZE_BIT BIT(7) #define TI_BANDGAP_FEATURE_COUNTER_DELAY BIT(8) +#define TI_BANDGAP_FEATURE_HISTORY_BUFFER BIT(9) #define TI_BANDGAP_HAS(b, f) \ ((b)->conf->features & TI_BANDGAP_FEATURE_ ## f) |