All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH skeleton v2 0/9] Set default LED status, add GPIO define
@ 2015-11-19  3:00 OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 1/9] LED test OpenBMC Patches
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc

Please omit Nov 07 commit, and add Nov 19 commit3

https://github.com/openbmc/skeleton/pull/16

Ken (9):
  LED test
  LED test 2
  LED test3
  Remove ;
  Force fan duty to 100%
  Workarounf for fan PWM 100%
  Remove git 1e751075d5a11736df67c40ead5a8375141269d3
  Set default LED status, add GPIO define
  Init BMC_THROTTLE GPIO to high

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 1/9] LED test
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 2/9] LED test 2 OpenBMC Patches
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 bin/Barreleye.py         |  1 +
 objects/led_controller.c | 16 +++++++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
 mode change 100644 => 100755 objects/led_controller.c

diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index 65a6aa4..98d7321 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -408,6 +408,7 @@ GPIO_CONFIG['BMC_READY']   =  { 'gpio_pin': 'H2', 'direction': 'out' }
 GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_pin': 'E0', 'direction': 'both' }
 GPIO_CONFIG['PCIE_RESET']   = { 'gpio_pin': 'B5', 'direction': 'out' }
 GPIO_CONFIG['USB_RESET']    = { 'gpio_pin': 'B6', 'direction': 'out' }
+GPIO_CONFIG['BEEP']    	  =   { 'gpio_pin': 'N7', 'direction': 'out' }
 GPIO_CONFIG['SLOT0_RISER_PRESENT'] =   { 'gpio_pin': 'N0', 'direction': 'in' }
 GPIO_CONFIG['SLOT1_RISER_PRESENT'] =   { 'gpio_pin': 'N1', 'direction': 'in' }
 GPIO_CONFIG['SLOT2_RISER_PRESENT'] =   { 'gpio_pin': 'N2', 'direction': 'in' }
diff --git a/objects/led_controller.c b/objects/led_controller.c
old mode 100644
new mode 100755
index 8c3fa3c..5bb4542
--- a/objects/led_controller.c
+++ b/objects/led_controller.c
@@ -10,11 +10,12 @@ static const gchar* dbus_name        = "org.openbmc.control.led";
 
 static GDBusObjectManagerServer *manager = NULL;
 
-#define  NUM_GPIO 2
+#define  NUM_GPIO 3
 
 GPIO led_gpio[NUM_GPIO] = { 
 	(GPIO){"IDENTIFY"},
-	(GPIO){"BMC_READY"}
+	(GPIO){"BMC_READY"},
+	(GPIO){"BEEP"}
 };
 
 
@@ -67,21 +68,30 @@ on_set_off       (Led          *led,
 	return TRUE;
 }
 
+int tmp=0;
 void init_led(Led* led, GPIO* mygpio)
 {
 	int rc = GPIO_OK;
+	int i=5;
+	tmp++;
 	do {
 		uint8_t val;
 		rc = gpio_open(mygpio);
 		if (rc != GPIO_OK) { break; }
 		rc = gpio_read(mygpio,&val);
 		if (rc != GPIO_OK) { break; }
+		led_set_state(led,"off");
 		if (val == 0) {
 			led_set_state(led,"on");
 		} else {
 			led_set_state(led,"off");
 		}
-	} while(0);
+	i--;
+	} while(i!=0);
+	
+if(tmp==3)
+	led_set_state(led,"off");
+
 	gpio_close(mygpio);
 	if (rc != GPIO_OK) {
 		g_print("ERROR led controller: GPIO error %s (rc=%d)\n",
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 2/9] LED test 2
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 1/9] LED test OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 3/9] LED test3 OpenBMC Patches
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 bin/Barreleye.py         | 5 +++++
 objects/led_controller.c | 9 +++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index 98d7321..783aa88 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -51,6 +51,11 @@ ENTER_STATE_CALLBACK = {
 			'obj_name'   : '/org/openbmc/control/led/BMC_READY',
 			'interface_name' : 'org.openbmc.Led',
 		},
+		'setOn' : {
+			'bus_name'   : 'org.openbmc.control.led',
+			'obj_name'   : '/org/openbmc/control/led/BEEP',
+			'interface_name' : 'org.openbmc.Led',
+		},
 		'init' : {
 			'bus_name'   : 'org.openbmc.control.Flash',
 			'obj_name'   : '/org/openbmc/control/flash/bios',
diff --git a/objects/led_controller.c b/objects/led_controller.c
index 5bb4542..6f773c9 100755
--- a/objects/led_controller.c
+++ b/objects/led_controller.c
@@ -68,13 +68,14 @@ on_set_off       (Led          *led,
 	return TRUE;
 }
 
-int tmp=0;
+//int tmp=0;
 void init_led(Led* led, GPIO* mygpio)
 {
 	int rc = GPIO_OK;
 	int i=5;
-	tmp++;
+//	tmp++;
 	do {
+		sleep(2);
 		uint8_t val;
 		rc = gpio_open(mygpio);
 		if (rc != GPIO_OK) { break; }
@@ -89,8 +90,8 @@ void init_led(Led* led, GPIO* mygpio)
 	i--;
 	} while(i!=0);
 	
-if(tmp==3)
-	led_set_state(led,"off");
+//if(tmp==3)
+//	led_set_state(led,"off");
 
 	gpio_close(mygpio);
 	if (rc != GPIO_OK) {
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 3/9] LED test3
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 1/9] LED test OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 2/9] LED test 2 OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 4/9] Remove ; OpenBMC Patches
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 objects/led_controller.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/objects/led_controller.c b/objects/led_controller.c
index 6f773c9..24cfc19 100755
--- a/objects/led_controller.c
+++ b/objects/led_controller.c
@@ -68,30 +68,23 @@ on_set_off       (Led          *led,
 	return TRUE;
 }
 
-//int tmp=0;
+
 void init_led(Led* led, GPIO* mygpio)
 {
-	int rc = GPIO_OK;
-	int i=5;
-//	tmp++;
+	int rc = GPIO_OK;;
 	do {
-		sleep(2);
 		uint8_t val;
 		rc = gpio_open(mygpio);
 		if (rc != GPIO_OK) { break; }
 		rc = gpio_read(mygpio,&val);
 		if (rc != GPIO_OK) { break; }
-		led_set_state(led,"off");
 		if (val == 0) {
 			led_set_state(led,"on");
 		} else {
 			led_set_state(led,"off");
 		}
-	i--;
-	} while(i!=0);
+	} while(0);
 	
-//if(tmp==3)
-//	led_set_state(led,"off");
 
 	gpio_close(mygpio);
 	if (rc != GPIO_OK) {
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 4/9] Remove ;
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
                   ` (2 preceding siblings ...)
  2015-11-19  3:00 ` [PATCH skeleton v2 3/9] LED test3 OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 5/9] Force fan duty to 100% OpenBMC Patches
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 objects/led_controller.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/objects/led_controller.c b/objects/led_controller.c
index 24cfc19..34945e1 100755
--- a/objects/led_controller.c
+++ b/objects/led_controller.c
@@ -71,7 +71,8 @@ on_set_off       (Led          *led,
 
 void init_led(Led* led, GPIO* mygpio)
 {
-	int rc = GPIO_OK;;
+	int rc = GPIO_OK;
+
 	do {
 		uint8_t val;
 		rc = gpio_open(mygpio);
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 5/9] Force fan duty to 100%
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
                   ` (3 preceding siblings ...)
  2015-11-19  3:00 ` [PATCH skeleton v2 4/9] Remove ; OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 6/9] Workarounf for fan PWM 100% OpenBMC Patches
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 bin/Barreleye.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index 783aa88..0e92e83 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -6,6 +6,11 @@ FLASH_DOWNLOAD_PATH = "/tmp"
 GPIO_BASE = 320
 SYSTEM_NAME = "Barreleye"
 
+import sys
+import gobject
+import dbus
+import dbus.service
+import dbus.mainloop.glib
 
 ## System states
 ##   state can change to next state in 2 ways:
@@ -423,6 +428,15 @@ GPIO_CONFIG['SLOT2_PRESENT'] =         { 'gpio_pin': 'N5', 'direction': 'in' }
 GPIO_CONFIG['MEZZ0_PRESENT'] =         { 'gpio_pin': 'O0', 'direction': 'in' }
 GPIO_CONFIG['MEZZ1_PRESENT'] =         { 'gpio_pin': 'O1', 'direction': 'in' }
 
+
+bus = dbus.SystemBus()
+
+for i in range(1,6):
+ print i
+ obj = bus.get_object("org.openbmc,sensors,hwmon","/org/openbmc/sensors/speed/fan"+str(i))
+ intf = dbus.Interface (obj,"org.openbmc.SensorValue")
+ intf.setValue(dbus.UInt32(255))
+
 def convertGpio(name):
 	name = name.upper()
 	c = name[0:1]
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 6/9] Workarounf for fan PWM 100%
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
                   ` (4 preceding siblings ...)
  2015-11-19  3:00 ` [PATCH skeleton v2 5/9] Force fan duty to 100% OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 7/9] Remove git 1e751075d5a11736df67c40ead5a8375141269d3 OpenBMC Patches
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 bin/startup_hacks.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bin/startup_hacks.sh b/bin/startup_hacks.sh
index 5868e8a..603fc1c 100755
--- a/bin/startup_hacks.sh
+++ b/bin/startup_hacks.sh
@@ -11,3 +11,12 @@ echo 0x2e > /sys/bus/i2c/devices/i2c-6/delete_device
 echo nct7904 0x2e > /sys/bus/i2c/devices/i2c-6/new_device
 echo nct7904 0x2d > /sys/bus/i2c/devices/i2c-6/new_device
 
+echo 255 > /sys/class/hwmon/hwmon1/pwm1
+echo 255 > /sys/class/hwmon/hwmon1/pwm2
+echo 255 > /sys/class/hwmon/hwmon1/pwm3
+echo 255 > /sys/class/hwmon/hwmon1/pwm4
+
+echo 255 > /sys/class/hwmon/hwmon2/pwm1
+echo 255 > /sys/class/hwmon/hwmon2/pwm2
+echo 255 > /sys/class/hwmon/hwmon2/pwm3
+echo 255 > /sys/class/hwmon/hwmon2/pwm4
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 7/9] Remove git 1e751075d5a11736df67c40ead5a8375141269d3
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
                   ` (5 preceding siblings ...)
  2015-11-19  3:00 ` [PATCH skeleton v2 6/9] Workarounf for fan PWM 100% OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 8/9] Set default LED status, add GPIO define OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 9/9] Init BMC_THROTTLE GPIO to high OpenBMC Patches
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 bin/Barreleye.py | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index 0e92e83..64decbf 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -6,12 +6,6 @@ FLASH_DOWNLOAD_PATH = "/tmp"
 GPIO_BASE = 320
 SYSTEM_NAME = "Barreleye"
 
-import sys
-import gobject
-import dbus
-import dbus.service
-import dbus.mainloop.glib
-
 ## System states
 ##   state can change to next state in 2 ways:
 ##   - a process emits a GotoSystemState signal with state name to goto
@@ -428,15 +422,6 @@ GPIO_CONFIG['SLOT2_PRESENT'] =         { 'gpio_pin': 'N5', 'direction': 'in' }
 GPIO_CONFIG['MEZZ0_PRESENT'] =         { 'gpio_pin': 'O0', 'direction': 'in' }
 GPIO_CONFIG['MEZZ1_PRESENT'] =         { 'gpio_pin': 'O1', 'direction': 'in' }
 
-
-bus = dbus.SystemBus()
-
-for i in range(1,6):
- print i
- obj = bus.get_object("org.openbmc,sensors,hwmon","/org/openbmc/sensors/speed/fan"+str(i))
- intf = dbus.Interface (obj,"org.openbmc.SensorValue")
- intf.setValue(dbus.UInt32(255))
-
 def convertGpio(name):
 	name = name.upper()
 	c = name[0:1]
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 8/9] Set default LED status, add GPIO define
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
                   ` (6 preceding siblings ...)
  2015-11-19  3:00 ` [PATCH skeleton v2 7/9] Remove git 1e751075d5a11736df67c40ead5a8375141269d3 OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  2015-11-19  3:00 ` [PATCH skeleton v2 9/9] Init BMC_THROTTLE GPIO to high OpenBMC Patches
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@mail.foxconn.com>

---
 bin/Barreleye.py         | 17 +++++++++++++++++
 objects/led_controller.c |  5 +++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index a1e7688..615b977 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -6,6 +6,12 @@ FLASH_DOWNLOAD_PATH = "/tmp"
 GPIO_BASE = 320
 SYSTEM_NAME = "Barreleye"
 
+import sys
+import gobject
+import dbus
+import dbus.service
+import dbus.mainloop.glib
+
 ## System states
 ##   state can change to next state in 2 ways:
 ##   - a process emits a GotoSystemState signal with state name to goto
@@ -472,9 +478,12 @@ GPIO_CONFIG['PGOOD']      =   { 'gpio_pin': 'C7', 'direction': 'in'  }
 GPIO_CONFIG['IDENTIFY']   =   { 'gpio_pin': 'R5', 'direction': 'out' }
 GPIO_CONFIG['BMC_READY']   =  { 'gpio_pin': 'H2', 'direction': 'out' }
 GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_pin': 'E0', 'direction': 'both' }
+GPIO_CONFIG['RESET_BUTTON'] = { 'gpio_pin': 'E2', 'direction': 'both' }
 GPIO_CONFIG['PCIE_RESET']   = { 'gpio_pin': 'B5', 'direction': 'out' }
 GPIO_CONFIG['USB_RESET']    = { 'gpio_pin': 'B6', 'direction': 'out' }
 GPIO_CONFIG['BEEP']    	  =   { 'gpio_pin': 'N7', 'direction': 'out' }
+GPIO_CONFIG['BMC_TROTTLE']    	  =   { 'gpio_pin': 'J3', 'direction': 'out' }
+GPIO_CONFIG['BMC_HEARTBEAT']    	  =   { 'gpio_pin': 'R4', 'direction': 'out' }
 GPIO_CONFIG['SLOT0_RISER_PRESENT'] =   { 'gpio_pin': 'N0', 'direction': 'in' }
 GPIO_CONFIG['SLOT1_RISER_PRESENT'] =   { 'gpio_pin': 'N1', 'direction': 'in' }
 GPIO_CONFIG['SLOT2_RISER_PRESENT'] =   { 'gpio_pin': 'N2', 'direction': 'in' }
@@ -484,6 +493,14 @@ GPIO_CONFIG['SLOT2_PRESENT'] =         { 'gpio_pin': 'N5', 'direction': 'in' }
 GPIO_CONFIG['MEZZ0_PRESENT'] =         { 'gpio_pin': 'O0', 'direction': 'in' }
 GPIO_CONFIG['MEZZ1_PRESENT'] =         { 'gpio_pin': 'O1', 'direction': 'in' }
 
+
+## bus = dbus.SystemBus()
+## for i in range(1,6):
+##  print i
+##  obj = bus.get_object("org.openbmc,sensors,hwmon","/org/openbmc/sensors/speed/fan"+str(i))
+##  intf = dbus.Interface (obj,"org.openbmc.SensorValue")
+##  intf.setValue(dbus.UInt32(255))
+
 def convertGpio(name):
 	name = name.upper()
 	c = name[0:1]
diff --git a/objects/led_controller.c b/objects/led_controller.c
index 34945e1..383e9ea 100755
--- a/objects/led_controller.c
+++ b/objects/led_controller.c
@@ -10,12 +10,13 @@ static const gchar* dbus_name        = "org.openbmc.control.led";
 
 static GDBusObjectManagerServer *manager = NULL;
 
-#define  NUM_GPIO 3
+#define  NUM_GPIO 4
 
 GPIO led_gpio[NUM_GPIO] = { 
 	(GPIO){"IDENTIFY"},
 	(GPIO){"BMC_READY"},
-	(GPIO){"BEEP"}
+	(GPIO){"BEEP"},
+        (GPIO){"BMC_HEARTBEAT"}
 };
 
 
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH skeleton v2 9/9] Init BMC_THROTTLE GPIO to high
  2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
                   ` (7 preceding siblings ...)
  2015-11-19  3:00 ` [PATCH skeleton v2 8/9] Set default LED status, add GPIO define OpenBMC Patches
@ 2015-11-19  3:00 ` OpenBMC Patches
  8 siblings, 0 replies; 10+ messages in thread
From: OpenBMC Patches @ 2015-11-19  3:00 UTC (permalink / raw)
  To: openbmc; +Cc: Ken

From: Ken <ken.sk.lai@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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-11-19  3:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19  3:00 [PATCH skeleton v2 0/9] Set default LED status, add GPIO define OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 1/9] LED test OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 2/9] LED test 2 OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 3/9] LED test3 OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 4/9] Remove ; OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 5/9] Force fan duty to 100% OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 6/9] Workarounf for fan PWM 100% OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 7/9] Remove git 1e751075d5a11736df67c40ead5a8375141269d3 OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 8/9] Set default LED status, add GPIO define OpenBMC Patches
2015-11-19  3:00 ` [PATCH skeleton v2 9/9] Init BMC_THROTTLE GPIO to high OpenBMC Patches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.