Lines Matching defs:info

107 static int get_cur_temp(struct tmu_info *info)
109 struct exynos5_tmu_reg *reg = info->tmu_base;
118 if (info->tmu_state == TMU_STATUS_NORMAL) {
129 cur_temp = cur_temp - info->te1 + info->dc_value;
178 * @param info pointer to the tmu_info struct
182 static int get_tmu_fdt_values(struct tmu_info *info, const void *blob)
208 info->tmu_base = (struct exynos5_tmu_reg *)addr;
211 info->tmu_mux = fdtdec_get_int(blob,
214 if (info->tmu_mux == -1)
215 info->tmu_mux = 0x6;
217 info->data.ts.min_val = fdtdec_get_int(blob,
219 error |= (info->data.ts.min_val == -1);
220 info->data.ts.max_val = fdtdec_get_int(blob,
222 error |= (info->data.ts.max_val == -1);
223 info->data.ts.start_warning = fdtdec_get_int(blob,
225 error |= (info->data.ts.start_warning == -1);
226 info->data.ts.start_tripping = fdtdec_get_int(blob,
228 error |= (info->data.ts.start_tripping == -1);
229 info->data.ts.hardware_tripping = fdtdec_get_int(blob,
231 error |= (info->data.ts.hardware_tripping == -1);
232 info->data.efuse_min_value = fdtdec_get_int(blob,
234 error |= (info->data.efuse_min_value == -1);
235 info->data.efuse_value = fdtdec_get_int(blob,
237 error |= (info->data.efuse_value == -1);
238 info->data.efuse_max_value = fdtdec_get_int(blob,
240 error |= (info->data.efuse_max_value == -1);
241 info->data.slope = fdtdec_get_int(blob,
243 error |= (info->data.slope == -1);
244 info->dc_value = fdtdec_get_int(blob,
246 error |= (info->dc_value == -1);
264 * @param info pointer to the tmu_info struct
266 static void tmu_setup_parameters(struct tmu_info *info)
272 struct tmu_data *data = &info->data;
273 struct exynos5_tmu_reg *reg = info->tmu_base;
280 info->te1 = te_code & TRIM_INFO_MASK;
281 info->te2 = ((te_code >> 8) & TRIM_INFO_MASK);
283 if ((data->efuse_min_value > info->te1) ||
284 (info->te1 > data->efuse_max_value)
285 || (info->te2 != 0))
286 info->te1 = data->efuse_value;
290 + info->te1 - info->dc_value;
292 + info->te1 - info->dc_value;
294 + info->te1 - info->dc_value;
320 con |= THERM_TRIP_EN | CORE_EN | (info->tmu_mux << 20);