Page MenuHomeFreeBSD

Initial import of Ralink/Mediatek MIPS SoC support #4
ClosedPublic

Authored by sgalabov on Apr 5 2016, 1:23 PM.
Tags
Referenced Files
Unknown Object (File)
Thu, Nov 28, 5:23 AM
Unknown Object (File)
Mon, Nov 25, 12:19 PM
Unknown Object (File)
Nov 10 2024, 9:21 PM
Unknown Object (File)
Oct 7 2024, 10:54 AM
Unknown Object (File)
Oct 4 2024, 8:54 AM
Unknown Object (File)
Oct 4 2024, 7:38 AM
Unknown Object (File)
Oct 1 2024, 6:58 PM
Unknown Object (File)
Sep 29 2024, 12:23 PM
Subscribers

Details

Summary

UART drivers.

uart_dev_mtk.[ch] are the old-style Mediatek/Ralink-specific UART driver as also found in sys/mips/rt305x/uart_dev_rt305x.c, with minor improvements and FDT attachment enabled for the appropriate SoCs.
uart_dev_mtk_ns8250.c is the new-style ns16550a-compatible UART driver found in newer Mediatek SoCs. It uses the uart_dev_ns8250.c driver indirectly and is basically just a wrapper around it and only overrides its probe method.
The reason I am not using the uart_dev_ns8250.c driver directly is because I have some code that does UART clock detection before initializing the UART, so that we don't need to hard-code the UART clock frequency in the dts files for each board.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sgalabov retitled this revision from to Initial import of Ralink/Mediatek MIPS SoC support #4.
sgalabov updated this object.
sgalabov edited the test plan for this revision. (Show Details)
sgalabov added a reviewer: adrian.
sgalabov set the repository for this revision to rS FreeBSD src repository - subversion.
sgalabov added a project: MIPS.
adrian edited edge metadata.

cool!

This revision is now accepted and ready to land.Apr 5 2016, 4:17 PM
This revision was automatically updated to reflect the committed changes.