diff options
author | Dave Airlie <airlied@redhat.com> | 2013-10-22 09:38:18 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-22 09:50:08 +0100 |
commit | 5e4e3ba997af8c756c23ffaa86652d3a4df5bdfa (patch) | |
tree | a6860666ccf18c9add51d2b0f468cecf3fd7b3da /include/drm | |
parent | 5bdebb183c9702a8c57a01dff09337be3de337a6 (diff) | |
parent | 585b691e2180e1501637050290292f77f5c30c7b (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.h | 17 |
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); extern int drm_format_vert_chroma_subsampling(uint32_t format); extern const char *drm_get_format_name(uint32_t format); +/* Helpers */ +static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev, + uint32_t id) +{ + struct drm_mode_object *mo; + mo = drm_mode_object_find(dev, id, DRM_MODE_OBJECT_CRTC); + return mo ? obj_to_crtc(mo) : NULL; +} + +static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev, + uint32_t id) +{ + struct drm_mode_object *mo; + mo = drm_mode_object_find(dev, id, DRM_MODE_OBJECT_ENCODER); + return mo ? obj_to_encoder(mo) : NULL; +} + #endif /* __DRM_CRTC_H__ */ |