From: Pali Rohár Date: Sun, 1 May 2022 12:23:14 +0000 (+0200) Subject: board: freescale: p1_p2_rdb_pc: Implement board_reset() X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=20fb58fc5a1c83ee0085b2e9f7ecda8b761a5592;p=u-boot.git board: freescale: p1_p2_rdb_pc: Implement board_reset() Do board reset via CPLD's system reset register. Signed-off-by: Pali Rohár --- diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index fc676eb31f..947bbc9a5a 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -83,6 +83,12 @@ struct cpld_data { #define CPLD_FXS_LED 0x0F #define CPLD_SYS_RST 0x00 +void board_reset(void) +{ + struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); + out_8(&cpld_data->system_rst, 1); +} + void board_cpld_init(void) { struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE);