amdgpu/soc15: make the pcie index/data registers constant.
authorDave Airlie <airlied@redhat.com>
Fri, 29 Sep 2017 00:08:01 +0000 (10:08 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Sep 2017 16:24:38 +0000 (12:24 -0400)
commit35b31f7c6464480b10f3a54c9a35699e02f17ae8
tree0d59273b84ccea004d59c6d28ca10932917e24dc
parent6cdb91e28128595c1e2b7d0fa1ead30dc34ff15c
amdgpu/soc15: make the pcie index/data registers constant.

These don't seem to change at runtime, and the initialisers
are constant data. This could be improved by not selecting
the apu/non-apu path on each pcie read/write access.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.h
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h
drivers/gpu/drm/amd/amdgpu/soc15.c