PMUFW: Mod: Add CSU lock down request to legacy module

Register for secure lock-down request from CSU and
call the corresponding ROM handler when this event occurs

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
This commit is contained in:
Jyotheeswar Reddy 2015-08-06 11:02:22 -07:00 committed by Nava kishore Manne
parent 7968c6a661
commit 40cd4f3229
2 changed files with 12 additions and 2 deletions

View file

@ -46,7 +46,10 @@ static void LegacyCfgInit(const XPfw_Module_t *ModPtr, const u32 *CfgData,
XPfw_CoreRegisterEvent(ModPtr, XPFW_EV_REQ_PWRUP);
XPfw_CoreRegisterEvent(ModPtr, XPFW_EV_REQ_PWRDN);
fw_printf("LEGACY PWR UP/DN (MOD-%d): Initialized.\r\n", ModPtr->ModId);
/* Used for handling Secure Lock-Down request from CSU */
XPfw_CoreRegisterEvent(ModPtr, XPFW_EV_CSU_SEC_LOCK);
fw_printf("Legacy Request Handler (MOD-%d): Initialized.\r\n", ModPtr->ModId);
}
/* Event Handler */
@ -66,6 +69,13 @@ static void LegacyEventHandler(const XPfw_Module_t *ModPtr, u32 EventId)
fw_printf("Done\r\n");
}
if (XPFW_EV_CSU_SEC_LOCK == EventId) {
/* Call ROM Handler for Secure Lock-DOwn */
fw_printf("XPFW: Calling Secure Lock-Down Handler..");
XpbrServHndlrTbl[XPBR_SERV_EXT_CSU_SECLOCK]();
fw_printf("Done\r\n");
}
}
/*

View file

@ -1,4 +1,4 @@
#ifndef ZYNQMP_XPFW_VERSION__H_
#define ZYNQMP_XPFW_VERSION__H_
#define ZYNQMP_XPFW_VERSION "2015.3-rc1-9-g3e98ed456bac"
#define ZYNQMP_XPFW_VERSION "2015.3-rc1-10-g8c759fe9bbb8"
#endif