board: rockchip: unblock CAN bus in spl_board_init on Jaguar
authorJakob Unterwurzacher <jakobunt@gmail.com>
Tue, 17 Jun 2025 08:42:52 +0000 (10:42 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 30 Aug 2025 15:03:54 +0000 (23:03 +0800)
commitde0c91e7a7605b047d3dc96f9e1c02701af6d716
tree4f8e9b26b9a147bc1c1639c01b27156b437f1e9c
parenta979380123e5e0da6b45eff0aec0ba71fd0440c6
board: rockchip: unblock CAN bus in spl_board_init on Jaguar

GPIO0_B7 is routed to TXI of the on-board CAN transceiver. The
line has a pull-down per SoC default.

This means the CAN transceiver transmits a dominant zero
and blocks the CAN bus until Linux boots and reconfigures the pin.

Let's switch to pull-up as soon as we can (i.e. in SPL).
This cuts down the "bus is blocked" time from 10 seconds to < 1 second.

Of course, to this needs CONFIG_SPL_BOARD_INIT, so enable it
the Jaguar defconfig.

Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
board/theobroma-systems/jaguar_rk3588/jaguar_rk3588.c
configs/jaguar-rk3588_defconfig