analogix_dp.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Analogix DP (Display Port) Core interface driver.
  3. *
  4. * Copyright (C) 2015 Rockchip Electronics Co., Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. */
  11. #ifndef _ANALOGIX_DP_H_
  12. #define _ANALOGIX_DP_H_
  13. #include <drm/drm_crtc.h>
  14. enum analogix_dp_devtype {
  15. EXYNOS_DP,
  16. RK3288_DP,
  17. };
  18. struct analogix_dp_plat_data {
  19. enum analogix_dp_devtype dev_type;
  20. struct drm_panel *panel;
  21. struct drm_encoder *encoder;
  22. struct drm_connector *connector;
  23. int (*power_on)(struct analogix_dp_plat_data *);
  24. int (*power_off)(struct analogix_dp_plat_data *);
  25. int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
  26. struct drm_connector *);
  27. int (*get_modes)(struct analogix_dp_plat_data *);
  28. };
  29. int analogix_dp_resume(struct device *dev);
  30. int analogix_dp_suspend(struct device *dev);
  31. int analogix_dp_bind(struct device *dev, struct drm_device *drm_dev,
  32. struct analogix_dp_plat_data *plat_data);
  33. void analogix_dp_unbind(struct device *dev, struct device *master, void *data);
  34. #endif /* _ANALOGIX_DP_H_ */