]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: freescale: p1_p2_rdb_pc: Avoid usage of CPLD's system reset register
authorPali Rohár <pali@kernel.org>
Mon, 1 Aug 2022 13:31:45 +0000 (15:31 +0200)
committerPeng Fan <peng.fan@nxp.com>
Tue, 6 Sep 2022 06:08:34 +0000 (14:08 +0800)
commit7e962cb132d6056b0a6f75eee2d800c9422da961
tree7bbda107d44c82353bb3f2a352e2b54f0e237726
parent27b2bff6eb18dfb5ba58f68b79fdc57d72c6d2a3
board: freescale: p1_p2_rdb_pc: Avoid usage of CPLD's system reset register

CPLD's system reset register is buggy and requires workaround in U-Boot.
So use this kind of board reset only when there is no other reset option.

Introduce a new board_reset_last() callback which is last-stage
board-specific reset and implement CPLD's system reset in this new
board_reset_last() callback instead of board_reset() callback.

Fixes: 20fb58fc5a1c ("board: freescale: p1_p2_rdb_pc: Implement board_reset()")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/powerpc/cpu/mpc85xx/cpu.c
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c