]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: colibri_imx7: reserve DDR memory for Cortex-M4
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Tue, 3 Dec 2019 12:04:47 +0000 (14:04 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 6 Dec 2019 11:09:30 +0000 (12:09 +0100)
commitc671d8af0bb07b028d808b994b83b2ec25578a44
tree6b167c1835d62577ce589ebe5096a6621a8778c2
parent949b5a969d107613b61a1e5eaf9e43c75a97f42c
board: colibri_imx7: reserve DDR memory for Cortex-M4

i.MX 7's Cortex-M4 core can run from DDR and uses DDR memory for
the rpmsg communication. Both use cases need a fixed location of
memory reserved. For the rpmsg use case the reserved area needs
to be in sync with the kernel's hardcoded vring descriptor location.

Use the linux,usable-memory property to carve out 1MB of memory
in case the M4 core is running. Also make sure that the i.MX 7
specific rpmsg driver does not get loaded in case we do not carve
out memory.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
arch/arm/include/asm/mach-imx/sys_proto.h
board/toradex/colibri_imx7/colibri_imx7.c