diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-11-11 15:44:46 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-11-11 18:35:00 +1100 |
commit | ef7c7de83586150cfc29c24e80efe6e8399c5479 (patch) | |
tree | d1b23b2b2baf8ad6bc66a849d27f4f3d4507da40 /hw/fsp | |
parent | 40558797f16270d2727be0596a36a6fca56b0a44 (diff) | |
download | skiboot-ef7c7de83586150cfc29c24e80efe6e8399c5479.zip skiboot-ef7c7de83586150cfc29c24e80efe6e8399c5479.tar.gz skiboot-ef7c7de83586150cfc29c24e80efe6e8399c5479.tar.bz2 |
psi: update registers to reflect >= P8 PHBSCR
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw/fsp')
-rw-r--r-- | hw/fsp/fsp-psi.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/hw/fsp/fsp-psi.c b/hw/fsp/fsp-psi.c index 76feb0b..5db6a99 100644 --- a/hw/fsp/fsp-psi.c +++ b/hw/fsp/fsp-psi.c @@ -8,24 +8,14 @@ static void psi_tce_enable(struct psi *psi, bool enable) { - void *addr; + void *addr = psi->regs + PSIHB_PHBSCR; u64 val; - switch (proc_gen) { - case proc_gen_p8: - case proc_gen_p9: - addr = psi->regs + PSIHB_PHBSCR; - break; - default: - prerror("%s: Unknown CPU type\n", __func__); - return; - } - val = in_be64(addr); if (enable) - val |= PSIHB_CR_TCE_ENABLE; + val |= PSIHB_PHBSCR_TCE_ENABLE; else - val &= ~PSIHB_CR_TCE_ENABLE; + val &= ~PSIHB_PHBSCR_TCE_ENABLE; out_be64(addr, val); } |