public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] include: configs: am62ax: Change to using .env
@ 2023-03-20 17:02 Nikhil M Jain
  2023-03-20 21:50 ` Tom Rini
  2023-03-30  1:54 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Nikhil M Jain @ 2023-03-20 17:02 UTC (permalink / raw)
  To: u-boot, trini, n-francis; +Cc: vigneshr, devarsht, Nikhil M Jain

Move to using .env file for setting up environment variables for am62ax.

This patch depends on
https://lore.kernel.org/all/20230315052745.110502-1-n-francis@ti.com/

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
---
 board/ti/am62ax/am62ax.env   | 33 +++++++++++++++++++++++++++++++++
 include/configs/am62ax_evm.h |  3 ---
 2 files changed, 33 insertions(+), 3 deletions(-)
 create mode 100644 board/ti/am62ax/am62ax.env

diff --git a/board/ti/am62ax/am62ax.env b/board/ti/am62ax/am62ax.env
new file mode 100644
index 0000000000..8c1c26e9a2
--- /dev/null
+++ b/board/ti/am62ax/am62ax.env
@@ -0,0 +1,33 @@
+#include <environment/ti/ti_armv7_common.env>
+#include <environment/ti/mmc.env>
+
+default_device_tree=k3-am62a7-sk.dtb
+findfdt=
+	setenv name_fdt ${default_device_tree};
+	setenv fdtfile ${name_fdt}
+name_kern=Image
+console=ttyS2,115200n8
+args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
+	${mtdparts}
+run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
+
+boot=mmc
+mmcdev=1
+bootpart=1:2
+bootdir=/boot
+rd_spec=-
+init_mmc=run args_all args_mmc
+get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
+get_overlay_mmc=
+	fdt address ${fdtaddr};
+	fdt resize 0x100000;
+	for overlay in $name_overlays;
+	do;
+	load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
+	fdt apply ${dtboaddr};
+	done;
+get_kern_mmc=load mmc ${bootpart} ${loadaddr}
+	${bootdir}/${name_kern}
+get_fit_mmc=load mmc ${bootpart} ${addr_fit}
+	${bootdir}/${name_fit}
+partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
diff --git a/include/configs/am62ax_evm.h b/include/configs/am62ax_evm.h
index a18b1572b1..d8ef2509a8 100644
--- a/include/configs/am62ax_evm.h
+++ b/include/configs/am62ax_evm.h
@@ -85,9 +85,6 @@
 
 /* Incorporate settings into the U-Boot environment */
 #define CFG_EXTRA_ENV_SETTINGS					\
-	DEFAULT_LINUX_BOOT_ENV						\
-	DEFAULT_FIT_TI_ARGS						\
-	EXTRA_ENV_AM62A7_BOARD_SETTINGS					\
 	BOOTENV
 
 /* Now for the remaining common defines */
-- 
2.34.1


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

* Re: [PATCH] include: configs: am62ax: Change to using .env
  2023-03-20 17:02 [PATCH] include: configs: am62ax: Change to using .env Nikhil M Jain
@ 2023-03-20 21:50 ` Tom Rini
  2023-03-30  1:54 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2023-03-20 21:50 UTC (permalink / raw)
  To: Nikhil M Jain; +Cc: u-boot, n-francis, vigneshr, devarsht

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

On Mon, Mar 20, 2023 at 10:32:08PM +0530, Nikhil M Jain wrote:

> Move to using .env file for setting up environment variables for am62ax.
> 
> This patch depends on
> https://lore.kernel.org/all/20230315052745.110502-1-n-francis@ti.com/
> 
> Signed-off-by: Nikhil M Jain <n-jain1@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH] include: configs: am62ax: Change to using .env
  2023-03-20 17:02 [PATCH] include: configs: am62ax: Change to using .env Nikhil M Jain
  2023-03-20 21:50 ` Tom Rini
@ 2023-03-30  1:54 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2023-03-30  1:54 UTC (permalink / raw)
  To: Nikhil M Jain; +Cc: u-boot, n-francis, vigneshr, devarsht

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

On Mon, Mar 20, 2023 at 10:32:08PM +0530, Nikhil M Jain wrote:

> Move to using .env file for setting up environment variables for am62ax.
> 
> This patch depends on
> https://lore.kernel.org/all/20230315052745.110502-1-n-francis@ti.com/
> 
> Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2023-03-30  1:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-20 17:02 [PATCH] include: configs: am62ax: Change to using .env Nikhil M Jain
2023-03-20 21:50 ` Tom Rini
2023-03-30  1:54 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox