mdss_hx8394c_panel.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* Copyright (c) 2008-2013, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef MDSS_HX8394C_PANEL_H
  14. #define MDSS_HX8394C_PANEL_H
  15. #include "mdss_panel.h"
  16. #define MAX_BRIGHTNESS_LEVEL 255
  17. #define MID_BRIGHTNESS_LEVEL 143
  18. #define LOW_BRIGHTNESS_LEVEL 20
  19. #define DIM_BRIGHTNESS_LEVEL 30
  20. #define MAX_BRIGHTNESS_IN_BLU 32
  21. #define BL_MIN_BRIGHTNESS 4
  22. #define BL_MAX_BRIGHTNESS_LEVEL 255
  23. #define BL_MID_BRIGHTNESS_LEVEL 130
  24. #define BL_LOW_BRIGHTNESS_LEVEL 7
  25. #define BL_DIM_BRIGHTNESS_LEVEL 13
  26. #define BL_DEFAULT_BRIGHTNESS BL_MID_BRIGHTNESS_LEVEL
  27. enum mipi_samsung_cmd_list {
  28. PANEL_READY_TO_ON_FAST,
  29. PANEL_READY_TO_ON,
  30. PANEL_READY_TO_OFF,
  31. PANEL_ON,
  32. PANEL_OFF,
  33. PANEL_LATE_ON,
  34. PANEL_EARLY_OFF,
  35. PANEL_GAMMA_UPDATE,
  36. PANEL_ELVSS_UPDATE,
  37. PANEL_ACL_ON,
  38. PANEL_ACL_OFF,
  39. PANEL_ACL_UPDATE,
  40. MTP_READ_ENABLE,
  41. PANEL_BRIGHT_CTRL,
  42. };
  43. enum {
  44. MIPI_RESUME_STATE,
  45. MIPI_SUSPEND_STATE,
  46. };
  47. struct display_status{
  48. unsigned char auto_brightness;
  49. int bright_level;
  50. int siop_status;
  51. unsigned char acl_on;
  52. };
  53. struct mdss_samsung_driver_data{
  54. struct dsi_buf samsung_tx_buf;
  55. struct msm_fb_data_type *mfd;
  56. struct dsi_buf samsung_rx_buf;
  57. struct mdss_panel_common_pdata *mdss_samsung_disp_pdata;
  58. struct mdss_panel_data *mpd;
  59. struct mdss_dsi_ctrl_pdata *ctrl_pdata;
  60. struct mutex lock;
  61. int bl_level;
  62. #if defined(CONFIG_LCD_CLASS_DEVICE)
  63. struct platform_device *msm_pdev;
  64. #endif
  65. #if defined(CONFIG_HAS_EARLYSUSPEND)
  66. struct early_suspend early_suspend;
  67. #endif
  68. struct display_status dstat;
  69. };
  70. void mdnie_lite_tuning_init(struct mdss_samsung_driver_data* msd);
  71. void mdss_dsi_cmds_send(struct mdss_dsi_ctrl_pdata *ctrl, struct dsi_cmd_desc *cmds, int cnt,int flag);
  72. #endif