]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: serial: restyle the serial_rockchip.c driver
authorJohan Jonker <jbx6244@gmail.com>
Sat, 9 Apr 2022 16:55:10 +0000 (18:55 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:13 +0000 (11:25 +0800)
commit728489753c75888b2ffd70ad37b2b0590edc45d9
tree11aacb88f7cc18e19346decebc78e90dd40646d2
parent2d3bb400f37b86c3da3a64a9ee4c1d79caa2fdd6
rockchip: serial: restyle the serial_rockchip.c driver

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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/serial/serial_rockchip.c