Hi Johan, On Sun, 9 Jan 2022 at 08:26, Johan Jonker <jbx6...@gmail.com> wrote: > > The ns16550.c driver has the following conditions for .of_match: > > CONFIG_IS_ENABLED(OF_REAL) > > For Rockchip SoCs with TPL/SPL and platform data that need serial > support the serial_rockchip.c driver was made. It copies this data > and then calls ns16550_serial_probe(). With the addition of yet an other > SoC type this driver is in need for a little restyle. > Simplify struct rockchip_uart_plat and add extra SoCs with > DM_DRIVER_ALIAS(). Return -ENODEV when the ns16550.c driver > probe function is available. > > Signed-off-by: Johan Jonker <jbx6...@gmail.com> > --- > drivers/serial/serial_rockchip.c | 36 +++++++++++++------------------- > 1 file changed, 14 insertions(+), 22 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org>