<p>Patrick Rudolph has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20327">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mb/lenovo/t400/dock: Control LEDs<br><br>Toggle LEDs after successful dock and undock.<br><br>On boot the LED will light up and on undock button<br>press the LED will turn of again.<br><br>Tested on Lenovo T500.<br><br>Change-Id: Ib5851f4abcedf4041faae6b3b810102012f488cd<br>Signed-off-by: Patrick Rudolph <siro@das-labor.org><br>---<br>M src/mainboard/lenovo/t400/dock.c<br>1 file changed, 10 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/20327/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/lenovo/t400/dock.c b/src/mainboard/lenovo/t400/dock.c<br>index 65dd6f0..74711e1 100644<br>--- a/src/mainboard/lenovo/t400/dock.c<br>+++ b/src/mainboard/lenovo/t400/dock.c<br>@@ -236,11 +236,21 @@<br>              return;<br>       }<br>     pc87384_init();<br>+<br>+   ec_write(H8_LED_CONTROL,<br>+              H8_LED_CONTROL_OFF | H8_LED_CONTROL_DOCK_LED1);<br>+     ec_write(H8_LED_CONTROL,<br>+              H8_LED_CONTROL_ON  | H8_LED_CONTROL_DOCK_LED2);<br> }<br> <br> void dock_disconnect(void)<br> {<br>      pc87382_disconnect();<br>+<br>+     ec_write(H8_LED_CONTROL,<br>+              H8_LED_CONTROL_OFF | H8_LED_CONTROL_DOCK_LED1);<br>+     ec_write(H8_LED_CONTROL,<br>+              H8_LED_CONTROL_OFF | H8_LED_CONTROL_DOCK_LED2);<br> }<br> <br> void h8_mainboard_init_dock(void)<br></pre><p>To view, visit <a href="https://review.coreboot.org/20327">change 20327</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/20327"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ib5851f4abcedf4041faae6b3b810102012f488cd </div>
<div style="display:none"> Gerrit-Change-Number: 20327 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> </div>