aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-10-22 04:38:18 -0400
committerDave Airlie <airlied@redhat.com>2013-10-22 04:50:08 -0400
commit5e4e3ba997af8c756c23ffaa86652d3a4df5bdfa (patch)
treea6860666ccf18c9add51d2b0f468cecf3fd7b3da /include/drm
parent5bdebb183c9702a8c57a01dff09337be3de337a6 (diff)
parent585b691e2180e1501637050290292f77f5c30c7b (diff)
Merge branch 'drm-tda998x-3.12' of git://ftp.arm.linux.org.uk/~rmk/linux-cubox into drm-next
This adds support for the Armada 510 display subsystem found on the Marvell Dove devices. This IP is re-used across several different Marvell SoCs with various tweaks, and this driver has been structured to allow the other IPs to re-use the bulk of this code; further work in this area is expected from interested parties. This has been extensively tested on the SolidRun Cubox platform and appears to work well there. [airlied: update for api changes merged previous to this]
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 755dd2532612..d3a91ade1d37 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1145,4 +1145,21 @@ extern int drm_format_horz_chroma_subsampling(uint32_t format);
1145extern int drm_format_vert_chroma_subsampling(uint32_t format); 1145extern int drm_format_vert_chroma_subsampling(uint32_t format);
1146extern const char *drm_get_format_name(uint32_t format); 1146extern const char *drm_get_format_name(uint32_t format);
1147 1147
1148/* Helpers */
1149static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev,
1150 uint32_t id)
1151{
1152 struct drm_mode_object *mo;
1153 mo = drm_mode_object_find(dev, id, DRM_MODE_OBJECT_CRTC);
1154 return mo ? obj_to_crtc(mo) : NULL;
1155}
1156
1157static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
1158 uint32_t id)
1159{
1160 struct drm_mode_object *mo;
1161 mo = drm_mode_object_find(dev, id, DRM_MODE_OBJECT_ENCODER);
1162 return mo ? obj_to_encoder(mo) : NULL;
1163}
1164
1148#endif /* __DRM_CRTC_H__ */ 1165#endif /* __DRM_CRTC_H__ */