diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2015-01-23 13:09:55 +0100 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2015-01-24 17:30:22 -0400 |
commit | f5576e3a9ea48334289aaaa711080d09e3405099 (patch) | |
tree | 085163e04edc3b8058774b0aff6b8cce221a09e3 /drivers/thermal | |
parent | afae144241a4fb7212e73e21f6c97e12922249ac (diff) | |
download | op-kernel-dev-f5576e3a9ea48334289aaaa711080d09e3405099.zip op-kernel-dev-f5576e3a9ea48334289aaaa711080d09e3405099.tar.gz |
thermal: exynos: Provide thermal_exynos.h file to be included in device tree files
This patch is a preparatory patch to be able to read Exynos thermal
configuration from the device tree.
It turned out that DTC is not able to interpret enums properly and hence
it is necessary to #define those values explicitly.
For this reason the ./include/dt-bindings/thermal/thermal_exynos.h file
has been introduced.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.h b/drivers/thermal/samsung/exynos_tmu.h index da3009b..7f880d2 100644 --- a/drivers/thermal/samsung/exynos_tmu.h +++ b/drivers/thermal/samsung/exynos_tmu.h @@ -26,14 +26,6 @@ #include "exynos_thermal_common.h" -enum calibration_type { - TYPE_ONE_POINT_TRIMMING, - TYPE_ONE_POINT_TRIMMING_25, - TYPE_ONE_POINT_TRIMMING_85, - TYPE_TWO_POINT_TRIMMING, - TYPE_NONE, -}; - enum soc_type { SOC_ARCH_EXYNOS3250 = 1, SOC_ARCH_EXYNOS4210, @@ -44,6 +36,7 @@ enum soc_type { SOC_ARCH_EXYNOS5420_TRIMINFO, SOC_ARCH_EXYNOS5440, }; +#include <dt-bindings/thermal/thermal_exynos.h> /** * struct exynos_tmu_platform_data @@ -115,8 +108,9 @@ struct exynos_tmu_platform_data { u8 second_point_trim; u8 default_temp_offset; - enum calibration_type cal_type; enum soc_type type; + u32 cal_type; + u32 cal_mode; struct freq_clip_table freq_tab[4]; unsigned int freq_tab_count; }; |