<div dir="ltr">Hi Henbin<div><br></div><div>It's funny that you ask, since I had just started to look into the same problem.</div><div><br></div><div>I'd like to change the UART routing on an AST2500 when a client connects to the obmc-console-server. The use case is to dynamically connect the host's UART to a UART owned by the BMC.</div><div><br></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I was thinking of writing a kernel driver that would expose the config options from the HICRA register on AST2500 as /sys files. Each file represents the target UART1..5 and IO1..5. The file value represents the source UART1..5 and IO1..5. Not all combinations are supported by the Aspeed, so I'd add the necessary checks and error reporting into the code.</span></div><div><br></div><div>An alternative would be to just use /dev/mem to do that, but my understanding is that default support for that is going away or has gone away.</div><div><br></div><div>Oskar.</div><div><br><div class="gmail_quote"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>
From: Henbin Chang <<a href="mailto:henbinchang@gmail.com" target="_blank">henbinchang@gmail.com</a>><br>
Date: Wed, Aug 1, 2018 at 12:11 AM<br>
Subject: UART Route setting<br>
To: OpenBMC Maillist <<a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a>><br>
<br>
<br>
Hi,<br>
<br>
Could anyone know how to modify UART Route setting through dts, driver<br>
or other mechanism?<br>
<br>
Or I have to find a point to modify it e.g. board_init() in the u-boot.<br>
<br>
Thanks.<br>
</blockquote></div></div></div>