Skip to content
Snippets Groups Projects
Commit 13bc8603 authored by Nitin Garg's avatar Nitin Garg Committed by Stefano Babic
Browse files

imx6sx: Fix i.MX6SX HAB api function table offset


i.MX6SX ROM implements unified table sections.
The HAB function table is at offset 0x100. Update
the HAB function pointers accordingly.

Signed-off-by: default avatarNitin Garg <nitin.garg@freescale.com>
Tested-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
parent 661139fa
No related branches found
No related tags found
Loading
...@@ -53,11 +53,17 @@ typedef void *hab_rvt_authenticate_image_t(uint8_t, ptrdiff_t, ...@@ -53,11 +53,17 @@ typedef void *hab_rvt_authenticate_image_t(uint8_t, ptrdiff_t,
void **, size_t *, hab_loader_callback_f_t); void **, size_t *, hab_loader_callback_f_t);
typedef void hapi_clock_init_t(void); typedef void hapi_clock_init_t(void);
#define HAB_RVT_REPORT_EVENT (*(uint32_t *)0x000000B4) #ifdef CONFIG_MX6SX
#define HAB_RVT_REPORT_STATUS (*(uint32_t *)0x000000B8) #define HAB_RVT_BASE 0x00000100
#define HAB_RVT_AUTHENTICATE_IMAGE (*(uint32_t *)0x000000A4) #else
#define HAB_RVT_ENTRY (*(uint32_t *)0x00000098) #define HAB_RVT_BASE 0x00000094
#define HAB_RVT_EXIT (*(uint32_t *)0x0000009C) #endif
#define HAB_RVT_ENTRY (*(uint32_t *)(HAB_RVT_BASE + 0x04))
#define HAB_RVT_EXIT (*(uint32_t *)(HAB_RVT_BASE + 0x08))
#define HAB_RVT_AUTHENTICATE_IMAGE (*(uint32_t *)(HAB_RVT_BASE + 0x10))
#define HAB_RVT_REPORT_EVENT (*(uint32_t *)(HAB_RVT_BASE + 0x20))
#define HAB_RVT_REPORT_STATUS (*(uint32_t *)(HAB_RVT_BASE + 0x24))
#define HAB_RVT_REPORT_EVENT_NEW (*(uint32_t *)0x000000B8) #define HAB_RVT_REPORT_EVENT_NEW (*(uint32_t *)0x000000B8)
#define HAB_RVT_REPORT_STATUS_NEW (*(uint32_t *)0x000000BC) #define HAB_RVT_REPORT_STATUS_NEW (*(uint32_t *)0x000000BC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment