public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M
@ 2022-04-19  9:13 Gaurav Jain
  2022-04-19  9:13 ` [PATCH 2/2] imx: Fix build error Gaurav Jain
  2022-04-22  8:46 ` [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M sbabic
  0 siblings, 2 replies; 4+ messages in thread
From: Gaurav Jain @ 2022-04-19  9:13 UTC (permalink / raw)
  To: Stefano Babic, u-boot
  Cc: Fabio Estevam, Priyanka Jain, Ye Li, Horia Geanta,
	Silvano Di Ninno, Varun Sethi, Breno Lima, NXP i . MX U-Boot Team,
	Gaurav Jain

From: Ye Li <ye.li@nxp.com>

Update the Kconfig and Makefile to allow build for iMX8M and
restrict the build only in u-boot.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
---
 arch/arm/mach-imx/Kconfig  | 2 +-
 arch/arm/mach-imx/Makefile | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 9aa1d84336..ad0fb36502 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -137,7 +137,7 @@ config CMD_NANDBCB
 
 config FSL_MFGPROT
 	bool "Support the 'mfgprot' command"
-	depends on IMX_HAB && ARCH_MX7
+	depends on IMX_HAB && (ARCH_MX7 || ARCH_IMX8M)
 	help
 	  This option enables the manufacturing protection command
 	  which can be used has a protection feature for Manufacturing
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
index 77e72702bb..aa0b6447f1 100644
--- a/arch/arm/mach-imx/Makefile
+++ b/arch/arm/mach-imx/Makefile
@@ -38,8 +38,12 @@ ifeq ($(SOC),$(filter $(SOC),mx7))
 obj-y	+= cpu.o
 obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o
 obj-$(CONFIG_ENV_IS_IN_MMC) += mmc_env.o
+endif
+ifeq ($(SOC),$(filter $(SOC),mx7 imx8m))
+ifneq ($(CONFIG_SPL_BUILD),y)
 obj-$(CONFIG_FSL_MFGPROT) += cmd_mfgprot.o
 endif
+endif
 ifeq ($(SOC),$(filter $(SOC),mx5 mx6 mx7))
 obj-$(CONFIG_IMX_VIDEO_SKIP) += video.o
 endif
-- 
2.25.1


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

* [PATCH 2/2] imx: Fix build error
  2022-04-19  9:13 [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M Gaurav Jain
@ 2022-04-19  9:13 ` Gaurav Jain
  2022-04-22  8:47   ` sbabic
  2022-04-22  8:46 ` [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M sbabic
  1 sibling, 1 reply; 4+ messages in thread
From: Gaurav Jain @ 2022-04-19  9:13 UTC (permalink / raw)
  To: Stefano Babic, u-boot
  Cc: Fabio Estevam, Priyanka Jain, Ye Li, Horia Geanta,
	Silvano Di Ninno, Varun Sethi, Breno Lima, NXP i . MX U-Boot Team,
	Gaurav Jain

From: Ye Li <ye.li@nxp.com>

Fix wrong environment.h and remove DECLARE_GLOBAL_DATA_PTR

Fixes: 30e39ac7c9 (imx: imx7 Support for Manufacturing Protection)
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
---
 arch/arm/mach-imx/cmd_mfgprot.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/mach-imx/cmd_mfgprot.c b/arch/arm/mach-imx/cmd_mfgprot.c
index aed3b2f83d..ec8a8756f7 100644
--- a/arch/arm/mach-imx/cmd_mfgprot.c
+++ b/arch/arm/mach-imx/cmd_mfgprot.c
@@ -12,13 +12,11 @@
 #include <linux/compiler.h>
 #include <command.h>
 #include <common.h>
-#include <environment.h>
+#include <env.h>
 #include <fsl_sec.h>
 #include <mapmem.h>
 #include <memalign.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 /**
  * do_mfgprot() - Handle the "mfgprot" command-line command
  * @cmdtp:  Command data struct pointer
-- 
2.25.1


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

* [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M
  2022-04-19  9:13 [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M Gaurav Jain
  2022-04-19  9:13 ` [PATCH 2/2] imx: Fix build error Gaurav Jain
@ 2022-04-22  8:46 ` sbabic
  1 sibling, 0 replies; 4+ messages in thread
From: sbabic @ 2022-04-22  8:46 UTC (permalink / raw)
  To: Gaurav Jain, u-boot

> From: Ye Li <ye.li@nxp.com>
> Update the Kconfig and Makefile to allow build for iMX8M and
> restrict the build only in u-boot.
> Signed-off-by: Ye Li <ye.li@nxp.com>
> Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
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: sbabic@denx.de
=====================================================================

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

* [PATCH 2/2] imx: Fix build error
  2022-04-19  9:13 ` [PATCH 2/2] imx: Fix build error Gaurav Jain
@ 2022-04-22  8:47   ` sbabic
  0 siblings, 0 replies; 4+ messages in thread
From: sbabic @ 2022-04-22  8:47 UTC (permalink / raw)
  To: Gaurav Jain, u-boot

> From: Ye Li <ye.li@nxp.com>
> Fix wrong environment.h and remove DECLARE_GLOBAL_DATA_PTR
> Fixes: 30e39ac7c9 (imx: imx7 Support for Manufacturing Protection)
> Signed-off-by: Ye Li <ye.li@nxp.com>
> Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
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: sbabic@denx.de
=====================================================================

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

end of thread, other threads:[~2022-04-22  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19  9:13 [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M Gaurav Jain
2022-04-19  9:13 ` [PATCH 2/2] imx: Fix build error Gaurav Jain
2022-04-22  8:47   ` sbabic
2022-04-22  8:46 ` [PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M sbabic

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