[PATCH v1 1/3] rockchip: serial: restyle the serial_rockchip.c driver
Simon Glass
sjg at chromium.org
Wed Jan 12 21:03:58 CET 2022
Hi Johan,
On Sun, 9 Jan 2022 at 08:26, Johan Jonker <jbx6244 at 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 <jbx6244 at gmail.com>
> ---
> drivers/serial/serial_rockchip.c | 36 +++++++++++++-------------------
> 1 file changed, 14 insertions(+), 22 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list