All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] configs: microchip_mpfs_icicle: set DEFAULT_FDT_FILE
@ 2025-02-06 13:05 Heinrich Schuchardt
  2025-02-17  5:58 ` Leo Liang
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2025-02-06 13:05 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Cyril Jean, Sumit Garg, Rick Chen, Leo, u-boot,
	Heinrich Schuchardt

Variable $fdtfile needs to be set for automatically loading a device-tree
from the ESP or boot partition.

* Set CONFIG_DEFAULT_FDT_FILE in the defconfig.
* Add $fdtfile to the default environment.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 configs/microchip_mpfs_icicle_defconfig | 1 +
 include/configs/microchip_mpfs_icicle.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/microchip_mpfs_icicle_defconfig b/configs/microchip_mpfs_icicle_defconfig
index 5ea6cc371aa..f8acaa98672 100644
--- a/configs/microchip_mpfs_icicle_defconfig
+++ b/configs/microchip_mpfs_icicle_defconfig
@@ -12,6 +12,7 @@ CONFIG_ARCH_RV64I=y
 CONFIG_RISCV_SMODE=y
 CONFIG_FIT=y
 CONFIG_DISTRO_DEFAULTS=y
+CONFIG_DEFAULT_FDT_FILE="microchip/mpfs-icicle-kit.dtb"
 CONFIG_SYS_CBSIZE=256
 CONFIG_SYS_PBSIZE=282
 CONFIG_DISPLAY_CPUINFO=y
diff --git a/include/configs/microchip_mpfs_icicle.h b/include/configs/microchip_mpfs_icicle.h
index 5ced45b88b2..0077f6a5f95 100644
--- a/include/configs/microchip_mpfs_icicle.h
+++ b/include/configs/microchip_mpfs_icicle.h
@@ -26,6 +26,7 @@
 	"scriptaddr=0x88100000\0" \
 	"pxefile_addr_r=0x88200000\0" \
 	"ramdisk_addr_r=0x88300000\0" \
+	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
 	BOOTENV
 
 #endif /* __CONFIG_H */
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] configs: microchip_mpfs_icicle: set DEFAULT_FDT_FILE
  2025-02-06 13:05 [PATCH 1/1] configs: microchip_mpfs_icicle: set DEFAULT_FDT_FILE Heinrich Schuchardt
@ 2025-02-17  5:58 ` Leo Liang
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2025-02-17  5:58 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Conor Dooley, Cyril Jean, Sumit Garg, Rick Chen, u-boot

On Thu, Feb 06, 2025 at 02:05:03PM +0100, Heinrich Schuchardt wrote:
> Variable $fdtfile needs to be set for automatically loading a device-tree
> from the ESP or boot partition.
> 
> * Set CONFIG_DEFAULT_FDT_FILE in the defconfig.
> * Add $fdtfile to the default environment.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  configs/microchip_mpfs_icicle_defconfig | 1 +
>  include/configs/microchip_mpfs_icicle.h | 1 +
>  2 files changed, 2 insertions(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-17  5:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06 13:05 [PATCH 1/1] configs: microchip_mpfs_icicle: set DEFAULT_FDT_FILE Heinrich Schuchardt
2025-02-17  5:58 ` Leo Liang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.