diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-12-03 16:46:18 +1100 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-04 14:19:40 +1100 |
commit | b449782de69428c8a8a381fac914cd140b78dfea (patch) | |
tree | 2367bc0579926ba52a64e92fb8de1b11811e23f9 /libstb/drivers | |
parent | 8b3012e1aa670af09ddd2d378978b3862314c36d (diff) | |
download | skiboot-b449782de69428c8a8a381fac914cd140b78dfea.zip skiboot-b449782de69428c8a8a381fac914cd140b78dfea.tar.gz skiboot-b449782de69428c8a8a381fac914cd140b78dfea.tar.bz2 |
hw/p8-i2c: Clean up interrupt masking
There's three interrupt registers defined for the I2C master:
1. Interrupt mask
2. Raw interrupt condition bits
3. Masked interrupt condition bits
All the I2C master interrupts are LSIs so the raw condition bits will only
go to zero if the interrupt condition is dealt with. As a result the
latter two registers are read only. For writes their addresses are
re-used as atomic OR and atomic AND update registers for the mask
register.
When unmasking interrupts we currently do that via the atomic OR
register and mask via the atomic AND, but we use the interrupt condition
register macro names. This is a bit confusing and the documentation
isn't super clear about the behaviour so fix the macro names in favour
of something saner.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'libstb/drivers')
0 files changed, 0 insertions, 0 deletions