Re: [U-Boot] [PATCH v2 2/2] imx: make ipu's di configurable

2016-11-29 Thread Stefano Babic
On 01/11/2016 15:04, Max Krummenacher wrote:
> 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.
> 
> Signed-off-by: Max Krummenacher 
> 
> ---
> 

Applied to u-boot-imx, 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: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 2/2] imx: make ipu's di configurable

2016-11-01 Thread Eric Nelson
On 11/01/2016 07:04 AM, Max Krummenacher wrote:
> 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.
> 
> Signed-off-by: Max Krummenacher 
> 
> ---
> 
> 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(-)
> 
> diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c
> index fdc987f..549bf9d 100644
> --- a/arch/arm/imx-common/video.c
> +++ b/arch/arm/imx-common/video.c
> @@ -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)
> diff --git a/arch/arm/include/asm/imx-common/video.h 
> b/arch/arm/include/asm/imx-common/video.h
> index cad5f86..941a031 100644
> --- a/arch/arm/include/asm/imx-common/video.h
> +++ b/arch/arm/include/asm/imx-common/video.h
> @@ -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;
> 

Reviewed-by: Eric Nelson 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 2/2] imx: make ipu's di configurable

2016-11-01 Thread 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.

Signed-off-by: Max Krummenacher 

---

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(-)

diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c
index fdc987f..549bf9d 100644
--- a/arch/arm/imx-common/video.c
+++ b/arch/arm/imx-common/video.c
@@ -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)
diff --git a/arch/arm/include/asm/imx-common/video.h 
b/arch/arm/include/asm/imx-common/video.h
index cad5f86..941a031 100644
--- a/arch/arm/include/asm/imx-common/video.h
+++ b/arch/arm/include/asm/imx-common/video.h
@@ -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;
-- 
2.6.6

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot