aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-11-19 15:30:28 +0000
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-11-30 16:20:16 +0000
commit644e5420ae01992e59c29f1417c9fd8445fab521 (patch)
tree697d76f1787feac87e6480bfe2028d0b2631b4b7
parent7139eb3972f9e79d217b6c428f0a7e28a5029b08 (diff)
arm: imx: add iMX7S WaARP7 MBL board definitionlinaro-warp7
This patch adds an OP-TEE port for the i.MX7S WaRP7 for the MBED Linux OS boot flow. BootROM -> ATF/BL2 ATF -> FIP {u-boot, OPTEE} OPTEE -> {populates DTB overlay} u-boot -> FIT {DTB, Kernel, initramfs} Merges DTB and OPTEE DTB-overlay Linux The current warp7 port looks like BootROM -> u-boot u-boot -> Load {Kernel, OPTEE, DTB} OPTEE Linux In order to support the ATF bootflow a new port of OP-TEE with slightly tweaked parameters is added here CFG_NS_ENTRY_ADDR = 0x87800000 is the entry point of u-boot CFG_DT_OVERLAY = y adds DTB overlay fragments to the passed DTB make CROSS_COMPILE=arm-linux-gnueabihf- PLATFORM=imx \ PLATFORM_FLAVOR=mx7swarp7_mbl ARCH=arm CFG_PAGEABLE_ADDR=0 \ CFG_TEE_CORE_NB_CORE=1 Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r--README.md1
-rw-r--r--core/arch/arm/plat-imx/conf.mk11
2 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7a320f09..9f52e7eb 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,7 @@ The **Maintained?** column shows:
| [FSL i.MX6 UltraLite EVK Board](http://www.freescale.com/products/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx-6-processors/i.mx6qp/i.mx6ultralite-evaluation-kit:MCIMX6UL-EVK) |`PLATFORM=imx-mx6ulevk`| Yes | ![Actively Maintained](documentation/images/green.svg) |
| [NXP i.MX7Dual SabreSD Board](http://www.nxp.com/products/software-and-tools/hardware-development-tools/sabre-development-system/sabre-board-for-smart-devices-based-on-the-i.mx-7dual-applications-processors:MCIMX7SABRE) |`PLATFORM=imx-mx7dsabresd`| Yes | ![Actively Maintained](documentation/images/green.svg) |
| [NXP i.MX7Solo WaRP7 Board](http://www.nxp.com/products/developer-resources/reference-designs/warp7-next-generation-iot-and-wearable-development-platform:WARP7) |`PLATFORM=imx-mx7swarp7`| Yes | ![Actively Maintained](documentation/images/green.svg) |
+| [NXP i.MX7Solo WaRP7 Board - Mbed Linux OS](https://os.mbed.com/platforms/WARP7) |`PLATFORM=imx-mx7swarp7_mbl`| Yes | ![Actively Maintained](documentation/images/green.svg) |
| [ARM Foundation FVP](https://developer.arm.com/products/system-design/fixed-virtual-platforms) |`PLATFORM=vexpress-fvp`| Yes | ![Actively Maintained](documentation/images/green.svg) |
| [HiSilicon D02](http://open-estuary.org/d02-2)|`PLATFORM=d02`| No | ![Actively Maintained](documentation/images/green.svg) |
| [HiKey Board (HiSilicon Kirin 620)](https://www.96boards.org/product/hikey)|`PLATFORM=hikey` or `PLATFORM=hikey-hikey`| Yes | ![Actively Maintained](documentation/images/green.svg) |
diff --git a/core/arch/arm/plat-imx/conf.mk b/core/arch/arm/plat-imx/conf.mk
index 239e647c..d3d17518 100644
--- a/core/arch/arm/plat-imx/conf.mk
+++ b/core/arch/arm/plat-imx/conf.mk
@@ -29,6 +29,7 @@ mx6s-flavorlist = \
mx7-flavorlist = \
mx7dsabresd \
mx7swarp7 \
+ mx7swarp7_mbl \
mx7dclsom \
ifneq (,$(filter $(PLATFORM_FLAVOR),$(mx6ul-flavorlist)))
@@ -87,6 +88,16 @@ CFG_BOOT_SECONDARY_REQUEST ?= n
$(call force,CFG_TEE_CORE_NB_CORE,1)
endif
+ifneq (,$(filter $(PLATFORM_FLAVOR),mx7swarp7_mbl))
+CFG_DDR_SIZE ?= 0x20000000
+CFG_NS_ENTRY_ADDR ?= 0x87800000
+CFG_DT_ADDR ?= 0x83100000
+CFG_BOOT_SECONDARY_REQUEST ?= n
+CFG_EXTERNAL_DTB_OVERLAY = y
+CFG_IMX_WDOG_EXT_RESET = y
+$(call force,CFG_TEE_CORE_NB_CORE,1)
+endif
+
ifneq (,$(filter $(PLATFORM_FLAVOR),mx6qsabresd mx6dlsabresd \
mx6dlsabrelite mx6dhmbedge mx6dlhmbedge))
CFG_DDR_SIZE ?= 0x40000000