drm/amd/display: Create new i2c resource
authorDavid Francis <David.Francis@amd.com>
Mon, 23 Jul 2018 18:12:10 +0000 (14:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:05 +0000 (11:11 -0500)
commitc85e6e546edd7e362693218a33a6f63217802fd3
tree042ad2bf8c21b13237416f23ffd82fbec9778f9a
parentd6257ab531ba0053d6f7c98ef949ab53f9a8ff0a
drm/amd/display: Create new i2c resource

[Why]
I2C code did not match dc resource model and was generally
unpleasant

[How]
Move code into new svelte dce_i2c files, replacing various i2c
objects with two structs: dce_i2c_sw and dce_i2c_hw.  Fully split
sw and hw code paths.  Remove all redundant declarations.  Use
address lists to distinguish between versions.  Change dce80 code
to newer register access macros.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
18 files changed:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dce/Makefile
drivers/gpu/drm/amd/display/dc/dce/dce_i2c.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce_i2c.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h