All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lx2160a : Update environment variable.
@ 2020-04-09 11:42 Meenakshi Aggarwal
  2020-04-09 13:28 ` [PATCH v2] lx2160a : Update eMMC boot environment variables Meenakshi Aggarwal
  0 siblings, 1 reply; 5+ messages in thread
From: Meenakshi Aggarwal @ 2020-04-09 11:42 UTC (permalink / raw)
  To: u-boot

Update environment variable for emmc boot.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
---
 include/configs/lx2160a_common.h | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h
index 1907f93..6c3e647 100644
--- a/include/configs/lx2160a_common.h
+++ b/include/configs/lx2160a_common.h
@@ -225,6 +225,16 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
 	"esbc_validate 0x80680000 ;"		\
 	"fsl_mc start mc 0x80a00000 0x80e00000\0"
 
+#define SD2_MC_INIT_CMD				\
+	"mmc read 0x80a00000 0x5000 0x1200;"	\
+	"mmc read 0x80e00000 0x7000 0x800;"	\
+	"env exists secureboot && "		\
+	"mmc read 0x80640000 0x3200 0x20 && "	\
+	"mmc read 0x80680000 0x3400 0x20 && "	\
+	"esbc_validate 0x80640000 && "		\
+	"esbc_validate 0x80680000 ;"		\
+	"fsl_mc start mc 0x80a00000 0x80e00000\0"
+
 #define EXTRA_ENV_SETTINGS			\
 	"hwconfig=fsl_ddr:bank_intlv=auto\0"	\
 	"ramdisk_addr=0x800000\0"		\
@@ -292,11 +302,11 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
 		"env exists secureboot && esbc_halt;"
 
 #define SD2_BOOTCOMMAND						\
-		"env exists mcinitcmd && mmcinfo; "		\
+		"mmc dev 1; env exists mcinitcmd && mmcinfo; "	\
 		"mmc read 0x80d00000 0x6800 0x800; "		\
 		"env exists mcinitcmd && env exists secureboot "	\
-		" && mmc read 0x80780000 0x3C00 0x20 "		\
-		"&& esbc_validate 0x80780000;env exists mcinitcmd "	\
+		" && mmc read 0x806C0000 0x3600 0x20 "		\
+		"&& esbc_validate 0x806C0000;env exists mcinitcmd "	\
 		"&& fsl_mc lazyapply dpl 0x80d00000;"		\
 		"run distro_bootcmd;run emmc_bootcmd;"		\
 		"env exists secureboot && esbc_halt;"
-- 
1.9.1

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

* [PATCH v2] lx2160a : Update eMMC boot environment variables
  2020-04-09 11:42 [PATCH] lx2160a : Update environment variable Meenakshi Aggarwal
@ 2020-04-09 13:28 ` Meenakshi Aggarwal
  2020-04-15  9:57   ` Priyanka Jain
  2020-04-20 13:14   ` [PATCH v3] lx2160a : Update eMMC boot environment variable Meenakshi Aggarwal
  0 siblings, 2 replies; 5+ messages in thread
From: Meenakshi Aggarwal @ 2020-04-09 13:28 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>

---
Changes in V2:
	- Reword commit message.
---
 include/configs/lx2160a_common.h | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h
index 1907f93..6c3e647 100644
--- a/include/configs/lx2160a_common.h
+++ b/include/configs/lx2160a_common.h
@@ -225,6 +225,16 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
 	"esbc_validate 0x80680000 ;"		\
 	"fsl_mc start mc 0x80a00000 0x80e00000\0"
 
+#define SD2_MC_INIT_CMD				\
+	"mmc read 0x80a00000 0x5000 0x1200;"	\
+	"mmc read 0x80e00000 0x7000 0x800;"	\
+	"env exists secureboot && "		\
+	"mmc read 0x80640000 0x3200 0x20 && "	\
+	"mmc read 0x80680000 0x3400 0x20 && "	\
+	"esbc_validate 0x80640000 && "		\
+	"esbc_validate 0x80680000 ;"		\
+	"fsl_mc start mc 0x80a00000 0x80e00000\0"
+
 #define EXTRA_ENV_SETTINGS			\
 	"hwconfig=fsl_ddr:bank_intlv=auto\0"	\
 	"ramdisk_addr=0x800000\0"		\
@@ -292,11 +302,11 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
 		"env exists secureboot && esbc_halt;"
 
 #define SD2_BOOTCOMMAND						\
-		"env exists mcinitcmd && mmcinfo; "		\
+		"mmc dev 1; env exists mcinitcmd && mmcinfo; "	\
 		"mmc read 0x80d00000 0x6800 0x800; "		\
 		"env exists mcinitcmd && env exists secureboot "	\
-		" && mmc read 0x80780000 0x3C00 0x20 "		\
-		"&& esbc_validate 0x80780000;env exists mcinitcmd "	\
+		" && mmc read 0x806C0000 0x3600 0x20 "		\
+		"&& esbc_validate 0x806C0000;env exists mcinitcmd "	\
 		"&& fsl_mc lazyapply dpl 0x80d00000;"		\
 		"run distro_bootcmd;run emmc_bootcmd;"		\
 		"env exists secureboot && esbc_halt;"
-- 
1.9.1

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

* [PATCH v2] lx2160a : Update eMMC boot environment variables
  2020-04-09 13:28 ` [PATCH v2] lx2160a : Update eMMC boot environment variables Meenakshi Aggarwal
@ 2020-04-15  9:57   ` Priyanka Jain
  2020-04-20 13:14   ` [PATCH v3] lx2160a : Update eMMC boot environment variable Meenakshi Aggarwal
  1 sibling, 0 replies; 5+ messages in thread
From: Priyanka Jain @ 2020-04-15  9:57 UTC (permalink / raw)
  To: u-boot

>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Meenakshi
>Aggarwal
>Sent: Thursday, April 9, 2020 6:58 PM
>To: u-boot at lists.denx.de; Priyanka Jain <priyanka.jain@nxp.com>
>Cc: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
>Subject: [PATCH v2] lx2160a : Update eMMC boot environment variables
>
Please provide the description of what env variables you are updating in this patch

Thanks
Priyanka
>Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
>
>---
>Changes in V2:
>	- Reword commit message.
>---
> include/configs/lx2160a_common.h | 16 +++++++++++++---
> 1 file changed, 13 insertions(+), 3 deletions(-)
>
>diff --git a/include/configs/lx2160a_common.h
>b/include/configs/lx2160a_common.h
>index 1907f93..6c3e647 100644
>--- a/include/configs/lx2160a_common.h
>+++ b/include/configs/lx2160a_common.h
>@@ -225,6 +225,16 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
> 	"esbc_validate 0x80680000 ;"		\
> 	"fsl_mc start mc 0x80a00000 0x80e00000\0"
>
>+#define SD2_MC_INIT_CMD				\
>+	"mmc read 0x80a00000 0x5000 0x1200;"	\
>+	"mmc read 0x80e00000 0x7000 0x800;"	\
>+	"env exists secureboot && "		\
>+	"mmc read 0x80640000 0x3200 0x20 && "	\
>+	"mmc read 0x80680000 0x3400 0x20 && "	\
>+	"esbc_validate 0x80640000 && "		\
>+	"esbc_validate 0x80680000 ;"		\
>+	"fsl_mc start mc 0x80a00000 0x80e00000\0"
>+
> #define EXTRA_ENV_SETTINGS			\
> 	"hwconfig=fsl_ddr:bank_intlv=auto\0"	\
> 	"ramdisk_addr=0x800000\0"		\
>@@ -292,11 +302,11 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
> 		"env exists secureboot && esbc_halt;"
>
> #define SD2_BOOTCOMMAND						\
>-		"env exists mcinitcmd && mmcinfo; "		\
>+		"mmc dev 1; env exists mcinitcmd && mmcinfo; "	\
> 		"mmc read 0x80d00000 0x6800 0x800; "		\
> 		"env exists mcinitcmd && env exists secureboot "	\
>-		" && mmc read 0x80780000 0x3C00 0x20 "		\
>-		"&& esbc_validate 0x80780000;env exists mcinitcmd "	\
>+		" && mmc read 0x806C0000 0x3600 0x20 "		\
>+		"&& esbc_validate 0x806C0000;env exists mcinitcmd "	\
> 		"&& fsl_mc lazyapply dpl 0x80d00000;"		\
> 		"run distro_bootcmd;run emmc_bootcmd;"		\
> 		"env exists secureboot && esbc_halt;"
>--
>1.9.1

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

* [PATCH v3] lx2160a : Update eMMC boot environment variable.
  2020-04-09 13:28 ` [PATCH v2] lx2160a : Update eMMC boot environment variables Meenakshi Aggarwal
  2020-04-15  9:57   ` Priyanka Jain
@ 2020-04-20 13:14   ` Meenakshi Aggarwal
  2020-04-27 14:26     ` [PATCH v4] " Meenakshi Aggarwal
  1 sibling, 1 reply; 5+ messages in thread
From: Meenakshi Aggarwal @ 2020-04-20 13:14 UTC (permalink / raw)
  To: u-boot

Update mcinitcmd and bootcmd environment variable emmc boot.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>

---
Changes in V2:
	- Reword commit message.

Changes in V3:
	- Reword commit message
	- Add "mmc dev 1" in mcinitcmd variable to select eMMC
---
 include/configs/lx2160a_common.h | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h
index 1907f93..c6a6a96 100644
--- a/include/configs/lx2160a_common.h
+++ b/include/configs/lx2160a_common.h
@@ -225,6 +225,16 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
 	"esbc_validate 0x80680000 ;"		\
 	"fsl_mc start mc 0x80a00000 0x80e00000\0"
 
+#define SD2_MC_INIT_CMD				\
+	"mmc dev 1; mmc read 0x80a00000 0x5000 0x1200;"	\
+	"mmc read 0x80e00000 0x7000 0x800;"	\
+	"env exists secureboot && "		\
+	"mmc read 0x80640000 0x3200 0x20 && "	\
+	"mmc read 0x80680000 0x3400 0x20 && "	\
+	"esbc_validate 0x80640000 && "		\
+	"esbc_validate 0x80680000 ;"		\
+	"fsl_mc start mc 0x80a00000 0x80e00000\0"
+
 #define EXTRA_ENV_SETTINGS			\
 	"hwconfig=fsl_ddr:bank_intlv=auto\0"	\
 	"ramdisk_addr=0x800000\0"		\
@@ -292,11 +302,11 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
 		"env exists secureboot && esbc_halt;"
 
 #define SD2_BOOTCOMMAND						\
-		"env exists mcinitcmd && mmcinfo; "		\
+		"mmc dev 1; env exists mcinitcmd && mmcinfo; "	\
 		"mmc read 0x80d00000 0x6800 0x800; "		\
 		"env exists mcinitcmd && env exists secureboot "	\
-		" && mmc read 0x80780000 0x3C00 0x20 "		\
-		"&& esbc_validate 0x80780000;env exists mcinitcmd "	\
+		" && mmc read 0x806C0000 0x3600 0x20 "		\
+		"&& esbc_validate 0x806C0000;env exists mcinitcmd "	\
 		"&& fsl_mc lazyapply dpl 0x80d00000;"		\
 		"run distro_bootcmd;run emmc_bootcmd;"		\
 		"env exists secureboot && esbc_halt;"
-- 
1.9.1

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

* [PATCH v4] lx2160a : Update eMMC boot environment variable
  2020-04-20 13:14   ` [PATCH v3] lx2160a : Update eMMC boot environment variable Meenakshi Aggarwal
@ 2020-04-27 14:26     ` Meenakshi Aggarwal
  0 siblings, 0 replies; 5+ messages in thread
From: Meenakshi Aggarwal @ 2020-04-27 14:26 UTC (permalink / raw)
  To: u-boot

Update mcinitcmd and bootcmd environment variable for emmc boot.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>

---
Changes in V2:
	- Reword commit message

Changes in V3:
	- Reword commit message
	- Add "mmc dev 1" in mcinitcmd variable to
	select eMMC

Changes in V4:
	- Reword commit message
			`
---
 include/configs/lx2160a_common.h | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h
index d47abf6..5ab9244 100644
--- a/include/configs/lx2160a_common.h
+++ b/include/configs/lx2160a_common.h
@@ -207,6 +207,16 @@ unsigned long get_board_ddr_clk(void);
 	"esbc_validate 0x80680000 ;"		\
 	"fsl_mc start mc 0x80a00000 0x80e00000\0"
 
+#define SD2_MC_INIT_CMD				\
+	"mmc dev 1; mmc read 0x80a00000 0x5000 0x1200;"	\
+	"mmc read 0x80e00000 0x7000 0x800;"	\
+	"env exists secureboot && "		\
+	"mmc read 0x80640000 0x3200 0x20 && "	\
+	"mmc read 0x80680000 0x3400 0x20 && "	\
+	"esbc_validate 0x80640000 && "		\
+	"esbc_validate 0x80680000 ;"		\
+	"fsl_mc start mc 0x80a00000 0x80e00000\0"
+
 #define EXTRA_ENV_SETTINGS			\
 	"hwconfig=fsl_ddr:bank_intlv=auto\0"	\
 	"ramdisk_addr=0x800000\0"		\
@@ -274,11 +284,11 @@ unsigned long get_board_ddr_clk(void);
 		"env exists secureboot && esbc_halt;"
 
 #define SD2_BOOTCOMMAND						\
-		"env exists mcinitcmd && mmcinfo; "		\
+		"mmc dev 1; env exists mcinitcmd && mmcinfo; "	\
 		"mmc read 0x80d00000 0x6800 0x800; "		\
 		"env exists mcinitcmd && env exists secureboot "	\
-		" && mmc read 0x80780000 0x3C00 0x20 "		\
-		"&& esbc_validate 0x80780000;env exists mcinitcmd "	\
+		" && mmc read 0x806C0000 0x3600 0x20 "		\
+		"&& esbc_validate 0x806C0000;env exists mcinitcmd "	\
 		"&& fsl_mc lazyapply dpl 0x80d00000;"		\
 		"run distro_bootcmd;run sd2_bootcmd;"		\
 		"env exists secureboot && esbc_halt;"
-- 
1.9.1

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

end of thread, other threads:[~2020-04-27 14:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 11:42 [PATCH] lx2160a : Update environment variable Meenakshi Aggarwal
2020-04-09 13:28 ` [PATCH v2] lx2160a : Update eMMC boot environment variables Meenakshi Aggarwal
2020-04-15  9:57   ` Priyanka Jain
2020-04-20 13:14   ` [PATCH v3] lx2160a : Update eMMC boot environment variable Meenakshi Aggarwal
2020-04-27 14:26     ` [PATCH v4] " Meenakshi Aggarwal

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.