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)
Sun, May 5, 12:46 PM
Unknown Object (File)
Sun, Apr 28, 3:12 PM
Unknown Object (File)
Sun, Apr 28, 2:58 PM
Unknown Object (File)
Feb 23 2024, 4:05 PM
Unknown Object (File)
Dec 22 2023, 9:52 PM
Unknown Object (File)
Dec 11 2023, 12:11 AM
Unknown Object (File)
Nov 13 2023, 12:10 PM
Unknown Object (File)
Oct 25 2023, 8:04 AM
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.