aboutsummaryrefslogtreecommitdiff
path: root/board/freescale/t208xrdb/t208xrdb.c
diff options
context:
space:
mode:
authorCamelia Groza2021-07-29 19:31:20 +0300
committerPriyanka Jain2021-08-18 15:55:15 +0530
commit6466b95e7c94a48d8f8093b0a765fd51ab6e84ae (patch)
treea2ec9523a1b5d34796799a35031ec4293c2f4112 /board/freescale/t208xrdb/t208xrdb.c
parent00ac37a9bc3da4e072fc1c4b460ec28c8dcd2275 (diff)
board: freescale: t208xrdb: enable Power-On Reset for rev D boards
Starting with board revision D, the MISCCSR CPLD register needs to be configured to enable Power-on Reset for software reset commands. Signed-off-by: Camelia Groza <camelia.groza@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/freescale/t208xrdb/t208xrdb.c')
-rw-r--r--board/freescale/t208xrdb/t208xrdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/t208xrdb/t208xrdb.c b/board/freescale/t208xrdb/t208xrdb.c
index 1f0cdee0b86..947dd6aa9f3 100644
--- a/board/freescale/t208xrdb/t208xrdb.c
+++ b/board/freescale/t208xrdb/t208xrdb.c
@@ -128,6 +128,13 @@ int misc_init_r(void)
reg |= CPLD_RSTCON_EDC_RST;
CPLD_WRITE(reset_ctl, reg);
+ /* Enable POR for boards revisions D and up */
+ if (get_hw_revision() >= 'D') {
+ reg = CPLD_READ(misc_csr);
+ reg |= CPLD_MISC_POR_EN;
+ CPLD_WRITE(misc_csr, reg);
+ }
+
return 0;
}