<p>Furquan Shaikh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20834">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">drivers/uart: Use baudrate of 115200 by default<br><br>If TTYS0_BAUD is not configured, then by default use baudrate of 115200.<br><br>BUG=b:64030366<br><br>Change-Id: Ida4c7ae77aba5dfd4ec331e22a54ce43a91bde00<br>---<br>M src/drivers/uart/util.c<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/20834/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/drivers/uart/util.c b/src/drivers/uart/util.c<br>index f0f885d..4f31261 100644<br>--- a/src/drivers/uart/util.c<br>+++ b/src/drivers/uart/util.c<br>@@ -33,7 +33,11 @@<br>    if (b_index < 8)<br>           return baud[b_index];<br> #endif<br>-       return CONFIG_TTYS0_BAUD;<br>+    /*<br>+    * If TTYS0_BAUD is not configured, then by default use 115200 as the<br>+         * baud rate.<br>+         */<br>+  return CONFIG_TTYS0_BAUD ? CONFIG_TTYS0_BAUD : 115200;<br> }<br> <br> /* Calculate divisor. Do not floor but round to nearest integer. */<br></pre><p>To view, visit <a href="https://review.coreboot.org/20834">change 20834</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/20834"/><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: Ida4c7ae77aba5dfd4ec331e22a54ce43a91bde00 </div>
<div style="display:none"> Gerrit-Change-Number: 20834 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Furquan Shaikh <furquan@google.com> </div>