smart_dimming.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef _SMART_DIMMING_H_
  2. #define _SMART_DIMMING_H_
  3. /* octa ldi */
  4. #define EVT0_K_fhd_REVB 0x00
  5. #define EVT0_K_fhd_REVF 0x01
  6. #define EVT0_K_fhd_REVG 0x02
  7. #define EVT1_K_fhd_REVH 0x12
  8. #define EVT1_K_fhd_REVI 0x13
  9. #define EVT0_K_wqhd_REVB 0x00
  10. #define EVT0_K_wqhd_REVC 0x01
  11. #define EVT0_K_wqhd_REVD 0x02
  12. #define EVT0_K_wqhd_REVE 0x03
  13. #define EVT0_K_wqhd_REVF 0x04
  14. #define EVT2_K_fhd_magna_REVA 0x50
  15. #define EVT2_K_fhd_magna_REVB 0x61
  16. #define EVT2_K_fhd_magna_REVC 0x72
  17. #define EVT0_S_hd_REVA 0x00
  18. #define EVT0_S_hd_REVC 0x01
  19. #define EVT1_S_hd_REVD 0x02
  20. #define EVT1_S_hd_REVF 0x03
  21. #define EVT1_S_hd_REVG 0x04
  22. struct smartdim_conf{
  23. void (*generate_gamma)(int cd, char *str);
  24. void (*get_min_lux_table)(char *str, int size);
  25. void (*init)(void);
  26. void (*print_aid_log)(void);
  27. char *mtp_buffer;
  28. int *lux_tab;
  29. int lux_tabsize;
  30. unsigned int man_id;
  31. };
  32. /* Define the smart dimming LDIs*/
  33. struct smartdim_conf *smart_S6E3_get_conf(void);
  34. struct smartdim_conf *smart_S6E8FA0_get_conf(void);
  35. struct smartdim_conf *smart_S6E3FA0_get_conf(void);
  36. struct smartdim_conf *smart_S6TNMR7_get_conf(void);
  37. struct smartdim_conf *smart_S6E3HA1_get_conf(void);
  38. #if defined(CONFIG_FB_MSM_MIPI_SAMSUNG_OCTA_VIDEO_WVGA_S6E88A0_PT_PANEL)
  39. struct smartdim_conf *smart_S6E88A0_get_conf(void);
  40. #endif
  41. #if defined(CONFIG_FB_MSM_MDSS_MAGNA_OCTA_VIDEO_720P_PT_PANEL)\
  42. || defined(CONFIG_FB_MSM_MDSS_SAMSUNG_OCTA_VIDEO_720P_PT_PANEL)
  43. struct smartdim_conf *smart_S6E8AA4_get_conf(void);
  44. #endif
  45. #if defined(CONFIG_FB_MSM_MIPI_MAGNA_OCTA_VIDEO_WXGA_PT_DUAL_PANEL)
  46. struct smartdim_conf *smart_S6E8FA0_get_conf_main(void);
  47. struct smartdim_conf *smart_S6E8FA0_get_conf_sub(void);
  48. #endif
  49. #if defined(CONFIG_LCD_HMT)
  50. struct smartdim_conf_hmt {
  51. void (*generate_gamma)(int cd, char *str, int dual);
  52. void (*get_min_lux_table)(char *str, int size);
  53. void (*init)(int dual);
  54. void (*print_aid_log)(void);
  55. char *mtp_buffer;
  56. int *lux_tab;
  57. int lux_tabsize;
  58. unsigned int man_id;
  59. };
  60. struct smartdim_conf_hmt *smart_S6E3_get_conf_hmt(int dual);
  61. #endif
  62. #endif /* _SMART_DIMMING_H_ */