]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: Implement generic MUX registers (v2)
authorMurton Liu <murton.liu@amd.com>
Mon, 24 Jun 2019 15:28:06 +0000 (11:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:27:24 +0000 (14:27 -0500)
commitd40605b6d088b20827e442903022c65f0f165c84
treeb533b80a40f5c60494f2b66a61a2c132e19eeee7
parent4c6a9618076c2690a361e8bc32549720f2f42305
drm/amd/display: Implement generic MUX registers (v2)

[Why]
Logic & structures for generic regs does not exist in DC currently.

[How]
Implement register masks/shifts and relevant functions for generic mux,
similar to existing HPD and DDC objects.

V2: fix includes for kalloc/free (Alex)

Signed-off-by: Murton Liu <murton.liu@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Joshua Aberback <Joshua.Aberback@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/gpio/Makefile
drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c
drivers/gpu/drm/amd/display/dc/gpio/diagnostics/hw_factory_diag.c
drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/gpio/hw_factory.h
drivers/gpu/drm/amd/display/dc/gpio/hw_generic.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/gpio/hw_generic.h [new file with mode: 0644]