mdss_ms01_panel.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_MS01_PANEL_H
  14. #define MDSS_MS01_PANEL_H
  15. #include "mdss_panel.h"
  16. #define MAX_BRIGHTNESS_LEVEL 255
  17. #define MID_BRIGHTNESS_LEVEL 143
  18. #define LOW_BRIGHTNESS_LEVEL 15
  19. #define DIM_BRIGHTNESS_LEVEL 25
  20. #define BL_MIN_BRIGHTNESS 8
  21. #define BL_MAX_BRIGHTNESS_LEVEL 192
  22. #define BL_MID_BRIGHTNESS_LEVEL 94
  23. #define BL_LOW_BRIGHTNESS_LEVEL 8
  24. #define BL_DIM_BRIGHTNESS_LEVEL 13
  25. #define BL_DEFAULT_BRIGHTNESS BL_MID_BRIGHTNESS_LEVEL
  26. enum {
  27. MIPI_RESUME_STATE,
  28. MIPI_SUSPEND_STATE,
  29. };
  30. struct display_status{
  31. unsigned char auto_brightness;
  32. int bright_level;
  33. int siop_status;
  34. };
  35. struct mdss_samsung_driver_data{
  36. struct dsi_buf sharp_tx_buf;
  37. struct msm_fb_data_type *mfd;
  38. struct dsi_buf sharp_rx_buf;
  39. struct mdss_panel_common_pdata *mdss_sharp_disp_pdata;
  40. struct mdss_panel_data *mpd;
  41. struct mutex lock;
  42. #if defined(CONFIG_LCD_CLASS_DEVICE)
  43. struct platform_device *msm_pdev;
  44. #endif
  45. #if defined(CONFIG_HAS_EARLYSUSPEND)
  46. struct early_suspend early_suspend;
  47. #endif
  48. struct display_status dstat;
  49. };
  50. //void mdnie_lite_tuning_init(struct mdss_samsung_driver_data* msd);
  51. void mdss_dsi_cmds_send(struct mdss_dsi_ctrl_pdata *ctrl, struct dsi_cmd_desc *cmds, int cnt,int flag);
  52. #endif