Skip to content

Commit

Permalink
Merge tag 'u-boot-imx-master-20240212' of https://gitlab.denx.de/u-bo…
Browse files Browse the repository at this point in the history
…ot/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.
  • Loading branch information
trini committed Feb 12, 2024
2 parents e8f2404 + fcd377e commit 91c37c4
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 4 deletions.
3 changes: 3 additions & 0 deletions arch/arm/dts/imx8mp-data-modul-edm-sbc-u-boot.dtsi
Expand Up @@ -45,6 +45,9 @@
};

&ecspi1 {
/delete-property/ assigned-clocks;
/delete-property/ assigned-clock-rates;
/delete-property/ assigned-clock-parents;
bootph-pre-ram;
flash@0 {
bootph-pre-ram;
Expand Down
13 changes: 13 additions & 0 deletions arch/arm/include/asm/arch-imx9/mu.h
@@ -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
2 changes: 1 addition & 1 deletion board/freescale/imx93_evk/spl.c
Expand Up @@ -14,6 +14,7 @@
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/imx93_pins.h>
#include <asm/arch/mu.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/boot_mode.h>
Expand Down Expand Up @@ -91,7 +92,6 @@ int power_init_board(void)
}
#endif

extern int imx9_probe_mu(void *ctx, struct event *event);
void board_init_f(ulong dummy)
{
int ret;
Expand Down
2 changes: 1 addition & 1 deletion board/phytec/phycore_imx93/spl.c
Expand Up @@ -7,6 +7,7 @@

#include <asm/arch/clock.h>
#include <asm/arch/ddr.h>
#include <asm/arch/mu.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/trdc.h>
#include <asm/mach-imx/boot_mode.h>
Expand Down Expand Up @@ -99,7 +100,6 @@ int power_init_board(void)
return 0;
}

extern int imx9_probe_mu(void *ctx, struct event *event);
void board_init_f(ulong dummy)
{
int ret;
Expand Down
5 changes: 3 additions & 2 deletions board/variscite/imx93_var_som/spl.c
Expand Up @@ -13,6 +13,7 @@
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/arch/imx93_pins.h>
#include <asm/arch/mu.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/boot_mode.h>
Expand Down Expand Up @@ -114,9 +115,9 @@ void board_init_f(ulong dummy)

preloader_console_init();

ret = arch_cpu_init();
ret = imx9_probe_mu(NULL, NULL);
if (ret) {
printf("Fail to init Sentinel API\n");
printf("Fail to init ELE API\n");
} else {
printf("SOC: 0x%x\n", gd->arch.soc_rev);
printf("LC: 0x%x\n", gd->arch.lifecycle);
Expand Down
1 change: 1 addition & 0 deletions configs/imx93_var_som_defconfig
Expand Up @@ -12,6 +12,7 @@ CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx9/imximage.cfg"
CONFIG_DM_GPIO=y
CONFIG_DEFAULT_DEVICE_TREE="imx93-var-som-symphony"
CONFIG_SPL_TEXT_BASE=0x2049A000
CONFIG_AHAB_BOOT=y
CONFIG_TARGET_IMX93_VAR_SOM=y
CONFIG_OF_LIBFDT_OVERLAY=y
CONFIG_SPL_SERIAL=y
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/mxc_spi.c
Expand Up @@ -670,6 +670,7 @@ static const struct dm_spi_ops mxc_spi_ops = {

static const struct udevice_id mxc_spi_ids[] = {
{ .compatible = "fsl,imx51-ecspi" },
{ .compatible = "fsl,imx6ul-ecspi" },
{ }
};

Expand Down

0 comments on commit 91c37c4

Please sign in to comment.