]> code.ossystems Code Review - bsp/u-boot.git/commitdiff
imx: hab: use unified rom section for mx6sx and mx6ul
authorAdrian Alonso <aalonso@freescale.com>
Mon, 12 Oct 2015 18:48:09 +0000 (13:48 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 3 Nov 2015 12:53:59 +0000 (10:53 -0200)
Add CONFIG_ROM_UNIFIED_SECTIONS for mx6sx and mx6ul target
platforms to resolve corresponding HAB_RVT_BASE base address,
the RVT table contains pointers to the HAB API functions in
ROM code.

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
arch/arm/cpu/armv7/mx6/Kconfig
arch/arm/imx-common/Kconfig
arch/arm/include/asm/imx-common/hab.h

index 9ee509e605a2ad29a518e971a45f7b0ee4923c10..8489182651c04a96697d3e126cea507926058b50 100644 (file)
@@ -23,10 +23,12 @@ config MX6SL
        bool
 
 config MX6SX
+       select ROM_UNIFIED_SECTIONS
        bool
 
 config MX6UL
        select SYS_L2CACHE_OFF
+       select ROM_UNIFIED_SECTIONS
        bool
 
 choice
index 37b375249d48ce63dfee565c7a51cdccdf43d2d0..2296239226a6e0cc2c10807d92c5767787892fa2 100644 (file)
@@ -1,2 +1,5 @@
 config IMX_CONFIG
        string
+
+config ROM_UNIFIED_SECTIONS
+       bool
index d0eaa67180dfbef3c51c36cd82adfdbc8996337d..af77d45b6c2e91f08c4ab2c845fc93da548e03f7 100644 (file)
@@ -113,7 +113,7 @@ typedef void hapi_clock_init_t(void);
 #define HAB_ENG_RTL            0x77   /* RTL simulation engine */
 #define HAB_ENG_SW             0xff   /* Software engine */
 
-#ifdef CONFIG_MX6SX
+#ifdef CONFIG_ROM_UNIFIED_SECTIONS
 #define HAB_RVT_BASE                   0x00000100
 #else
 #define HAB_RVT_BASE                   0x00000094