From mboxrd@z Thu Jan 1 00:00:00 1970 From: philippe.cornu@st.com (Philippe CORNU) Date: Thu, 29 Jun 2017 14:43:27 +0000 Subject: [PATCH v4 3/6] drm/bridge/synopsys: Add MIPI DSI host controller bridge In-Reply-To: <1aad8695-8527-574c-2b99-9efa88216aa8@codeaurora.org> References: <1497889685-27349-1-git-send-email-philippe.cornu@st.com> <1497889685-27349-4-git-send-email-philippe.cornu@st.com> <1aad8695-8527-574c-2b99-9efa88216aa8@codeaurora.org> Message-ID: <7ff83ef9-dfc1-6b05-ccf1-1637ed4f4bcc@st.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 06/28/2017 08:44 AM, Archit Taneja wrote: > > > On 06/19/2017 09:58 PM, Philippe CORNU wrote: >> Add a Synopsys Designware MIPI DSI host DRM bridge driver, based on the >> Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. >> >> Signed-off-by: Philippe CORNU >> --- >> drivers/gpu/drm/bridge/synopsys/Kconfig | 6 + >> drivers/gpu/drm/bridge/synopsys/Makefile | 2 + >> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 976 >> ++++++++++++++++++++++++++ >> include/drm/bridge/dw_mipi_dsi.h | 39 + >> 4 files changed, 1023 insertions(+) >> create mode 100644 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> create mode 100644 include/drm/bridge/dw_mipi_dsi.h >> >> diff --git a/drivers/gpu/drm/bridge/synopsys/Kconfig >> b/drivers/gpu/drm/bridge/synopsys/Kconfig >> index 40d2827..f00ee26 100644 >> --- a/drivers/gpu/drm/bridge/synopsys/Kconfig >> +++ b/drivers/gpu/drm/bridge/synopsys/Kconfig >> @@ -21,3 +21,9 @@ config DRM_DW_HDMI_I2S_AUDIO >> help >> Support the I2S Audio interface which is part of the Synopsys >> Designware HDMI block. >> + >> +config DRM_DW_MIPI_DSI >> + tristate >> + select DRM_KMS_HELPER >> + select DRM_MIPI_DSI >> + select DRM_PANEL_BRIDGE >> diff --git a/drivers/gpu/drm/bridge/synopsys/Makefile >> b/drivers/gpu/drm/bridge/synopsys/Makefile >> index 17aa7a6..5f57d36 100644 >> --- a/drivers/gpu/drm/bridge/synopsys/Makefile >> +++ b/drivers/gpu/drm/bridge/synopsys/Makefile >> @@ -3,3 +3,5 @@ >> obj-$(CONFIG_DRM_DW_HDMI) += dw-hdmi.o >> obj-$(CONFIG_DRM_DW_HDMI_AHB_AUDIO) += dw-hdmi-ahb-audio.o >> obj-$(CONFIG_DRM_DW_HDMI_I2S_AUDIO) += dw-hdmi-i2s-audio.o >> + >> +obj-$(CONFIG_DRM_DW_MIPI_DSI) += dw-mipi-dsi.o >> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> new file mode 100644 >> index 0000000..416ed7f >> --- /dev/null >> +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> @@ -0,0 +1,976 @@ >> +/* >> + * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd >> + * Copyright (C) STMicroelectronics SA 2017 >> + * >> + * 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. >> + * >> + * Modified by Philippe Cornu >> + * This generic Synopsys DesignWare MIPI DSI host driver is based on the >> + * Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include