From mboxrd@z Thu Jan 1 00:00:00 1970 From: architt@codeaurora.org (Archit Taneja) Date: Fri, 9 Jun 2017 11:01:48 +0530 Subject: [PATCH v3 6/6] drm/stm: Add STM32 DSI host driver In-Reply-To: References: <1496414235-20098-1-git-send-email-philippe.cornu@st.com> <1496414235-20098-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/06/2017 01:41 PM, Neil Armstrong wrote: > Hi Philippe, > > On 06/02/2017 04:37 PM, Philippe CORNU wrote: >> Add the STM32 DSI host driver that uses the Synopsys DesignWare >> MIPI DSI DRM bridge. >> >> Signed-off-by: Philippe CORNU >> --- >> drivers/gpu/drm/stm/Kconfig | 8 + >> drivers/gpu/drm/stm/Makefile | 2 + >> drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 353 ++++++++++++++++++++++++++++++++++ >> 3 files changed, 363 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..4c0d670 100644 >> --- a/drivers/gpu/drm/stm/Kconfig >> +++ b/drivers/gpu/drm/stm/Kconfig >> @@ -14,3 +14,11 @@ 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_MIPI_DSI >> + 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..8dedc5c >> --- /dev/null >> +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c >> @@ -0,0 +1,353 @@ >> +/* >> + * Copyright (C) STMicroelectronics SA 2017 >> + * >> + * Authors: Philippe Cornu >> + * Yannick Fertre >> + * >> + * License terms: GNU General Public License (GPL), version 2 >> + */ >> + >> +#include >> +#include >> +#include We don't seem to use any math64 funcs. >> +#include >> +#include >> +#include >> +#include >> +#include