[U-Boot] [PATCH v2 3/5] spl: nor: Provide falcon boot support for NOR memories

2019-11-04 Thread sbabic
> This commit adds falcon boot support (by also copying args necessary for
> booting) to the SPL NOR memory driver.
> After this change it is possible to use the falcon boot in the same way
> as on NAND memories. The necessary configs (i.e. CONFIG_CMD_SPL_NOR_OFS)
> are now defined in Kconfig.
> Signed-off-by: Lukasz Majewski 
> Reviewed-by: Tom Rini 

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v2 3/5] spl: nor: Provide falcon boot support for NOR memories

2019-10-17 Thread Tom Rini
On Tue, Oct 15, 2019 at 10:28:45AM +0200, Lukasz Majewski wrote:

> This commit adds falcon boot support (by also copying args necessary for
> booting) to the SPL NOR memory driver.
> 
> After this change it is possible to use the falcon boot in the same way
> as on NAND memories. The necessary configs (i.e. CONFIG_CMD_SPL_NOR_OFS)
> are now defined in Kconfig.
> 
> Signed-off-by: Lukasz Majewski 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 3/5] spl: nor: Provide falcon boot support for NOR memories

2019-10-15 Thread Lukasz Majewski
This commit adds falcon boot support (by also copying args necessary for
booting) to the SPL NOR memory driver.

After this change it is possible to use the falcon boot in the same way
as on NAND memories. The necessary configs (i.e. CONFIG_CMD_SPL_NOR_OFS)
are now defined in Kconfig.

Signed-off-by: Lukasz Majewski 
---

 common/spl/spl_nor.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index 7df708de9b0f..b1e79b9ded62 100644
--- a/common/spl/spl_nor.c
+++ b/common/spl/spl_nor.c
@@ -51,6 +51,11 @@ static int spl_nor_load_image(struct spl_image_info 
*spl_image,
  CONFIG_SYS_OS_BASE,
  (void *)header);
 
+#if defined CONFIG_SYS_SPL_ARGS_ADDR && defined CONFIG_CMD_SPL_NOR_OFS
+   memcpy((void *)CONFIG_SYS_SPL_ARGS_ADDR,
+  (void *)CONFIG_CMD_SPL_NOR_OFS,
+  CONFIG_CMD_SPL_WRITE_SIZE);
+#endif
return ret;
}
 #endif
-- 
2.20.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot