]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: serial: Kconfig: allow ROCKCHIP_SERIAL enabled in TPL
authorJohan Jonker <jbx6244@gmail.com>
Sat, 9 Apr 2022 16:55:14 +0000 (18:55 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:13 +0000 (11:25 +0800)
commit9ee6c0766da8bb95c50a12bd774081bcdb0cdedb
tree7acce3f18f5afcb496b97cff7eebbbd79ef375bc
parent6dcaf2d22b1c3f88481431372f1e48d36aa2a23c
rockchip: serial: Kconfig: allow ROCKCHIP_SERIAL enabled in TPL

The serial_rockchip.c driver converts platdata to the data structure
used in the ns16550.c file and then calls the function
ns16550_serial_probe().
When compiled with OF_REAL the serial_rockchip.c driver returns
now -ENODEV when probed and does no harm.
The config ROCKCHIP_SERIAL is currently depends on SPL_OF_PLATDATA.
Allow serial port use for both SPL and TPL by removing this
dependency and SPL_BUILD restriction.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/serial/Kconfig
drivers/serial/Makefile