diff mbox

[U-Boot] board/t1024rdb: enable board-level reset when issuing reset command

Message ID 1484129744-5639-1-git-send-email-Shengzhou.Liu@nxp.com
State Superseded
Delegated to: York Sun
Headers show

Commit Message

Shengzhou Liu Jan. 11, 2017, 10:15 a.m. UTC
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 <Shengzhou.Liu@nxp.com>
---
 board/freescale/t102xrdb/t102xrdb.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/board/freescale/t102xrdb/t102xrdb.c b/board/freescale/t102xrdb/t102xrdb.c
index 01dbf38..6de877a 100644
--- a/board/freescale/t102xrdb/t102xrdb.c
+++ b/board/freescale/t102xrdb/t102xrdb.c
@@ -167,6 +167,11 @@  unsigned long get_board_ddr_clk(void)
 	return CONFIG_DDR_CLK_FREQ;
 }
 
+void board_reset(void)
+{
+	CPLD_WRITE(reset_ctl1, CPLD_LBMAP_RESET);
+}
+
 int misc_init_r(void)
 {
 	return 0;