<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックAdditional UART in u-boot</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Additional-UART-in-u-boot/m-p/786268#M121856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use an additional UART interface (UART2) in my case during u-boot to send and recevice data to a peripheral. My u-boot console should still work with my current UART interface (UART1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added my UART2 to my dtsi file:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;amp;uart2&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-names = &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"default"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-0 = &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;amp;pinctrl_uart2&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status = &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"okay"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I suppose I need 3 functions, uart_init, uart_putc and uart_getc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use the routines from /drivers/serial/serial_mxc.c?&lt;/P&gt;&lt;P&gt;It allows only using one UART interface, defined by&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;#define&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;UART_PHYS&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CONFIG_MXC_UART_BASE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2018 12:52:08 GMT</pubDate>
    <dc:creator>david_schmidt</dc:creator>
    <dc:date>2018-09-21T12:52:08Z</dc:date>
    <item>
      <title>Additional UART in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Additional-UART-in-u-boot/m-p/786268#M121856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use an additional UART interface (UART2) in my case during u-boot to send and recevice data to a peripheral. My u-boot console should still work with my current UART interface (UART1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added my UART2 to my dtsi file:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;amp;uart2&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-names = &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"default"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-0 = &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;&amp;amp;pinctrl_uart2&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status = &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"okay"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I suppose I need 3 functions, uart_init, uart_putc and uart_getc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use the routines from /drivers/serial/serial_mxc.c?&lt;/P&gt;&lt;P&gt;It allows only using one UART interface, defined by&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;#define&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;UART_PHYS&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CONFIG_MXC_UART_BASE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 12:52:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Additional-UART-in-u-boot/m-p/786268#M121856</guid>
      <dc:creator>david_schmidt</dc:creator>
      <dc:date>2018-09-21T12:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Additional UART in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Additional-UART-in-u-boot/m-p/786269#M121857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at implementation of this feature on other boards and post&lt;/P&gt;&lt;P&gt;issue on uboot mail list&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lists.denx.de/pipermail/u-boot/2011-June/095026.html" title="https://lists.denx.de/pipermail/u-boot/2011-June/095026.html"&gt;[U-Boot] [PATCH 02/18] Blackfin: uart: add multiple serial support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lists.denx.de/listinfo" title="https://lists.denx.de/listinfo"&gt;lists.denx.de Mailing Lists&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 23:33:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Additional-UART-in-u-boot/m-p/786269#M121857</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-09-21T23:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Additional UART in u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Additional-UART-in-u-boot/m-p/786270#M121858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use an additional UART interface in u-boot, one can copy the functions from &lt;EM&gt;/drivers/serial/serial_mxc.c&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;The thing I missed was the&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #dcdcaa;"&gt;imx_iomux_v3_setup_multiple_pads&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(uart2_pads, &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;ARRAY_SIZE&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(uart2_pads));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;pin initialization in the &lt;EM&gt;board.c,&amp;nbsp;&lt;/EM&gt;but this only works in &lt;EM&gt;board_init&lt;/EM&gt; or &lt;EM&gt;board_late_init,&lt;/EM&gt;&amp;nbsp;and &lt;STRONG&gt;not&lt;/STRONG&gt; in&amp;nbsp;&lt;EM&gt;board_early_init_f&lt;/EM&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, the send and receive functions work properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Additional-UART-in-u-boot/m-p/786270#M121858</guid>
      <dc:creator>david_schmidt</dc:creator>
      <dc:date>2018-09-28T12:10:28Z</dc:date>
    </item>
  </channel>
</rss>

