diff options
author | Michael Neuling <mikey@neuling.org> | 2017-05-02 13:23:08 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-10 16:58:18 +1000 |
commit | 9f7814953b477e1f447fcfcf02a865d67ae4cec2 (patch) | |
tree | 9c337c813b3107e09ab9181cb666e28ef6fd61a3 /hw | |
parent | 39d530c80c2377f419f975ceb4f1c63f3e70b044 (diff) | |
download | skiboot-9f7814953b477e1f447fcfcf02a865d67ae4cec2.zip skiboot-9f7814953b477e1f447fcfcf02a865d67ae4cec2.tar.gz skiboot-9f7814953b477e1f447fcfcf02a865d67ae4cec2.tar.bz2 |
nx: Migrate P9 RNG BAR assignment to phys_map_get()
Keeps existing address. No functional change.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/nx.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -23,9 +23,7 @@ #include <nx.h> #include <chip.h> #include <xscom-p9-regs.h> - -#define MMIO_CALC(__c, __b) \ - (MMIO_CHIP_STRIDE * (__c) | __b) +#include <phys-map.h> extern void nx_p9_rng_init(void); @@ -52,7 +50,7 @@ void nx_p9_rng_init(void) */ for_each_chip(chip) { /* 1) NX RNG BAR */ - bar = MMIO_CALC(chip->id, P9X_NX_MMIO_OFFSET); + phys_map_get(chip, NX_RNG, 0, &bar, NULL); xscom_write(chip->id, P9X_NX_MMIO_BAR, bar | P9X_NX_MMIO_BAR_EN); /* Read config register for pace info */ |