aboutsummaryrefslogtreecommitdiff
path: root/include/phys-map.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-11-14 22:23:03 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-11-15 02:29:38 -0600
commit2dbbcddb43b7f14b879c5ab45d9d6abef8763922 (patch)
tree3bec0c950a606478c95a698c937c35292a946ff3 /include/phys-map.h
parent0a3df98b0a7ed3c4b61755fd26ab48c804a7c041 (diff)
downloadskiboot-2dbbcddb43b7f14b879c5ab45d9d6abef8763922.zip
skiboot-2dbbcddb43b7f14b879c5ab45d9d6abef8763922.tar.gz
skiboot-2dbbcddb43b7f14b879c5ab45d9d6abef8763922.tar.bz2
npu2: Refactor BAR setting code
This refactors the BAR setting code to make it clearer and handle a larger range of BAR addresses. This is needed as we are about to move the GPU to a physical address that is currently not supported by this code. This change derives group and chip sections of the BAR from the base address rather than the chip_id now. mem sel is also derived from the base address, rather than assuming 0. No functional change. Signed-off-by: Michael Neuling <mikey@neuling.org> Reviewed-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> (cherry picked from commit 3c0408ded5a14e110c8a418be305ac20714cb32d) Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/phys-map.h')
0 files changed, 0 insertions, 0 deletions