diff options
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu.c | 5 | ||||
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu.h | 2 | ||||
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu_data.c | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 65eeeccff78b..2fcb4cdf8532 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c | |||
@@ -193,8 +193,9 @@ static u32 get_con_reg(struct exynos_tmu_data *data, u32 con) | |||
193 | { | 193 | { |
194 | struct exynos_tmu_platform_data *pdata = data->pdata; | 194 | struct exynos_tmu_platform_data *pdata = data->pdata; |
195 | 195 | ||
196 | if (pdata->test_mux) | 196 | if (data->soc == SOC_ARCH_EXYNOS4412 || |
197 | con |= (pdata->test_mux << EXYNOS4412_MUX_ADDR_SHIFT); | 197 | data->soc == SOC_ARCH_EXYNOS3250) |
198 | con |= (EXYNOS4412_MUX_ADDR_VALUE << EXYNOS4412_MUX_ADDR_SHIFT); | ||
198 | 199 | ||
199 | con &= ~(EXYNOS_TMU_REF_VOLTAGE_MASK << EXYNOS_TMU_REF_VOLTAGE_SHIFT); | 200 | con &= ~(EXYNOS_TMU_REF_VOLTAGE_MASK << EXYNOS_TMU_REF_VOLTAGE_SHIFT); |
200 | con |= pdata->reference_voltage << EXYNOS_TMU_REF_VOLTAGE_SHIFT; | 201 | con |= pdata->reference_voltage << EXYNOS_TMU_REF_VOLTAGE_SHIFT; |
diff --git a/drivers/thermal/samsung/exynos_tmu.h b/drivers/thermal/samsung/exynos_tmu.h index 2eb4cb96f28f..8de0f8254947 100644 --- a/drivers/thermal/samsung/exynos_tmu.h +++ b/drivers/thermal/samsung/exynos_tmu.h | |||
@@ -89,7 +89,6 @@ enum soc_type { | |||
89 | * @first_point_trim: temp value of the first point trimming | 89 | * @first_point_trim: temp value of the first point trimming |
90 | * @second_point_trim: temp value of the second point trimming | 90 | * @second_point_trim: temp value of the second point trimming |
91 | * @default_temp_offset: default temperature offset in case of no trimming | 91 | * @default_temp_offset: default temperature offset in case of no trimming |
92 | * @test_mux; information if SoC supports test MUX | ||
93 | * @cal_type: calibration type for temperature | 92 | * @cal_type: calibration type for temperature |
94 | * @freq_clip_table: Table representing frequency reduction percentage. | 93 | * @freq_clip_table: Table representing frequency reduction percentage. |
95 | * @freq_tab_count: Count of the above table as frequency reduction may | 94 | * @freq_tab_count: Count of the above table as frequency reduction may |
@@ -115,7 +114,6 @@ struct exynos_tmu_platform_data { | |||
115 | u8 first_point_trim; | 114 | u8 first_point_trim; |
116 | u8 second_point_trim; | 115 | u8 second_point_trim; |
117 | u8 default_temp_offset; | 116 | u8 default_temp_offset; |
118 | u8 test_mux; | ||
119 | 117 | ||
120 | enum calibration_type cal_type; | 118 | enum calibration_type cal_type; |
121 | enum soc_type type; | 119 | enum soc_type type; |
diff --git a/drivers/thermal/samsung/exynos_tmu_data.c b/drivers/thermal/samsung/exynos_tmu_data.c index d90b050a7ceb..708c3e146e89 100644 --- a/drivers/thermal/samsung/exynos_tmu_data.c +++ b/drivers/thermal/samsung/exynos_tmu_data.c | |||
@@ -109,7 +109,6 @@ struct exynos_tmu_init_data const exynos3250_default_tmu_data = { | |||
109 | { | 109 | { |
110 | EXYNOS3250_TMU_DATA, | 110 | EXYNOS3250_TMU_DATA, |
111 | .type = SOC_ARCH_EXYNOS3250, | 111 | .type = SOC_ARCH_EXYNOS3250, |
112 | .test_mux = EXYNOS4412_MUX_ADDR_VALUE, | ||
113 | }, | 112 | }, |
114 | }, | 113 | }, |
115 | .tmu_count = 1, | 114 | .tmu_count = 1, |
@@ -160,7 +159,6 @@ struct exynos_tmu_init_data const exynos4412_default_tmu_data = { | |||
160 | { | 159 | { |
161 | EXYNOS4412_TMU_DATA, | 160 | EXYNOS4412_TMU_DATA, |
162 | .type = SOC_ARCH_EXYNOS4412, | 161 | .type = SOC_ARCH_EXYNOS4412, |
163 | .test_mux = EXYNOS4412_MUX_ADDR_VALUE, | ||
164 | }, | 162 | }, |
165 | }, | 163 | }, |
166 | .tmu_count = 1, | 164 | .tmu_count = 1, |