tspmic_settings.h 709 B

12345678910111213141516171819202122
  1. #include <mach/upmu_hw.h>
  2. #include <mach/mt_pmic_wrap.h>
  3. /* 2015.5.20 Jerry FIX_ME #include <mach/pmic_mt6331_6332_sw.h> */
  4. /* #include <mach/pmic_mt6325_sw.h> */
  5. #define mtktspmic_TEMP_CRIT 150000 /* 150.000 degree Celsius */
  6. #define y_pmic_repeat_times 1
  7. #define mtktspmic_info(fmt, args...) pr_debug("Power/PMIC_Thermal" fmt, ##args)
  8. #define mtktspmic_dprintk(fmt, args...) \
  9. do { \
  10. if (mtktspmic_debug_log) { \
  11. pr_debug("Power/PMIC_Thermal" fmt, ##args); \
  12. } \
  13. } while (0)
  14. extern int mtktspmic_debug_log;
  15. extern void mtktspmic_cali_prepare(void);
  16. extern void mtktspmic_cali_prepare2(void);
  17. extern int mtktspmic_get_hw_temp(void);
  18. extern u32 pmic_Read_Efuse_HPOffset(int i);