From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Wed, 9 Jan 2019 08:35:58 +0000 Subject: [U-Boot] [PATCH v1 3/4] serial: add an of-platdata driver for "snps, dw-apb-uart" In-Reply-To: <20190107211423.10151-4-simon.k.r.goldschmidt@gmail.com> References: <20190107211423.10151-1-simon.k.r.goldschmidt@gmail.com> <20190107211423.10151-4-simon.k.r.goldschmidt@gmail.com> Message-ID: <4881796E12491D4BB15146FE0209CE64681C1E9A@DE02WEMBXB.internal.synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Simon, > -----Original Message----- > From: Simon Goldschmidt [mailto:simon.k.r.goldschmidt at gmail.com] > Sent: Tuesday, January 8, 2019 12:14 AM > To: Marek Vasut > Cc: Simon Goldschmidt ; Patrice Chotard ; > Simon Glass ; Anup Patel ; Lokesh Vutla ; > Alexey Brodkin ; Patrick Delaunay ; Marek Vasut > ; u-boot at lists.denx.de; Álvaro Fernández Rojas ; Ryder Lee > ; Vikas Manocha ; Alexander Graf ; Weijie > Gao > Subject: [PATCH v1 3/4] serial: add an of-platdata driver for "snps,dw-apb-uart" > > Add a driver for the "snps,dw-apb-uart" used in socfpga and others. > > This driver is required to get OF_PLATDATA to work for socfpga. > It uses the ns16550 driver, converting the platdata from of-platdata > go the ns16550 format. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/serial/Kconfig | 10 ++++++++ > drivers/serial/Makefile | 1 + > drivers/serial/serial_dw_apb.c | 42 ++++++++++++++++++++++++++++++++++ > 3 files changed, 53 insertions(+) > create mode 100644 drivers/serial/serial_dw_apb.c > > diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig > index b7ff2960ab..10addd3309 100644 > --- a/drivers/serial/Kconfig > +++ b/drivers/serial/Kconfig > @@ -511,6 +511,16 @@ config BCM283X_PL011_SERIAL > that supports automatic disable, so that it only gets used when > the UART is actually muxed. > > +config DESIGNWARE_SERIAL > + bool "DesignWare UART support" > + depends on DM_SERIAL && SPL_OF_PLATDATA Might be a bit naïve question but why depend on SPL_OF_PLATDATA only? What about CONFIG_OF_EMBED? I'd happily switch my ARC boards on this driver and get rid of all CONFIG_SYS_NS16550_xxx nonsense in include/configs/myboardname.h -Alexey