mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
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>
This commit is contained in:
parent
eac52e4be4
commit
c2666fdab6
4 changed files with 22 additions and 1 deletions
|
@ -8,3 +8,4 @@ SOC_TYPE IMX9
|
|||
CONTAINER
|
||||
IMAGE A55 bl31.bin 0x204E0000
|
||||
IMAGE A55 u-boot.bin CONFIG_TEXT_BASE
|
||||
IMAGE A55 tee.bin 0x96000000
|
|
@ -20,6 +20,7 @@
|
|||
#include <asm/mach-imx/boot_mode.h>
|
||||
#include <asm/mach-imx/mxc_i2c.h>
|
||||
#include <asm/arch-mx7ulp/gpio.h>
|
||||
#include <asm/mach-imx/ele_api.h>
|
||||
#include <asm/mach-imx/syscounter.h>
|
||||
#include <asm/sections.h>
|
||||
#include <dm/uclass.h>
|
||||
|
@ -43,6 +44,12 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
|
|||
|
||||
void spl_board_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = ele_start_rng();
|
||||
if (ret)
|
||||
printf("Fail to start RNG: %d\n", ret);
|
||||
|
||||
puts("Normal Boot\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/trdc.h>
|
||||
#include <asm/mach-imx/boot_mode.h>
|
||||
#include <asm/mach-imx/ele_api.h>
|
||||
#include <asm/sections.h>
|
||||
#include <hang.h>
|
||||
#include <init.h>
|
||||
|
@ -34,6 +35,12 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
|
|||
|
||||
void spl_board_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = ele_start_rng();
|
||||
if (ret)
|
||||
printf("Fail to start RNG: %d\n", ret);
|
||||
|
||||
puts("Normal Boot\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue