drm: Add Grain Media GM12U320 kms driver
Subsystems (2)
cover drm: Add Grain Media GM12U320 kms driver
Hi All,
Here is a kms driver, including prime support for Grain-media GM12U320 based USB mini video projectors. These projectors use USB for both power and video data transport.
This driver is based on the udl code, where as the GM12U320 usb protocol specific bits come from Viacheslav Nurmekhamitov <[email protected]>'s gm12u320 fb driver.
The gm12u320_gem.c and _dmabuf.c files are 100% identical to the udl ones except for a s/udl/gm12u320/, as such we should consider creating a shared implemantation of these, IMHO this is best done in a followup patch.
This patch is against 4.2-rc1, but it has only been tested build standalone against 4.1 as 4.2-rc1 does not boor for me.
Regards,
Hans
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/1 drm: Add Grain Media GM12U320 kms driver
Grain-media GM12U320 based devices are mini video projectors using USB for both power and video data transport.
This commit adds a kms driver for these devices, including prime support.
This driver is based on the existing udl kms driver, and the gm12u320 fb driver by Viacheslav Nurmekhamitov <[email protected]>.
--- MAINTAINERS | 6 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/gm12u320/Kconfig | 16 + drivers/gpu/drm/gm12u320/Makefile | 7 + drivers/gpu/drm/gm12u320/gm12u320_connector.c | 151 ++++++++ drivers/gpu/drm/gm12u320/gm12u320_dmabuf.c | 283 +++++++++++++++ drivers/gpu/drm/gm12u320/gm12u320_drv.c | 160 +++++++++ drivers/gpu/drm/gm12u320/gm12u320_drv.h | 131 +++++++ drivers/gpu/drm/gm12u320/gm12u320_encoder.c | 83 +++++ drivers/gpu/drm/gm12u320/gm12u320_fb.c | 420 ++++++++++++++++++++++ drivers/gpu/drm/gm12u320/gm12u320_gem.c | 241 +++++++++++++ drivers/gpu/drm/gm12u320/gm12u320_main.c | 499 ++++++++++++++++++++++++++ drivers/gpu/drm/gm12u320/gm12u320_modeset.c | 152 ++++++++ 14 files changed, 2152 insertions(+) create mode 100644 drivers/gpu/drm/gm12u320/Kconfig create mode 100644 drivers/gpu/drm/gm12u320/Makefile create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_connector.c create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_dmabuf.c create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_drv.c create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_drv.h create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_encoder.c create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_fb.c create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_gem.c create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_main.c create mode 100644 drivers/gpu/drm/gm12u320/gm12u320_modeset.c
MAINTAINERS +6 -0
@@ -3543,6 +3543,12 @@ S: Maintained F: drivers/gpu/drm/imx/ F: Documentation/devicetree/bindings/drm/imx/ +DRM DRIVERS FOR GRAIN-MEDIA GM12U320 +M: Hans de Goede <[email protected]> +L: [email protected] +S: Supported +F: drivers/gpu/drm/gm12u320/ + DRM DRIVERS FOR NVIDIA TEGRA M: Thierry Reding <[email protected]> M: Terje Bergström <[email protected]>
drivers/gpu/drm/Kconfig +2 -0
@@ -240,3 +240,5 @@ source "drivers/gpu/drm/sti/Kconfig" source "drivers/gpu/drm/amd/amdkfd/Kconfig" source "drivers/gpu/drm/imx/Kconfig" + +source "drivers/gpu/drm/gm12u320/Kconfig"
drivers/gpu/drm/Makefile +1 -0
@@ -67,6 +67,7 @@ obj-$(CONFIG_DRM_MSM) += msm/ obj-$(CONFIG_DRM_TEGRA) += tegra/ obj-$(CONFIG_DRM_STI) += sti/ obj-$(CONFIG_DRM_IMX) += imx/ +obj-$(CONFIG_DRM_GM12U320) += gm12u320/ obj-y += i2c/ obj-y += panel/ obj-y += bridge/
drivers/gpu/drm/gm12u320/Kconfig new file +16 -0
@@ -0,0 +1,16 @@ +config DRM_GM12U320 + tristate "Grain Media GM12U320 based mini projectors" + depends on DRM + depends on USB_SUPPORT + depends on USB_ARCH_HAS_HCD + select USB + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_DEFERRED_IO + select DRM_KMS_HELPER + select DRM_KMS_FB_HELPER + help + This is a KMS driver for Grain Media GM12U320 based usb mini video + projectors, such as the Acer C120. + Say M/Y to add support for these devices via drm/kms interfaces.
drivers/gpu/drm/gm12u320/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +ccflags-y := -Iinclude/drm + +gm12u320-y := gm12u320_drv.o gm12u320_modeset.o gm12u320_connector.o \ + gm12u320_encoder.o gm12u320_main.o gm12u320_fb.o \ + gm12u320_gem.o gm12u320_dmabuf.o + +obj-$(CONFIG_DRM_GM12U320) += gm12u320.o
drivers/gpu/drm/gm12u320/gm12u320_connector.c new file +151 -0
151 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_dmabuf.c new file +283 -0
283 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_drv.c new file +160 -0
160 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_drv.h new file +131 -0
131 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_encoder.c new file +83 -0
83 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_fb.c new file +420 -0
420 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_gem.c new file +241 -0
241 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_main.c new file +499 -0
499 lines not on this page · raw message
drivers/gpu/drm/gm12u320/gm12u320_modeset.c new file +152 -0
152 lines not on this page · raw message
Signature · 6 lines
2.4.3 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel