aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-05-01 14:23:14 +0200
committerPeng Fan <peng.fan@nxp.com>2022-06-20 09:18:26 +0800
commit20fb58fc5a1c83ee0085b2e9f7ecda8b761a5592 (patch)
treec841ae1a252f26e7c5448957e67fb3cc0fc63f36 /board
parentae0e7ee88658bf9226a29453664e7b5c26d2c0a0 (diff)
downloadu-boot-20fb58fc5a1c83ee0085b2e9f7ecda8b761a5592.zip
u-boot-20fb58fc5a1c83ee0085b2e9f7ecda8b761a5592.tar.gz
u-boot-20fb58fc5a1c83ee0085b2e9f7ecda8b761a5592.tar.bz2
board: freescale: p1_p2_rdb_pc: Implement board_reset()
Do board reset via CPLD's system reset register. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c6
1 files changed, 6 insertions, 0 deletions
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 fc676eb..947bbc9 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);