]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tidss: Update infrastructure to support K3 DSS cut-down versions
authorDevarsh Thakkar <devarsht@ti.com>
Wed, 7 May 2025 18:06:30 +0000 (23:36 +0530)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tue, 20 May 2025 11:43:56 +0000 (14:43 +0300)
commite019f515c969cef78187b9cb87c6da06b47568b2
treeb1113600b152a001cb2e9aca5ca109e8736469a1
parentcb8d4323302c7ad6b8baa1f5ca29f6186b30f316
drm/tidss: Update infrastructure to support K3 DSS cut-down versions

SoCs like AM62Lx support cut-down version of K3 DSS where although same
register space is supported as in other K3 DSS supported SoCs such as
AM65x, AM62x, AM62Ax but some of the resources such as planes and
corresponding register spaces are truncated.

For e.g. AM62Lx has only single VIDL pipeline supported, so corresponding
register spaces for other video pipelines need to be skipped.

To add a generic support for future SoCs where one or more video pipelines
can get truncated from the parent register space, move the video plane
related information to vid_info struct which will also have a field to
indicate hardware index of each of the available video planes, so that
driver only maps and programs those video pipes and skips the unavailable
ones.

While at it, also change the num_planes field in the features structure to
num_vid so that all places in code which use vid_info structure are
highlighted in the code.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://lore.kernel.org/r/20250507180631.874930-3-devarsht@ti.com
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/gpu/drm/tidss/tidss_crtc.c
drivers/gpu/drm/tidss/tidss_dispc.c
drivers/gpu/drm/tidss/tidss_dispc.h
drivers/gpu/drm/tidss/tidss_kms.c
drivers/gpu/drm/tidss/tidss_plane.c