diff options
author | Philippe Bergheaud <felix@linux.vnet.ibm.com> | 2016-04-01 14:27:57 +0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-04-27 15:06:11 +1000 |
commit | c27ead751a1cd6541e98dc2b490ac453613e8d69 (patch) | |
tree | 8e33f6615917bc1a5b35c36deeeeb7c623d29f5d /include/chip.h | |
parent | 451b69d489112ef61d99199bec6c5eaf3a946127 (diff) | |
download | blackbird-skiboot-c27ead751a1cd6541e98dc2b490ac453613e8d69.tar.gz blackbird-skiboot-c27ead751a1cd6541e98dc2b490ac453613e8d69.zip |
phb3: Load CAPP ucode to both CAPP units on Naples
Venice and Murano have only one capp unit, that can be mapped to phb0,
phb1 or phb2. Naples has two capp units, that are statically mapped,
capp unit 0 on phb0 and capp unit 1 on phb1. The capp ucode must be
loaded once onto each capp unit.
This patch replaces the boolean chip->capp_ucode_loaded by a bitmap,
and sets the bit corresponding to the phb index to indicate that ucode
has been loaded. The macro CAPP_UCODE_LOADED(chip, phb) returns the value
of the phb index bit.
The xscom register addresses of capp unit 0 are identical to the register
addresses of the single capp unit of Venice and Murano. The addresses of
the Naples capp unit 1 are equal to the addresses of capp unit 0 + 0x180.
This patch introduces the macro PHB3_CAPP_REG_OFFSET(p), that returns the
following xscom register address offsets:
0x0 for the Venice capp unit
0x0 for the Murano capp unit
0x0 for Naples capp unit 0
0x180 for Naples capp unit 1
The offset is added to the register address at each xscom_write, in order
to operate on the right capp unit.
Signed-off-by: Philippe Bergheaud <felix@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/chip.h')
-rw-r--r-- | include/chip.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/chip.h b/include/chip.h index 9e50f7a1..72b85df3 100644 --- a/include/chip.h +++ b/include/chip.h @@ -160,7 +160,7 @@ struct proc_chip { /* Must hold capi_lock to change */ u8 capp_phb3_attached_mask; - bool capp_ucode_loaded; + u8 capp_ucode_loaded; /* Used by hw/centaur.c */ struct centaur_chip *centaurs; |