From: Shengzhou Liu Date: Mon, 10 Apr 2017 08:00:08 +0000 (+0800) Subject: powerpc/board/t1024rdb: enable board-level reset when issuing reset command X-Git-Tag: v2017.05-rc3~61^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0dfec863e2ca5088dd797a5b6853d4c0df9002c;p=u-boot powerpc/board/t1024rdb: enable board-level reset when issuing reset command As board-specific reset logic, it needs to issue reset signal via CPLD when issuing 'reset' command in u-boot, this patch solves the issue of reset command not working on T1024RDB. Signed-off-by: Shengzhou Liu Reviewed-by: York Sun --- diff --git a/board/freescale/t102xrdb/t102xrdb.c b/board/freescale/t102xrdb/t102xrdb.c index 56f7c1a909..f370f72baa 100644 --- a/board/freescale/t102xrdb/t102xrdb.c +++ b/board/freescale/t102xrdb/t102xrdb.c @@ -167,6 +167,13 @@ unsigned long get_board_ddr_clk(void) return CONFIG_DDR_CLK_FREQ; } +#ifdef CONFIG_TARGET_T1024RDB +void board_reset(void) +{ + CPLD_WRITE(reset_ctl1, CPLD_LBMAP_RESET); +} +#endif + int misc_init_r(void) { return 0;