i.MX: HABv4: implement interface for i.MX8MQ
The HAB interface for i.MX8MQ only implements the retrieval of status
and events. The SoC status is retrieved using the TF-A SIP API found in
the downstream imx TF-A. After calling into the TF-A the passed data
structures need to be invalidated, since otherwise the cached zero value
is used.
Currently the TF-A report event call only supports FAILURE events.
Testing the TF-A with other event types resulted in a freeze in the
bootrom code, which was not investigated further.
We instead walk the memory containing the events and retrieve the events
ourselves. They are exposed using the same API.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 94a3a00 commit 6c4d5bb5acfec8e0d7ff9b947a7ddc53c7310fd3
@Rouven Czerwinski Rouven Czerwinski authored on 6 Aug 2019
Sascha Hauer committed on 7 Aug 2019
Showing 2 changed files
View
drivers/hab/hab.c
View
drivers/hab/habv4.c