diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-10-05 09:19:04 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-10-05 09:19:04 +1100 |
commit | d09b52b8982db63525c67bf36506ce8a813f84d0 (patch) | |
tree | cbe3554b6d2c1ff8e358623264b7004b79ae84f2 /platforms | |
parent | b33fd8dc893e2ea65ceef5dad2fa8173932443e5 (diff) | |
download | skiboot-d09b52b8982db63525c67bf36506ce8a813f84d0.zip skiboot-d09b52b8982db63525c67bf36506ce8a813f84d0.tar.gz skiboot-d09b52b8982db63525c67bf36506ce8a813f84d0.tar.bz2 |
ipmi/bt: Rework iBT register access
The bits in the control register are mostly write-1-to-clear, so
the rmw sequences in bt_setmask() and bt_clearmask() don't work.
Additionally, H_BUSY is weird as it's a write-1-to-toggle, so let's
write a "safe" function that sets it to the desired state based on
its previous state. (We can optimize that further later).
Also enable interrupt operations.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/bmc/palmetto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platforms/bmc/palmetto.c b/platforms/bmc/palmetto.c index 5d28b86..ac6c4d9 100644 --- a/platforms/bmc/palmetto.c +++ b/platforms/bmc/palmetto.c @@ -40,6 +40,7 @@ static void palmetto_ext_irq(unsigned int chip_id __unused) { uart_irq(); + bt_irq(); } static void palmetto_init(void) |