[PATCH skeleton v3 09/19] Init BMC_THROTTLE GPIO to high
OpenBMC Patches
openbmc-patches at stwcx.xyz
Fri Nov 20 12:00:23 AEDT 2015
From: Ken <ken.sk.lai at mail.foxconn.com>
---
objects/control_host_obj.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/objects/control_host_obj.c b/objects/control_host_obj.c
index 672ef85..9297e52 100644
--- a/objects/control_host_obj.c
+++ b/objects/control_host_obj.c
@@ -21,6 +21,7 @@ GPIO fsi_data = (GPIO){ "FSI_DATA" };
GPIO fsi_clk = (GPIO){ "FSI_CLK" };
GPIO fsi_enable = (GPIO){ "FSI_ENABLE" };
GPIO cronus_sel = (GPIO){ "CRONUS_SEL" };
+GPIO Throttle = (GPIO){ "BMC_TROTTLE" };
/* Bit bang patterns */
@@ -82,6 +83,9 @@ on_boot (ControlHost *host,
{
int rc = GPIO_OK;
+ rc = gpio_open(&Throttle);
+ rc = gpio_write(&Throttle,1);
+
if (control_host_get_debug_mode(host)==1)
{
g_print("Enabling debug mode; not booting host\n");
@@ -165,7 +169,7 @@ on_boot (ControlHost *host,
gpio_close(&fsi_data);
gpio_close(&fsi_enable);
gpio_close(&cronus_sel);
-
+ gpio_close(&Throttle);
control_host_emit_booted(host);
return TRUE;
}
--
2.6.3
More information about the openbmc
mailing list