Skip to content

Commit

Permalink
Move pb_cen_hp_mode_curr register definition to xscom-p9-reg.h
Browse files Browse the repository at this point in the history
Currently it is defined in npu2-regs.h but needs to be used by other files
as well so move it somewhere generic.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
apopple authored and stewartsmith committed Jul 18, 2018
1 parent f651e8e commit b8702e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions hw/npu2.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <phys-map.h>
#include <nvram.h>
#include <xive.h>
#include <xscom-p9-regs.h>

#define NPU2_IRQ_BASE_SHIFT 13
#define NPU2_N_DL_IRQS 23
Expand Down
2 changes: 0 additions & 2 deletions include/npu2-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ void npu2_scom_write(uint64_t gcid, uint64_t scom_base,
#define MCD_BANK_CN_VALID PPC_BIT(0)
#define MCD_BANK_CN_SIZE PPC_BITMASK(13,29)
#define MCD_BANK_CN_ADDR PPC_BITMASK(33,63)
#define PB_CENT_HP_MODE_CURR 0x5011c0c
#define PB_CFG_CHG_RATE_GP_MASTER PPC_BIT(2)
#define PB_CENT_MODE 0x5011c0a
#define PB_CFG_CHIP_ADDR_EXTENSION_MASK_CENT PPC_BITMASK(42,48)

Expand Down
4 changes: 4 additions & 0 deletions include/xscom-p9-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@

#define P9_SCOM_SPRD 0x20010A81

#define PB_CENT_HP_MODE_CURR 0x5011c0c
#define PB_CFG_CHG_RATE_GP_MASTER PPC_BIT(2)
#define PB_CFG_PUMP_MODE PPC_BIT(54)

#endif /* __XSCOM_P9_REGS_H__ */

0 comments on commit b8702e2

Please sign in to comment.