[9810] thermal: samsung: remove EVT0 dependent codes
authorEunseok Choi <es10.choi@samsung.com>
Fri, 17 Nov 2017 04:24:50 +0000 (13:24 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:22:06 +0000 (17:22 +0900)
Revert "[9810] thermal: samsung: modify TMU calibration for NZVYT lot"

Change-Id: Ie747f96b3c774d61154c6fceb1269de7130a61fa
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index cafa8639cdd06c6dad02b6f8bca0ee7b75423012..2294d7cb2c46f30aaa2bebae4f476ae4598e49bb 100644 (file)
@@ -43,7 +43,6 @@
 #include <linux/slab.h>
 #include <linux/debugfs.h>
 #include <linux/exynos-ss.h>
-#include <linux/soc/samsung/exynos-soc.h>
 #include <soc/samsung/tmu.h>
 #include <soc/samsung/ect_parser.h>
 #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);