Skip to contentSkip to conversation

icore: configs: Fix merge conflict issue

PATCH New Jagan Teki 2 participants 4 messages Oct 12, 2017 Arm i.MX and Layerscape

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v2 1/2 icore: configs: Fix merge conflict issue

Fix for finding mmc devices on i.MX6Q icore boards added in below comment
"icorem6: Fix to find MMC devices"
(sha1: a2b137b38d925df91afef52f5122927de024f81a)

which is reverted in during u-boot-imx merge
" Merge git://git.denx.de/u-boot-imx"
(sha1: 6aee2ab68c362ace5a59f89a63abed82e0bf19e5)

This patch, is recreated to fix merge conflict.

---
Changes for v2:
- None

 configs/imx6qdl_icore_mmc_defconfig | 1 -
 configs/imx6qdl_icore_rqs_defconfig | 1 -
 2 files changed, 2 deletions(-)
configs/imx6qdl_icore_mmc_defconfig +0 -1
index 7a1735a..28e4ce9 100644
@@ -36,7 +36,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIST="imx6q-icore imx6dl-icore"
 CONFIG_ENV_IS_IN_MMC=y
-# CONFIG_BLK is not set
 CONFIG_SYS_I2C_MXC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_SMSC=y
configs/imx6qdl_icore_rqs_defconfig +0 -1
index 1d02ad0..fbe9651 100644
@@ -33,7 +33,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIST="imx6q-icore-rqs imx6dl-icore-rqs"
 CONFIG_ENV_IS_IN_MMC=y
-# CONFIG_BLK is not set
 CONFIG_SYS_I2C_MXC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH v2 2/2 icorem6_rqs: env: Return mmc devno

Instead of changing mmc devno from dts nodes better to return the detected devno so-that env trigger the same.

---
Changes for v2:
- None

 board/engicam/icorem6_rqs/icorem6_rqs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
board/engicam/icorem6_rqs/icorem6_rqs.c +1 -2
index 2a321dc..0114889 100644
@@ -27,8 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #ifdef CONFIG_ENV_IS_IN_MMC
 int board_mmc_get_env_dev(int devno)
 {
-	/* dev 0 for SD/eSD, dev 1 for MMC/eMMC */
-	return (devno == 3) ? 1 : 0;
+	return devno;
 }
 #endif
 
Signature · 1 line
2.7.4
#3 lore raw

PATCH v2 1/2 icore: configs: Fix merge conflict issue

In reply to Jagan Teki
Quoted 38 lines · Jagan Teki

Fix for finding mmc devices on i.MX6Q icore boards added in below comment
"icorem6: Fix to find MMC devices"
(sha1: a2b137b38d925df91afef52f5122927de024f81a)

which is reverted in during u-boot-imx merge
" Merge git://git.denx.de/u-boot-imx"
(sha1: 6aee2ab68c362ace5a59f89a63abed82e0bf19e5)

This patch, is recreated to fix merge conflict.

---
Changes for v2:
- None

 configs/imx6qdl_icore_mmc_defconfig | 1 -
 configs/imx6qdl_icore_rqs_defconfig | 1 -
 2 files changed, 2 deletions(-)
configs/imx6qdl_icore_mmc_defconfig +0 -1
index 7a1735a..28e4ce9 100644
@@ -36,7 +36,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIST="imx6q-icore imx6dl-icore"
 CONFIG_ENV_IS_IN_MMC=y
-# CONFIG_BLK is not set
 CONFIG_SYS_I2C_MXC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_SMSC=y
configs/imx6qdl_icore_rqs_defconfig +0 -0
index 1d02ad0..fbe9651 100644

configs/imx6qdl_icore_rqs_defconfig CONFIG_CMD_FAT=y · line 38

Quoted 7 lines
configs/imx6qdl_icore_rqs_defconfig +0 -1
@@ -33,7 +33,6 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIST="imx6q-icore-rqs imx6dl-icore-rqs"
 CONFIG_ENV_IS_IN_MMC=y
-# CONFIG_BLK is not set
 CONFIG_SYS_I2C_MXC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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 at denx.de
=====================================================================
#2 lore raw

PATCH v2 2/2 icorem6_rqs: env: Return mmc devno

In reply to Jagan Teki
Quoted 17 lines · Jagan Teki

Instead of changing mmc devno from dts nodes better to return the detected devno so-that env trigger the same.

---
Changes for v2:
- None

 board/engicam/icorem6_rqs/icorem6_rqs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
board/engicam/icorem6_rqs/icorem6_rqs.c +0 -0
index 2a321dc..0114889 100644

board/engicam/icorem6_rqs/icorem6_rqs.c DECLARE_GLOBAL_DATA_PTR; · line 33

Quoted 9 lines
board/engicam/icorem6_rqs/icorem6_rqs.c +1 -2
@@ -27,8 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #ifdef CONFIG_ENV_IS_IN_MMC
 int board_mmc_get_env_dev(int devno)
 {
-	/* dev 0 for SD/eSD, dev 1 for MMC/eMMC */
-	return (devno == 3) ? 1 : 0;
+	return devno;
 }
 #endif
 

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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 at denx.de
=====================================================================