From baae63d78c750f9555dd98a7df2c32bb7a48571d Mon Sep 17 00:00:00 2001 From: Fancy Fang Date: Wed, 21 Aug 2019 11:05:40 +0800 Subject: [PATCH] video: fbdev: mxc: add Samsung MIPI DSI driver support Add the framebuffer driver support for the Samsung MIPI DSI controller. Signed-off-by: Fancy Fang --- drivers/video/fbdev/mxc/Kconfig | 4 + drivers/video/fbdev/mxc/Makefile | 1 + drivers/video/fbdev/mxc/mipi_dsi_samsung.c | 952 +++++++++++++++++++++ include/linux/mipi_dsi_samsung.h | 131 +++ 4 files changed, 1088 insertions(+) create mode 100644 drivers/video/fbdev/mxc/mipi_dsi_samsung.c create mode 100644 include/linux/mipi_dsi_samsung.h diff --git a/drivers/video/fbdev/mxc/Kconfig b/drivers/video/fbdev/mxc/Kconfig index 04f570fa7b0b..4a228ed4c309 100644 --- a/drivers/video/fbdev/mxc/Kconfig +++ b/drivers/video/fbdev/mxc/Kconfig @@ -61,3 +61,7 @@ config FB_MXC_RK_PANEL_RK055IQH042 tristate "ROCKTECH Panel RK055IQH042" depends on FB_MXC_DISP_FRAMEWORK depends on FB_MXC_MIPI_DSI_NORTHWEST + +config FB_MXC_MIPI_DSI_SAMSUNG + tristate "MXC MIPI_DSI_SAMSUNG" + depends on FB_MXS diff --git a/drivers/video/fbdev/mxc/Makefile b/drivers/video/fbdev/mxc/Makefile index a2cd93903517..afc954e9acbe 100644 --- a/drivers/video/fbdev/mxc/Makefile +++ b/drivers/video/fbdev/mxc/Makefile @@ -5,3 +5,4 @@ obj-$(CONFIG_FB_MXC_ADV7535) += adv7535.o obj-$(CONFIG_FB_MXC_TRULY_PANEL_TFT3P5581E) += mxcfb_hx8363_wvga.o obj-$(CONFIG_FB_MXC_RK_PANEL_RK055AHD042) += mxcfb_rm68200_wxga.o obj-$(CONFIG_FB_MXC_RK_PANEL_RK055IQH042) += mxcfb_rm68191_qhd.o +obj-$(CONFIG_FB_MXC_MIPI_DSI_SAMSUNG) += mipi_dsi_samsung.o diff --git a/drivers/video/fbdev/mxc/mipi_dsi_samsung.c b/drivers/video/fbdev/mxc/mipi_dsi_samsung.c new file mode 100644 index 000000000000..f41058df2bcd --- /dev/null +++ b/drivers/video/fbdev/mxc/mipi_dsi_samsung.c @@ -0,0 +1,952 @@ +/* + * Copyright (C) 2015 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2017 NXP. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include