]> git.baikalelectronics.ru Git - kernel.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)
commitf347044640e46f1b0889f60f1ce321e2b6d4d31a
treeb533b80a40f5c60494f2b66a61a2c132e19eeee7
parent9715972e3604662d2fcd82569f945dd3a01f9023
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]