[PATCH 0/3] Complete i.MX6UL and i.MX7 processor for bare metal application.

Jean-Christophe Dubois posted 3 patches 9 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1690385928.git.jcd@tribudubois.net
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Jean-Christophe Dubois <jcd@tribudubois.net>, Andrey Smirnov <andrew.smirnov@gmail.com>
There is a newer version of this series
hw/arm/fsl-imx6ul.c         | 163 ++++++++++++-----
hw/arm/fsl-imx7.c           | 204 ++++++++++++++++-----
hw/misc/imx7_src.c          | 289 ++++++++++++++++++++++++++++++
hw/misc/meson.build         |   1 +
include/hw/arm/fsl-imx6ul.h | 149 +++++++++++++--
include/hw/arm/fsl-imx7.h   | 348 +++++++++++++++++++++++++++---------
include/hw/misc/imx7_src.h  |  68 +++++++
7 files changed, 1038 insertions(+), 184 deletions(-)
create mode 100644 hw/misc/imx7_src.c
create mode 100644 include/hw/misc/imx7_src.h
[PATCH 0/3] Complete i.MX6UL and i.MX7 processor for bare metal application.
Posted by Jean-Christophe Dubois 9 months, 2 weeks ago
This patch adds a few unimplemented TZ devices (TZASC and CSU) to
i.MX6UL and i.MX7 processors to avoid bare metal application to
experiment "bus error" when acccessing these devices.

It also adds some internal memory segments (OCRAM) to the i.MX7 to
allow bare metal application to use them.

Last, it adds the SRC device to the i.MX7 processor to allow bare
metal application to start the secondary Cortex-A7 core.

Note: When running Linux inside Qemu, the secondary core is started
by calling PSCI API and Qemu is emulating PSCI without needing access
to the SRC device. This is why Linux is using the 2 cores in Qemu
even if the SRC is not implemented. This is not the case when running
bare metal application (like u-boot itself) that do not rely on the
PSCI service being available.

Jean-Christophe Dubois (3):
  Rework i.MX6UL device implementation/instantiation
  Rework i.MX7 device implementation/instantiation
  Add i.MX7 SRC device implementation

 hw/arm/fsl-imx6ul.c         | 163 ++++++++++++-----
 hw/arm/fsl-imx7.c           | 204 ++++++++++++++++-----
 hw/misc/imx7_src.c          | 289 ++++++++++++++++++++++++++++++
 hw/misc/meson.build         |   1 +
 include/hw/arm/fsl-imx6ul.h | 149 +++++++++++++--
 include/hw/arm/fsl-imx7.h   | 348 +++++++++++++++++++++++++++---------
 include/hw/misc/imx7_src.h  |  68 +++++++
 7 files changed, 1038 insertions(+), 184 deletions(-)
 create mode 100644 hw/misc/imx7_src.c
 create mode 100644 include/hw/misc/imx7_src.h

-- 
2.34.1