From 2b30154793de14153777aeae41fbdd0ed6971c27 Mon Sep 17 00:00:00 2001 From: Eunseok Choi Date: Fri, 17 Nov 2017 13:24:50 +0900 Subject: [PATCH] [9810] thermal: samsung: remove EVT0 dependent codes Revert "[9810] thermal: samsung: modify TMU calibration for NZVYT lot" Change-Id: Ie747f96b3c774d61154c6fceb1269de7130a61fa Signed-off-by: Eunseok Choi --- drivers/thermal/samsung/exynos_tmu.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index cafa8639cdd0..2294d7cb2c46 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #ifdef CONFIG_EXYNOS_MCINFO @@ -341,7 +340,6 @@ static void exynos_tmu_control(struct platform_device *pdev, bool on) static int exynos9810_tmu_initialize(struct platform_device *pdev) { -#define NZVYT_LOTID 0x152633 struct exynos_tmu_data *data = platform_get_drvdata(pdev); struct thermal_zone_device *tz = data->tzd; struct exynos_tmu_platform_data *pdata = data->pdata; @@ -356,9 +354,6 @@ static int exynos9810_tmu_initialize(struct platform_device *pdev) trim_info = readl(data->base + EXYNOS_TMU_REG_TRIMINFO(0)); cal_type = (trim_info >> EXYNOS_TMU_CALIB_SEL_SHIFT) & EXYNOS_TMU_CALIB_SEL_MASK; - if (exynos_soc_info.lot_id == NZVYT_LOTID) - cal_type = TYPE_ONE_POINT_TRIMMING; - for (sensor = 0; sensor < TOTAL_SENSORS; sensor++) { if (!(data->sensors & (1 << sensor))) @@ -369,9 +364,6 @@ static int exynos9810_tmu_initialize(struct platform_device *pdev) temp_error1 = trim_info & EXYNOS_TMU_TEMP_MASK; temp_error2 = (trim_info >> EXYNOS_TMU_TRIMINFO_85_P0_SHIFT) & EXYNOS_TMU_TEMP_MASK; - if (exynos_soc_info.lot_id == NZVYT_LOTID) - temp_error1 = (temp_error1 >> 3) | 0x100; - /* Save sensor id */ data->sensor_info[count].sensor_num = sensor; dev_info(&pdev->dev, "Sensor number = %d\n", sensor); -- 2.20.1