[PATCH v2 10/21] serial: add uart driver for MediaTek MT7620 SoC
Simon Glass
sjg at chromium.org
Tue Nov 3 16:12:08 CET 2020
On Fri, 30 Oct 2020 at 03:34, Weijie Gao <weijie.gao at mediatek.com> wrote:
>
> This patch adds uart support for MediaTek MT7620 and earlier SoCs.
>
> The UART used by MT7620 is incompatible with the ns16550a driver.
> All registers of this UART have different addresses. A special 16-bit
> register for Divisor Latch is used to set the baudrate instead of the
> original two 8-bit registers (DLL and DLM).
>
> The driver supports of-platdata which is useful for tiny SPL.
>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
> v2 changes: replace non-DM code with of-platdata
> ---
> drivers/serial/Kconfig | 20 +++
> drivers/serial/Makefile | 1 +
> drivers/serial/serial.c | 2 +
> drivers/serial/serial_mt7620.c | 246 +++++++++++++++++++++++++++++++++
> 4 files changed, 269 insertions(+)
> create mode 100644 drivers/serial/serial_mt7620.c
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list