From 8fa188c1466e6a74536f1b46fff88bf9b08b0d78 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Tue, 23 Feb 2016 15:19:39 +0800 Subject: MLK-12437-2 Video: Update the common board_video_skip to support MXS LCD Update the board_video_skip to use CONFIG_VIDEO_MXS for LCD display support. Signed-off-by: Ye Li (cherry picked from commit d6d0265b09e66c576ab4c01841166415f834a1ff) --- arch/arm/imx-common/video.c | 8 ++++++++ arch/arm/include/asm/imx-common/video.h | 6 ++++++ 2 files changed, 14 insertions(+) (limited to 'arch') diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c index 549bf9d..0f61593 100644 --- a/arch/arm/imx-common/video.c +++ b/arch/arm/imx-common/video.c @@ -1,4 +1,6 @@ /* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * * SPDX-License-Identifier: GPL-2.0+ */ @@ -34,8 +36,14 @@ int board_video_skip(void) } if (i < display_count) { +#if defined(CONFIG_VIDEO_IPUV3) ret = ipuv3_fb_init(&displays[i].mode, displays[i].di ? 1 : 0, displays[i].pixfmt); +#elif defined(CONFIG_VIDEO_MXS) + ret = mxs_lcd_panel_setup(displays[i].mode, + displays[i].pixfmt, + displays[i].bus); +#endif if (!ret) { if (displays[i].enable) displays[i].enable(displays + i); diff --git a/arch/arm/include/asm/imx-common/video.h b/arch/arm/include/asm/imx-common/video.h index 941a031..92b164a 100644 --- a/arch/arm/include/asm/imx-common/video.h +++ b/arch/arm/include/asm/imx-common/video.h @@ -1,4 +1,6 @@ /* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * * SPDX-License-Identifier: GPL-2.0+ */ @@ -6,7 +8,11 @@ #define __IMX_VIDEO_H_ #include +#if defined(CONFIG_VIDEO_IPUV3) #include +#elif defined(CONFIG_VIDEO_MXS) +#include +#endif struct display_info_t { int bus; -- cgit v1.1