diff options
author | Ye.Li <B37916@freescale.com> | 2015-03-31 14:20:28 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2015-03-31 15:05:24 +0800 |
commit | 5ae1cb9d8e7cd7babd1d7ef7f2303664a4e15c26 (patch) | |
tree | f0b8a81ab3dcb3f4333f4517207f5001f563c1ce /arch | |
parent | 7baadda7f39f8479f3c9d1075c2dee3de94fef3b (diff) | |
download | u-boot-imx-5ae1cb9d8e7cd7babd1d7ef7f2303664a4e15c26.zip u-boot-imx-5ae1cb9d8e7cd7babd1d7ef7f2303664a4e15c26.tar.gz u-boot-imx-5ae1cb9d8e7cd7babd1d7ef7f2303664a4e15c26.tar.bz2 |
MLK-10513 mx7: HAB: Fix HAB RVT addresses to unified section
Incorrect hab_rvt addresses were used for getting HAB functions.
Need to change to addresses in unified section.
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/mx7/hab.c | 10 | ||||
-rw-r--r-- | arch/arm/include/asm/arch-mx7/hab.h | 6 |
2 files changed, 5 insertions, 11 deletions
diff --git a/arch/arm/cpu/armv7/mx7/hab.c b/arch/arm/cpu/armv7/mx7/hab.c index 5b36f67..ae9591b 100644 --- a/arch/arm/cpu/armv7/mx7/hab.c +++ b/arch/arm/cpu/armv7/mx7/hab.c @@ -13,27 +13,27 @@ /* -------- start of HAB API updates ------------*/ #define hab_rvt_report_event_p \ ( \ - ((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT_NEW) \ + ((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT) \ ) #define hab_rvt_report_status_p \ ( \ - ((hab_rvt_report_status_t *)HAB_RVT_REPORT_STATUS_NEW) \ + ((hab_rvt_report_status_t *)HAB_RVT_REPORT_STATUS) \ ) #define hab_rvt_authenticate_image_p \ ( \ - ((hab_rvt_authenticate_image_t *)HAB_RVT_AUTHENTICATE_IMAGE_NEW) \ + ((hab_rvt_authenticate_image_t *)HAB_RVT_AUTHENTICATE_IMAGE) \ ) #define hab_rvt_entry_p \ ( \ - ((hab_rvt_entry_t *)HAB_RVT_ENTRY_NEW) \ + ((hab_rvt_entry_t *)HAB_RVT_ENTRY) \ ) #define hab_rvt_exit_p \ ( \ - ((hab_rvt_exit_t *)HAB_RVT_EXIT_NEW) \ + ((hab_rvt_exit_t *)HAB_RVT_EXIT) \ ) #define IVT_SIZE 0x20 diff --git a/arch/arm/include/asm/arch-mx7/hab.h b/arch/arm/include/asm/arch-mx7/hab.h index 97a2fec..fa29c78 100644 --- a/arch/arm/include/asm/arch-mx7/hab.h +++ b/arch/arm/include/asm/arch-mx7/hab.h @@ -60,12 +60,6 @@ typedef void hapi_clock_init_t(void); #define HAB_RVT_REPORT_EVENT (*(uint32_t *) (HAB_RVT_UNIFIED_BASE + 0x20)) #define HAB_RVT_REPORT_STATUS (*(uint32_t *) (HAB_RVT_UNIFIED_BASE + 0x24)) -#define HAB_RVT_REPORT_EVENT_NEW (*(uint32_t *) 0x000000B8) -#define HAB_RVT_REPORT_STATUS_NEW (*(uint32_t *) 0x000000BC) -#define HAB_RVT_AUTHENTICATE_IMAGE_NEW (*(uint32_t *) 0x000000A8) -#define HAB_RVT_ENTRY_NEW (*(uint32_t *) 0x0000009C) -#define HAB_RVT_EXIT_NEW (*(uint32_t *) 0x000000A0) - #define HAB_RVT_CLOCK_INIT ((hapi_clock_init_t *)0x0000024D) #define HAB_CID_ROM 0 /**< ROM Caller ID */ |