Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: add defines for pin_offsets in DCE8

Define pin_offsets values in the same way it is done in DCE8

Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Alexandre Demers and committed by
Alex Deucher
092da9fb 9c551ca3

+16 -7
+9
drivers/gpu/drm/amd/amdgpu/cikd.h
··· 51 51 #define HPD4_REGISTER_OFFSET (0x1813 - 0x1807) 52 52 #define HPD5_REGISTER_OFFSET (0x1816 - 0x1807) 53 53 54 + /* audio endpt instance offsets */ 55 + #define AUD0_REGISTER_OFFSET (0x1780 - 0x1780) 56 + #define AUD1_REGISTER_OFFSET (0x1786 - 0x1780) 57 + #define AUD2_REGISTER_OFFSET (0x178c - 0x1780) 58 + #define AUD3_REGISTER_OFFSET (0x1792 - 0x1780) 59 + #define AUD4_REGISTER_OFFSET (0x1798 - 0x1780) 60 + #define AUD5_REGISTER_OFFSET (0x179d - 0x1780) 61 + #define AUD6_REGISTER_OFFSET (0x17a4 - 0x1780) 62 + 54 63 #define BONAIRE_GB_ADDR_CONFIG_GOLDEN 0x12010001 55 64 #define HAWAII_GB_ADDR_CONFIG_GOLDEN 0x12011003 56 65
+7 -7
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
··· 1395 1395 } 1396 1396 1397 1397 static const u32 pin_offsets[7] = { 1398 - (0x1780 - 0x1780), 1399 - (0x1786 - 0x1780), 1400 - (0x178c - 0x1780), 1401 - (0x1792 - 0x1780), 1402 - (0x1798 - 0x1780), 1403 - (0x179d - 0x1780), 1404 - (0x17a4 - 0x1780), 1398 + AUD0_REGISTER_OFFSET, 1399 + AUD1_REGISTER_OFFSET, 1400 + AUD2_REGISTER_OFFSET, 1401 + AUD3_REGISTER_OFFSET, 1402 + AUD4_REGISTER_OFFSET, 1403 + AUD5_REGISTER_OFFSET, 1404 + AUD6_REGISTER_OFFSET, 1405 1405 }; 1406 1406 1407 1407 static int dce_v8_0_audio_init(struct amdgpu_device *adev)