diff options
Diffstat (limited to 'arch/arm/include/asm/arch-mx6/mx6_secure.h')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/mx6_secure.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-mx6/mx6_secure.h b/arch/arm/include/asm/arch-mx6/mx6_secure.h index 6fe2402..456cb94 100644 --- a/arch/arm/include/asm/arch-mx6/mx6_secure.h +++ b/arch/arm/include/asm/arch-mx6/mx6_secure.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2013 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2012-2014 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,6 +66,17 @@ typedef void *hab_rvt_authenticate_image_t(uint8_t, ptrdiff_t, \ void **, size_t *, hab_loader_callback_f_t); typedef void hapi_clock_init_t(void); +#ifdef CONFIG_ROM_UNIFIED_SECTIONS + +#define HAB_RVT_UNIFIED_BASE 0x00000100 +#define HAB_RVT_ENTRY (*(uint32_t *) (HAB_RVT_UNIFIED_BASE + 0x04)) +#define HAB_RVT_EXIT (*(uint32_t *) (HAB_RVT_UNIFIED_BASE + 0x08)) +#define HAB_RVT_AUTHENTICATE_IMAGE (*(uint32_t *) (HAB_RVT_UNIFIED_BASE + 0x10)) +#define HAB_RVT_REPORT_EVENT (*(uint32_t *) (HAB_RVT_UNIFIED_BASE + 0x20)) +#define HAB_RVT_REPORT_STATUS (*(uint32_t *) (HAB_RVT_UNIFIED_BASE + 0x24)) + +#else + #define HAB_RVT_REPORT_EVENT (*(uint32_t *) 0x000000B4) #define HAB_RVT_REPORT_STATUS (*(uint32_t *) 0x000000B8) #define HAB_RVT_AUTHENTICATE_IMAGE (*(uint32_t *) 0x000000A4) @@ -78,6 +89,8 @@ typedef void hapi_clock_init_t(void); #define HAB_RVT_ENTRY_NEW (*(uint32_t *) 0x0000009C) #define HAB_RVT_EXIT_NEW (*(uint32_t *) 0x000000A0) +#endif + #define HAB_CID_ROM 0 /**< ROM Caller ID */ #define HAB_CID_UBOOT 1 /**< UBOOT Caller ID*/ /* ----------- end of HAB API updates ------------*/ |