Skip to content

Commit c13636b

Browse files
tmlinddlezcano
authored andcommitted
thermal: ti-soc-thermal: Use non-inverted define for omap4
When we set bit 10 high we use continuous mode and not single mode. Let's correct this to avoid confusion. No functional changes here, the code does the right thing with bit 10. Cc: Adam Ford <[email protected]> Cc: Carl Philipp Klemm <[email protected]> Cc: Eduardo Valentin <[email protected]> Cc: H. Nikolaus Schaller <[email protected]> Cc: Merlijn Wajer <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Peter Ujfalusi <[email protected]> Cc: Sebastian Reichel <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Tested-by: Adam Ford <[email protected]> #logicpd-torpedo-37xx-devkit Acked-by: Pavel Machek <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 514cbab commit c13636b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/thermal/ti-soc-thermal/omap4-thermal-data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ omap4430_mpu_temp_sensor_registers = {
2424
.bgap_dtemp_mask = OMAP4430_BGAP_TEMP_SENSOR_DTEMP_MASK,
2525

2626
.bgap_mode_ctrl = OMAP4430_TEMP_SENSOR_CTRL_OFFSET,
27-
.mode_ctrl_mask = OMAP4430_SINGLE_MODE_MASK,
27+
.mode_ctrl_mask = OMAP4430_CONTINUOUS_MODE_MASK,
2828

2929
.bgap_efuse = OMAP4430_FUSE_OPP_BGAP,
3030
};
@@ -97,7 +97,7 @@ omap4460_mpu_temp_sensor_registers = {
9797
.mask_cold_mask = OMAP4460_MASK_COLD_MASK,
9898

9999
.bgap_mode_ctrl = OMAP4460_BGAP_CTRL_OFFSET,
100-
.mode_ctrl_mask = OMAP4460_SINGLE_MODE_MASK,
100+
.mode_ctrl_mask = OMAP4460_CONTINUOUS_MODE_MASK,
101101

102102
.bgap_counter = OMAP4460_BGAP_COUNTER_OFFSET,
103103
.counter_mask = OMAP4460_COUNTER_MASK,

drivers/thermal/ti-soc-thermal/omap4xxx-bandgap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* OMAP4430.TEMP_SENSOR bits */
4141
#define OMAP4430_BGAP_TEMPSOFF_MASK BIT(12)
4242
#define OMAP4430_BGAP_TSHUT_MASK BIT(11)
43-
#define OMAP4430_SINGLE_MODE_MASK BIT(10)
43+
#define OMAP4430_CONTINUOUS_MODE_MASK BIT(10)
4444
#define OMAP4430_BGAP_TEMP_SENSOR_SOC_MASK BIT(9)
4545
#define OMAP4430_BGAP_TEMP_SENSOR_EOCZ_MASK BIT(8)
4646
#define OMAP4430_BGAP_TEMP_SENSOR_DTEMP_MASK (0xff << 0)
@@ -113,7 +113,7 @@
113113
#define OMAP4460_BGAP_TEMP_SENSOR_DTEMP_MASK (0x3ff << 0)
114114

115115
/* OMAP4460.BANDGAP_CTRL bits */
116-
#define OMAP4460_SINGLE_MODE_MASK BIT(31)
116+
#define OMAP4460_CONTINUOUS_MODE_MASK BIT(31)
117117
#define OMAP4460_MASK_HOT_MASK BIT(1)
118118
#define OMAP4460_MASK_COLD_MASK BIT(0)
119119

0 commit comments

Comments
 (0)