aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/ipmi/chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/ipmi/chip.h')
-rw-r--r--src/drivers/ipmi/chip.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/ipmi/chip.h b/src/drivers/ipmi/chip.h
index f561bcd893..11bef9b02f 100644
--- a/src/drivers/ipmi/chip.h
+++ b/src/drivers/ipmi/chip.h
@@ -1,8 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <device/device.h>
+
#ifndef _IMPI_CHIP_H_
#define _IPMI_CHIP_H_
+#include <stdint.h>
+
struct drivers_ipmi_config {
u8 bmc_i2c_address;
u8 have_nv_storage;
@@ -11,6 +15,13 @@ struct drivers_ipmi_config {
u8 gpe_interrupt;
u8 have_apic;
u32 apic_interrupt;
+ /* Device to use for GPIO operations */
+ DEVTREE_CONST struct device *gpio_dev;
+ /*
+ * Jumper GPIO for enabling / disabling BMC/IPMI
+ * If present, the jumper overrides the devicetree.
+ */
+ u32 bmc_jumper_gpio;
/*
* Wait for BMC to boot.
* This can be used if the BMC takes a long time to boot after PoR: