Multiple UARTs on Beaglebone Black

Joel Sherrill joel.sherrill at oarcorp.com
Fri Jun 5 18:53:03 UTC 2015



On June 5, 2015 1:50:41 PM CDT, Steve B <sbattazzo at gmail.com> wrote:
>Hi guys,
>
>I would like to use more than one UART on the Beaglebone Black.
>
>I see that the Console_Configuration_Ports in console-config.c only has
>one entry but some of the header files do have base addresses and other
>things for a couple more UARTs.
>
>Can I simply add a second entry to that table named "/dev/ttyS1" and
>open "/dev/ttyS1" and count on ns16550.c to take care of things, or
>will I need to also modify the other functions in console-config.c to
>account for other possible entries in the table?

You should review the existing methods to see that there are correct for the other serial ports. I expect that they will be ok but the base address and interrupt vectors may need to change. also check the probe method to make sure it is correct for the porch you're adding.

>Or do those functions only matter if I want to have the options to use
>the other UARTs as stdout?
>

No. Those table entries mate the generic drive with bsp specific glue code and settings.

>
>Thanks,
>
>Steve

--joel



More information about the users mailing list