aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/ipmi/chip.h
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2020-11-24 12:45:07 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2020-12-30 00:30:41 +0000
commit548a3dc7a669f3c7c4f6f905683d886bc7f5d40d (patch)
tree2c6ce5b93363ac4c354fa7228c3be52a1d98ccda /src/drivers/ipmi/chip.h
parent31830d3c2c853a8c61acf7cea99bf81ec72b5de1 (diff)
drivers/ipmi: implement "POST complete" notification functionality
Some server boards like OCP Tiogapass and X11-LGA1151 boards use a gpio for signalling "POST complete" to BMC/IPMI. Add a new driver devicetree option to set the gpio and configure a callback that pulls the gpio low right before jumping to the payload. Test: Check that sensor readings appear in BMC web interface when the payload gets executed. Successfully tested on Supermicro X11SSM-F with CB:48097, X11SSH-TF with CB:48711 and OCP DeltaLake with CB:48672. Change-Id: I34764858be9c7f7f1110ce885fa056591164f148 Tested-by: Johnny Lin <Johnny_Lin@wiwynn.com> Tested-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: Patrick Rudolph <siro@das-labor.org> Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48096 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers/ipmi/chip.h')
-rw-r--r--src/drivers/ipmi/chip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/ipmi/chip.h b/src/drivers/ipmi/chip.h
index 11bef9b02f..fb5d4d921f 100644
--- a/src/drivers/ipmi/chip.h
+++ b/src/drivers/ipmi/chip.h
@@ -22,6 +22,9 @@ struct drivers_ipmi_config {
* If present, the jumper overrides the devicetree.
*/
u32 bmc_jumper_gpio;
+ /* "POST complete" GPIO and polarity */
+ u32 post_complete_gpio;
+ bool post_complete_invert;
/*
* Wait for BMC to boot.
* This can be used if the BMC takes a long time to boot after PoR: