diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-06-27 15:07:43 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-01 18:15:38 +1000 |
commit | ad53085acc6264b5673fbb8055a3e7feecee6159 (patch) | |
tree | 517d366aa7a3589df10b5569f3e45e148e8a7655 /include/processor.h | |
parent | 16ef1b8217ba437df7cf3c8893f0c5b9ef094cbe (diff) | |
download | skiboot-ad53085acc6264b5673fbb8055a3e7feecee6159.zip skiboot-ad53085acc6264b5673fbb8055a3e7feecee6159.tar.gz skiboot-ad53085acc6264b5673fbb8055a3e7feecee6159.tar.bz2 |
cpu: supply ibm,dec-bits via devicetree
ISAv3 adds a mode to increase the size of the decrementer from 32 bits.
The enlarged decrementer can be between 32 and 64 bits wide with the
exact value being implementation dependent. This patch adds support for
detecting the size of the large decrementer and populating each CPU node
with the "ibm,dec-bits" property.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
[stewart@linux.vnet.ibm.com: rename enable_ld() to enable_large_dec()]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/processor.h')
-rw-r--r-- | include/processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/processor.h b/include/processor.h index 1236c77..48bbf90 100644 --- a/include/processor.h +++ b/include/processor.h @@ -96,6 +96,7 @@ #define SPR_LPCR_P8_PECE2 PPC_BIT(49) /* Wake on external interrupts */ #define SPR_LPCR_P8_PECE3 PPC_BIT(50) /* Wake on decrementer */ #define SPR_LPCR_P8_PECE4 PPC_BIT(51) /* Wake on MCs, HMIs, etc... */ +#define SPR_LPCR_P9_LD PPC_BIT(46) /* Large decrementer mode bit */ /* Bits in TFMR - control bits */ |