dp_display.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _DP_DISPLAY_H_
  6. #define _DP_DISPLAY_H_
  7. #include "dp_panel.h"
  8. #include "disp/msm_disp_snapshot.h"
  9. #define DP_MAX_PIXEL_CLK_KHZ 675000
  10. struct msm_dp {
  11. struct drm_device *drm_dev;
  12. struct platform_device *pdev;
  13. struct drm_connector *connector;
  14. struct drm_bridge *next_bridge;
  15. bool link_ready;
  16. bool audio_enabled;
  17. bool power_on;
  18. unsigned int connector_type;
  19. bool is_edp;
  20. bool internal_hpd;
  21. struct msm_dp_audio *msm_dp_audio;
  22. bool psr_supported;
  23. };
  24. int msm_dp_display_get_modes(struct msm_dp *msm_dp_display);
  25. bool msm_dp_display_check_video_test(struct msm_dp *msm_dp_display);
  26. int msm_dp_display_get_test_bpp(struct msm_dp *msm_dp_display);
  27. void msm_dp_display_signal_audio_start(struct msm_dp *msm_dp_display);
  28. void msm_dp_display_signal_audio_complete(struct msm_dp *msm_dp_display);
  29. void msm_dp_display_set_psr(struct msm_dp *dp, bool enter);
  30. void msm_dp_display_debugfs_init(struct msm_dp *msm_dp_display, struct dentry *dentry, bool is_edp);
  31. #endif /* _DP_DISPLAY_H_ */