summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-mx6/hab.h
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-06-10 15:21:42 +0800
committerYe.Li <B37916@freescale.com>2014-06-17 11:13:52 +0800
commit070c01291e25f4f16cd0df971ddb6c67a0a57152 (patch)
treeb25884ba453c67ee8ac640ac2a3e239b90198839 /arch/arm/include/asm/arch-mx6/hab.h
parente06f5f5271ec35d8151bd4eeee785df8c80db011 (diff)
downloadu-boot-imx-070c01291e25f4f16cd0df971ddb6c67a0a57152.zip
u-boot-imx-070c01291e25f4f16cd0df971ddb6c67a0a57152.tar.gz
u-boot-imx-070c01291e25f4f16cd0df971ddb6c67a0a57152.tar.bz2
ENGR00315894-48 iMX6SX: Add iMX6SX SoC support
Adding clks, pinmux, memory map, etc for iMX6SoloX. Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Jason Liu <r64343@freescale.com> Signed-off-by: Frank Li <Frank.Li@freescale.com> Signed-off-by: Nitin Garg <nitin.garg@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'arch/arm/include/asm/arch-mx6/hab.h')
-rw-r--r--arch/arm/include/asm/arch-mx6/hab.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-mx6/hab.h b/arch/arm/include/asm/arch-mx6/hab.h
index 7636c05..dc0f4ca 100644
--- a/arch/arm/include/asm/arch-mx6/hab.h
+++ b/arch/arm/include/asm/arch-mx6/hab.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2012-2014 Freescale Semiconductor, Inc. All Rights Reserved.
*
* SPDX-License-Identifier: GPL-2.0+
*
@@ -53,6 +53,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)
@@ -67,6 +78,8 @@ typedef void hapi_clock_init_t(void);
#define HAB_RVT_CLOCK_INIT ((hapi_clock_init_t *)0x0000024D)
+#endif
+
#define HAB_CID_ROM 0 /**< ROM Caller ID */
#define HAB_CID_UBOOT 1 /**< UBOOT Caller ID*/
/* ----------- end of HAB API updates ------------*/