PDK-6948: Board: Added mmr unlock for am64x evm pinmux
authorM V Pratap Reddy <x0257344@ti.com>
Fri, 20 Nov 2020 02:44:00 +0000 (20:44 -0600)
committerSivaraj R <sivaraj@ti.com>
Fri, 20 Nov 2020 03:48:23 +0000 (21:48 -0600)
packages/ti/board/src/am64x_evm/board_mmr.c
packages/ti/board/src/am64x_evm/board_pinmux.c

index 9da407d04ab78794174174c70b778e2f1c6c60ae..b4c585edd2282683a866c5e4516368798818b54e 100644 (file)
@@ -291,6 +291,7 @@ uint32_t MCU_PLL_MMR_change_all_locks(mmr_lock_actions_t target_state);
 Board_STATUS Board_unlockMMR(void)\r
 {\r
     MAIN_PADCONFIG_MMR_unlock_all();\r
+    MCU_PADCONFIG_MMR_unlock_all();\r
     return BOARD_SOK;\r
 }\r
 \r
index 06bb4f7e9d3ab118a7b75297a3bc8126f5cfedb4..0e9c6f68e79a80707ebe1a5b8eba1f2d4975b7af 100644 (file)
@@ -62,6 +62,8 @@ Board_STATUS Board_pinmuxConfig (void)
     HW_WR_REG32(BOARD_UART_TX_LOCK_KICK_ADDR, KICK0_UNLOCK_VAL);\r
     HW_WR_REG32(BOARD_UART_TX_LOCK_KICK_ADDR + 4U, KICK1_UNLOCK_VAL);\r
 \r
+    Board_unlockMMR();\r
+\r
     pinmuxModuleCfg_t* pModuleData = NULL;\r
     pinmuxPerCfg_t* pInstanceData = NULL;\r
     int32_t i, j, k;\r