Add i.MX7 SRC device implementation
authorJean-Christophe Dubois <jcd@tribudubois.net>
Thu, 31 Aug 2023 08:45:17 +0000 (09:45 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 31 Aug 2023 08:45:17 +0000 (09:45 +0100)
commit12517bc978e62ce19df0160ad2ef229169a567b2
treee3c2129fbd40de62a2087145ca1878541bc0b5f0
parent736988a040b58b7021445580634d4d2d35a4a6cc
Add i.MX7 SRC device implementation

The SRC device is normally used to start the secondary CPU.

When running Linux directly, QEMU is emulating a PSCI interface that UBOOT
is installing at boot time and therefore the fact that the SRC device is
unimplemented is hidden as Qemu respond directly to PSCI requets without
using the SRC device.

But if you try to run a more bare metal application (maybe uboot itself),
then it is not possible to start the secondary CPU as the SRC is an
unimplemented device.

This patch adds the ability to start the secondary CPU through the SRC
device so that you can use this feature in bare metal applications.

Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: ce9a0162defd2acee5dc7f8a674743de0cded569.1692964892.git.jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/fsl-imx7.c
hw/misc/imx7_src.c [new file with mode: 0644]
hw/misc/meson.build
hw/misc/trace-events
include/hw/arm/fsl-imx7.h
include/hw/misc/imx7_src.h [new file with mode: 0644]