summaryrefslogtreecommitdiffstats
path: root/include/bt.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-05 09:19:04 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-05 09:19:04 +1100
commitd09b52b8982db63525c67bf36506ce8a813f84d0 (patch)
treecbe3554b6d2c1ff8e358623264b7004b79ae84f2 /include/bt.h
parentb33fd8dc893e2ea65ceef5dad2fa8173932443e5 (diff)
downloadtalos-skiboot-d09b52b8982db63525c67bf36506ce8a813f84d0.tar.gz
talos-skiboot-d09b52b8982db63525c67bf36506ce8a813f84d0.zip
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 'include/bt.h')
-rw-r--r--include/bt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bt.h b/include/bt.h
index 1763d9f6..43843d24 100644
--- a/include/bt.h
+++ b/include/bt.h
@@ -19,5 +19,6 @@
/* Initialise the BT interface */
void bt_init(void);
+void bt_irq(void);
#endif
OpenPOWER on IntegriCloud