From mboxrd@z Thu Jan 1 00:00:00 1970 From: architt@codeaurora.org (Archit Taneja) Date: Wed, 28 Jun 2017 12:18:05 +0530 Subject: [PATCH v4 6/6] drm/stm: Add STM32 DSI host driver In-Reply-To: <1497889685-27349-7-git-send-email-philippe.cornu@st.com> References: <1497889685-27349-1-git-send-email-philippe.cornu@st.com> <1497889685-27349-7-git-send-email-philippe.cornu@st.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 06/19/2017 09:58 PM, Philippe CORNU wrote: > Add the STM32 DSI host driver that uses the Synopsys DesignWare > MIPI DSI DRM bridge. > > Signed-off-by: Philippe CORNU > Reviewed-by: Neil Armstrong Reviewed-by: Archit Taneja > --- > drivers/gpu/drm/stm/Kconfig | 7 + > drivers/gpu/drm/stm/Makefile | 2 + > drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 352 ++++++++++++++++++++++++++++++++++ > 3 files changed, 361 insertions(+) > create mode 100644 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > > diff --git a/drivers/gpu/drm/stm/Kconfig b/drivers/gpu/drm/stm/Kconfig > index 4b88223..f9462bc 100644 > --- a/drivers/gpu/drm/stm/Kconfig > +++ b/drivers/gpu/drm/stm/Kconfig > @@ -14,3 +14,10 @@ config DRM_STM > STMicroelectronics STM32 MCUs. > To compile this driver as a module, choose M here: the module > will be called stm-drm. > + > +config DRM_STM_DSI > + tristate "STMicroelectronics specific extensions for Synopsys MIPI DSI" > + depends on DRM_STM > + select DRM_DW_MIPI_DSI > + help > + Choose this option for MIPI DSI support on STMicroelectronics SoC. > diff --git a/drivers/gpu/drm/stm/Makefile b/drivers/gpu/drm/stm/Makefile > index a09ecf4..d883adc 100644 > --- a/drivers/gpu/drm/stm/Makefile > +++ b/drivers/gpu/drm/stm/Makefile > @@ -2,4 +2,6 @@ stm-drm-y := \ > drv.o \ > ltdc.o > > +obj-$(CONFIG_DRM_STM_DSI) += dw_mipi_dsi-stm.o > + > obj-$(CONFIG_DRM_STM) += stm-drm.o > diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > new file mode 100644 > index 0000000..16ae00e > --- /dev/null > +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > @@ -0,0 +1,352 @@ > +/* > + * Copyright (C) STMicroelectronics SA 2017 > + * > + * Authors: Philippe Cornu > + * Yannick Fertre > + * > + * License terms: GNU General Public License (GPL), version 2 > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include