aboutsummaryrefslogtreecommitdiff
path: root/board/variscite
diff options
context:
space:
mode:
authorMathieu Othacehe2024-02-26 18:37:18 +0100
committerFabio Estevam2024-03-04 08:18:13 -0300
commitc2666fdab6f22914141e934cd06d967b91bbce10 (patch)
tree52e9052ad21f5256edb21bef88b0ceadf2140065 /board/variscite
parenteac52e4be4e234d563d6911737ee7ccdc0ada1f1 (diff)
imx9: Fix OP-TEE support
This fixes OP-TEE support by: - Adding tee.bin to container.cfg - Starting ELE RNG in SPL Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'board/variscite')
-rw-r--r--board/variscite/imx93_var_som/spl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/variscite/imx93_var_som/spl.c b/board/variscite/imx93_var_som/spl.c
index e6db4eb562b..36e17219d63 100644
--- a/board/variscite/imx93_var_som/spl.c
+++ b/board/variscite/imx93_var_som/spl.c
@@ -20,6 +20,7 @@
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/arch-mx7ulp/gpio.h>
#include <asm/sections.h>
+#include <asm/mach-imx/ele_api.h>
#include <asm/mach-imx/syscounter.h>
#include <dm/uclass.h>
#include <dm/device.h>
@@ -47,9 +48,14 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
void spl_board_init(void)
{
struct var_eeprom *ep = VAR_EEPROM_DATA;
+ int ret;
puts("Normal Boot\n");
+ ret = ele_start_rng();
+ if (ret)
+ printf("Fail to start RNG: %d\n", ret);
+
/* Copy EEPROM contents to DRAM */
memcpy(ep, &eeprom, sizeof(*ep));
}