RE: [PATCH v2] lx2160a : Update eMMC boot environment variables

2020-04-15 Thread Priyanka Jain (OSS)
>-Original Message-
>From: U-Boot  On Behalf Of Meenakshi
>Aggarwal
>Sent: Thursday, April 9, 2020 6:58 PM
>To: u-boot@lists.denx.de; Priyanka Jain 
>Cc: Meenakshi Aggarwal 
>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 
>
>---
>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 0x8068 ;"\
>   "fsl_mc start mc 0x80a0 0x80e0\0"
>
>+#define SD2_MC_INIT_CMD   \
>+  "mmc read 0x80a0 0x5000 0x1200;"\
>+  "mmc read 0x80e0 0x7000 0x800;" \
>+  "env exists secureboot && " \
>+  "mmc read 0x8064 0x3200 0x20 && "   \
>+  "mmc read 0x8068 0x3400 0x20 && "   \
>+  "esbc_validate 0x8064 && "  \
>+  "esbc_validate 0x8068 ;"\
>+  "fsl_mc start mc 0x80a0 0x80e0\0"
>+
> #define EXTRA_ENV_SETTINGS\
>   "hwconfig=fsl_ddr:bank_intlv=auto\0"\
>   "ramdisk_addr=0x80\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 0x80d0 0x6800 0x800; "\
>   "env exists mcinitcmd && env exists secureboot "\
>-  " && mmc read 0x8078 0x3C00 0x20 "  \
>-  "&& esbc_validate 0x8078;env exists mcinitcmd " \
>+  " && mmc read 0x806C 0x3600 0x20 "  \
>+  "&& esbc_validate 0x806C;env exists mcinitcmd " \
>   "&& fsl_mc lazyapply dpl 0x80d0;"   \
>   "run distro_bootcmd;run emmc_bootcmd;"  \
>   "env exists secureboot && esbc_halt;"
>--
>1.9.1


[PATCH v2] lx2160a : Update eMMC boot environment variables

2020-04-09 Thread Meenakshi Aggarwal
Signed-off-by: Meenakshi Aggarwal 

---
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 0x8068 ;"\
"fsl_mc start mc 0x80a0 0x80e0\0"
 
+#define SD2_MC_INIT_CMD\
+   "mmc read 0x80a0 0x5000 0x1200;"\
+   "mmc read 0x80e0 0x7000 0x800;" \
+   "env exists secureboot && " \
+   "mmc read 0x8064 0x3200 0x20 && "   \
+   "mmc read 0x8068 0x3400 0x20 && "   \
+   "esbc_validate 0x8064 && "  \
+   "esbc_validate 0x8068 ;"\
+   "fsl_mc start mc 0x80a0 0x80e0\0"
+
 #define EXTRA_ENV_SETTINGS \
"hwconfig=fsl_ddr:bank_intlv=auto\0"\
"ramdisk_addr=0x80\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 0x80d0 0x6800 0x800; "\
"env exists mcinitcmd && env exists secureboot "\
-   " && mmc read 0x8078 0x3C00 0x20 "  \
-   "&& esbc_validate 0x8078;env exists mcinitcmd " \
+   " && mmc read 0x806C 0x3600 0x20 "  \
+   "&& esbc_validate 0x806C;env exists mcinitcmd " \
"&& fsl_mc lazyapply dpl 0x80d0;"   \
"run distro_bootcmd;run emmc_bootcmd;"  \
"env exists secureboot && esbc_halt;"
-- 
1.9.1