Skip to contentSkip to conversation

spl: mmc: fix switch statement

PATCH New Max Krummenacher 3 participants 4 messages Nov 1, 2016 – Nov 29, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 spl: mmc: fix switch statement

If CONFIG_SPL_LIBCOMMON_SUPPORT is not defined there is a lone case statement at the end of the switch leading to a compile error.
Remove the offending case statement.

| common/spl/spl_mmc.c:339:7: error: label at end of compound statement

---

Changes in v2:
- dropped patch 'mx6: synchronize SPL to u-boot offset'. Dependent on the bootmedia that offset might change, so provide it from the board config.
- added Acked and Reviewed by to 'spl: mmc: fix switch statement'

 common/spl/spl_mmc.c | 1 -
 1 file changed, 1 deletion(-)
common/spl/spl_mmc.c +0 -1
index c674e61..367b4e4 100644
@@ -342,7 +342,6 @@ static int spl_mmc_load_image(struct spl_image_info *spl_image,
 			return err;
 
 		break;
-	case MMCSD_MODE_UNDEFINED:
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
 	default:
 		puts("spl: mmc: wrong boot mode\n");
Signature · 1 line
2.6.6
#1 lore raw

PATCH v2 2/2 imx: make ipu's di configurable

The ipu has two display interfaces. Make the used one a parameter in struct display_info_t instead of using unconditionally DI0. DI0 is the default setting.

---

Changes in v2:
- none

 arch/arm/imx-common/video.c             | 2 +-
 arch/arm/include/asm/imx-common/video.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/arm/imx-common/video.c +1 -1
index fdc987f..549bf9d 100644
@@ -34,7 +34,7 @@ int board_video_skip(void)
 	}
 
 	if (i < display_count) {
-		ret = ipuv3_fb_init(&displays[i].mode, 0,
+		ret = ipuv3_fb_init(&displays[i].mode, displays[i].di ? 1 : 0,
 				    displays[i].pixfmt);
 		if (!ret) {
 			if (displays[i].enable)
arch/arm/include/asm/imx-common/video.h +1 -0
index cad5f86..941a031 100644
@@ -12,6 +12,7 @@ struct display_info_t {
 	int	bus;
 	int	addr;
 	int	pixfmt;
+	int	di;
 	int	(*detect)(struct display_info_t const *dev);
 	void	(*enable)(struct display_info_t const *dev);
 	struct	fb_videomode mode;
Signature · 1 line
2.6.6
#2 lore raw

PATCH v2 2/2 imx: make ipu's di configurable

Quoted 34 lines · Max Krummenacher

The ipu has two display interfaces. Make the used one a parameter in struct display_info_t instead of using unconditionally DI0. DI0 is the default setting.

---

Changes in v2:
- none

 arch/arm/imx-common/video.c             | 2 +-
 arch/arm/include/asm/imx-common/video.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/arm/imx-common/video.c +1 -1
index fdc987f..549bf9d 100644
@@ -34,7 +34,7 @@ int board_video_skip(void)
 	}
 
 	if (i < display_count) {
-		ret = ipuv3_fb_init(&displays[i].mode, 0,
+		ret = ipuv3_fb_init(&displays[i].mode, displays[i].di ? 1 : 0,
 				    displays[i].pixfmt);
 		if (!ret) {
 			if (displays[i].enable)
arch/arm/include/asm/imx-common/video.h +0 -0
index cad5f86..941a031 100644

arch/arm/include/asm/imx-common/video.h struct display_info_t { · line 18

Quoted 7 lines
arch/arm/include/asm/imx-common/video.h +1 -0
@@ -12,6 +12,7 @@ struct display_info_t {
 	int	bus;
 	int	addr;
 	int	pixfmt;
+	int	di;
 	int	(*detect)(struct display_info_t const *dev);
 	void	(*enable)(struct display_info_t const *dev);
 	struct	fb_videomode mode;
#3 lore raw

PATCH v2 2/2 imx: make ipu's di configurable

In reply to Max Krummenacher
Quoted 8 lines · Max Krummenacher

The ipu has two display interfaces. Make the used one a parameter in struct display_info_t instead of using unconditionally DI0. DI0 is the default setting.

---

Applied to u-boot-imx, thanks !

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
=====================================================================