drm/amd/display: change to runtime initialization for reg offsets for DCN32
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 7 Jul 2022 15:34:35 +0000 (11:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:34:40 +0000 (13:34 -0400)
commitf7fbcf4637fe8f54acb18d88488ae901b3d7a4dc
tree07fd4ba39046fc510360396cf47c0b4f7295511c
parent95bbbb88ed49f6d4f46c9a23be0ba94db2fa65e9
drm/amd/display: change to runtime initialization for reg offsets for DCN32

DC was using compile time initialization of register addresses using
SR_* macros and their variants. These have been converted to use runtime
initialization.

The REG_STRUCT macro is a definition that is added to SR_* macros.
During initialization, this must be defined before SR_* macros are
invoked, which are in turn invoked through various IP initialization macros.

Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h