From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 26 Oct 2020 22:51:55 -0600 Subject: [PATCH 08/18] serial: add uart driver for MediaTek MT7620 SoC In-Reply-To: <1602833759-19379-1-git-send-email-weijie.gao@mediatek.com> References: <1602833759-19379-1-git-send-email-weijie.gao@mediatek.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Weijie, On Fri, 16 Oct 2020 at 01:36, Weijie Gao 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 can be built without DM which is useful for tiny SPL. > > Signed-off-by: Weijie Gao > --- > drivers/serial/Kconfig | 20 ++ > drivers/serial/Makefile | 1 + > drivers/serial/serial.c | 2 + > drivers/serial/serial_mt7620.c | 350 +++++++++++++++++++++++++++++++++ > 4 files changed, 373 insertions(+) > create mode 100644 drivers/serial/serial_mt7620.c Why do you need to build without DM? We have of-platdata which provides for smaller images. What is the SRAM size available? Regards, Simon