diff options
author | Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> | 2017-03-24 20:01:49 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-03-30 19:37:48 +1100 |
commit | c3e405b3b1e0c47efbbf31ce37ea02e9a1e005e3 (patch) | |
tree | 5f7580b592aae8f7ef8a7d2051950166c6bb4c86 /include | |
parent | d95ffaa6fac5b0094cb473ad6bbc8923ce4107d7 (diff) | |
download | skiboot-c3e405b3b1e0c47efbbf31ce37ea02e9a1e005e3.zip skiboot-c3e405b3b1e0c47efbbf31ce37ea02e9a1e005e3.tar.gz skiboot-c3e405b3b1e0c47efbbf31ce37ea02e9a1e005e3.tar.bz2 |
SLW: Add init for power9 power management
This patch adds new function to init core for power9 power management.
SPECIAL_WKUP_* SCOM registers, if set, can hold the cores from going into
idle states. Hence, clear PPM_SPECIAL_WKUP_HYP_REG scom register for each
core during init. (This init are not required for MAMBO)
Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xscom.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xscom.h b/include/xscom.h index 871d210..743a47b 100644 --- a/include/xscom.h +++ b/include/xscom.h @@ -143,6 +143,12 @@ #define XSCOM_ADDR_P9_EC_SLAVE(core, addr) \ XSCOM_ADDR_P9_EC(core, (addr) | 0xf0000) +/* Power 9 EC slave per-core power mgt slave registers */ +#define EC_PPM_SPECIAL_WKUP_OTR 0x010A +#define EC_PPM_SPECIAL_WKUP_FSP 0x010B +#define EC_PPM_SPECIAL_WKUP_OCC 0x010C +#define EC_PPM_SPECIAL_WKUP_HYP 0x010D + /************* XXXX Move these P8 only registers elswhere !!! ****************/ /* Per core power mgt registers */ |