Merge tag 'u-boot-imx-master-20240212' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/19583 - Fix the i.MX8MP SPI compatible string. - Let the SPL clock code do the configuration on Data Modul i.MX8M Plus eDM SBC. - Enable secure boot on the imx93_var_som board.
This commit is contained in:
@@ -45,6 +45,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&ecspi1 {
|
&ecspi1 {
|
||||||
|
/delete-property/ assigned-clocks;
|
||||||
|
/delete-property/ assigned-clock-rates;
|
||||||
|
/delete-property/ assigned-clock-parents;
|
||||||
bootph-pre-ram;
|
bootph-pre-ram;
|
||||||
flash@0 {
|
flash@0 {
|
||||||
bootph-pre-ram;
|
bootph-pre-ram;
|
||||||
|
13
arch/arm/include/asm/arch-imx9/mu.h
Normal file
13
arch/arm/include/asm/arch-imx9/mu.h
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2024 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __ARCH_IMX9_MU_H
|
||||||
|
#define __ARCH_IMX9_MU_H
|
||||||
|
|
||||||
|
#include <event.h>
|
||||||
|
|
||||||
|
int imx9_probe_mu(void *ctx, struct event *event);
|
||||||
|
|
||||||
|
#endif
|
@@ -14,6 +14,7 @@
|
|||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/imx93_pins.h>
|
#include <asm/arch/imx93_pins.h>
|
||||||
|
#include <asm/arch/mu.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
@@ -91,7 +92,6 @@ int power_init_board(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int imx9_probe_mu(void *ctx, struct event *event);
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
|
#include <asm/arch/mu.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/arch/trdc.h>
|
#include <asm/arch/trdc.h>
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
@@ -99,7 +100,6 @@ int power_init_board(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int imx9_probe_mu(void *ctx, struct event *event);
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/imx93_pins.h>
|
#include <asm/arch/imx93_pins.h>
|
||||||
|
#include <asm/arch/mu.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
@@ -114,9 +115,9 @@ void board_init_f(ulong dummy)
|
|||||||
|
|
||||||
preloader_console_init();
|
preloader_console_init();
|
||||||
|
|
||||||
ret = arch_cpu_init();
|
ret = imx9_probe_mu(NULL, NULL);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printf("Fail to init Sentinel API\n");
|
printf("Fail to init ELE API\n");
|
||||||
} else {
|
} else {
|
||||||
printf("SOC: 0x%x\n", gd->arch.soc_rev);
|
printf("SOC: 0x%x\n", gd->arch.soc_rev);
|
||||||
printf("LC: 0x%x\n", gd->arch.lifecycle);
|
printf("LC: 0x%x\n", gd->arch.lifecycle);
|
||||||
|
@@ -12,6 +12,7 @@ CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx9/imximage.cfg"
|
|||||||
CONFIG_DM_GPIO=y
|
CONFIG_DM_GPIO=y
|
||||||
CONFIG_DEFAULT_DEVICE_TREE="imx93-var-som-symphony"
|
CONFIG_DEFAULT_DEVICE_TREE="imx93-var-som-symphony"
|
||||||
CONFIG_SPL_TEXT_BASE=0x2049A000
|
CONFIG_SPL_TEXT_BASE=0x2049A000
|
||||||
|
CONFIG_AHAB_BOOT=y
|
||||||
CONFIG_TARGET_IMX93_VAR_SOM=y
|
CONFIG_TARGET_IMX93_VAR_SOM=y
|
||||||
CONFIG_OF_LIBFDT_OVERLAY=y
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
||||||
CONFIG_SPL_SERIAL=y
|
CONFIG_SPL_SERIAL=y
|
||||||
|
@@ -670,6 +670,7 @@ static const struct dm_spi_ops mxc_spi_ops = {
|
|||||||
|
|
||||||
static const struct udevice_id mxc_spi_ids[] = {
|
static const struct udevice_id mxc_spi_ids[] = {
|
||||||
{ .compatible = "fsl,imx51-ecspi" },
|
{ .compatible = "fsl,imx51-ecspi" },
|
||||||
|
{ .compatible = "fsl,imx6ul-ecspi" },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user