mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:30:53 +07:00
7e435aad38
Add a helper to allow encoders to find their possible CRTCs from the OF graph without having to re-implement this functionality. We add a device_node to drm_crtc which corresponds with the port node in the DT description of the CRTC device. We can then scan the DRM device list for CRTCs to find their index, matching the appropriate CRTC using the port device_node, thus building up the possible CRTC mask. Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 lines
365 B
C
19 lines
365 B
C
#ifndef __DRM_OF_H__
|
|
#define __DRM_OF_H__
|
|
|
|
struct drm_device;
|
|
struct device_node;
|
|
|
|
#ifdef CONFIG_OF
|
|
extern uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
|
|
struct device_node *port);
|
|
#else
|
|
static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
|
|
struct device_node *port)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __DRM_OF_H__ */
|