[PATCH] drm: Remove the struct drm_device platformdev field

2017-01-04 Thread Xinwei Kong
rivers/gpu/drm/tilcdc/tilcdc_drv.c > @@ -245,7 +245,6 @@ static int tilcdc_init(struct drm_driver *ddrv, struct > device *dev) > if (IS_ERR(ddev)) > return PTR_ERR(ddev); > > - ddev->platformdev = pdev; > ddev->dev_private = priv; > platform_set_drvdata(pdev, ddev); > drm_mode_config_init(ddev); > diff --git a/include/drm/drmP.h b/include/drm/drmP.h > index 0d6c1a13f533..4cc27449d6d7 100644 > --- a/include/drm/drmP.h > +++ b/include/drm/drmP.h > @@ -609,7 +609,6 @@ struct drm_device { > struct pci_controller *hose; > #endif > > - struct platform_device *platformdev; /**< Platform device struture */ > struct virtio_device *virtdev; > > struct drm_sg_mem *sg; /**< Scatter gather memory */ Acked-by: Xinwei Kong

[PATCH RFC 0/8] Add New DRM Driver for Hisilicon's Hi6220 SoC

2015-09-18 Thread Xinwei Kong
.. > > On 15 September 2015 at 10:37, Xinwei Kong > wrote: >> 1. Hardware Detail >> The display subsystem of Hi6220 SoC is shown as bellow: >> +-+ +--+ +-+ +-+ >> | | | | | | | | &

[PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-17 Thread Xinwei Kong
hi architt On 2015/9/16 17:10, Archit Taneja wrote: > Hi, > > On 09/16/2015 02:04 PM, Xinwei Kong wrote: >> hi architt >> >> On 2015/9/16 2:11, Rob Herring wrote: >>> On 09/15/2015 04:37 AM, Xinwei Kong wrote: >>>> This adds documentation of devic

[PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-16 Thread Xinwei Kong
hi architt On 2015/9/16 2:11, Rob Herring wrote: > On 09/15/2015 04:37 AM, Xinwei Kong wrote: >> This adds documentation of device tree bindings for the >> Graphics Processing Unit of hi6220 SOC. >> >> Signed-off-by: Xinliang Liu >> Signed-off-by: Xinwei K

[PATCH RFC 6/8] drm: hisilicon: Add support for fbdev

2015-09-16 Thread Xinwei Kong
hi rob On 2015/9/16 2:25, Rob Herring wrote: > On 09/15/2015 04:37 AM, Xinwei Kong wrote: >> If you config DRM_HISI_FBDEV optional, this patch will only support fbdev >> mode while also supporting double buffer. > > This is a lot of duplicated code from CMA fbdev. Is double

[PATCH RFC 8/8] dts: hisilicon: Add drm driver device dts config for HiKey board

2015-09-15 Thread Xinwei Kong
This patch adds drm dts node for HiKey board using hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 34 +++ 1 file changed

[PATCH RFC 7/8] drm: hisilicon: Add support for vblank

2015-09-15 Thread Xinwei Kong
This patch adds ldi interrupt to handle vblank. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/hisi_ade.c | 71 +++- drivers/gpu/drm/hisilicon

[PATCH RFC 6/8] drm: hisilicon: Add support for fbdev

2015-09-15 Thread Xinwei Kong
If you config DRM_HISI_FBDEV optional, this patch will only support fbdev mode while also supporting double buffer. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/Kconfig

[PATCH RFC 5/8] drm: hisilicon: fill interface function of encoder\connector part

2015-09-15 Thread Xinwei Kong
This patch enables the adv7533 module which is connecting hisilicon SOC by dsi module. while using DSI module and adv7533 module to implement the encoder/connector interface of DRM\KMS. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi

[PATCH RFC 4/8] drm: hisilicon: fill interface function of plane\crtc part

2015-09-15 Thread Xinwei Kong
This patch uses ADE module which is responsibe for graphic overlay, graphic post-processing, display timing control within hi6220 SoC to implement the plane\ctrc interface of DRM\KMS. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi

[PATCH RFC 3/8] drm: hisilicon: Add the link to DRM/KMS interface

2015-09-15 Thread Xinwei Kong
: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/Makefile | 4 + drivers/gpu/drm/hisilicon/hisi_ade.c | 44 + drivers/gpu/drm/hisilicon/hisi_ade_reg.h | 27 +++ drivers

[PATCH RFC 2/8] drm: hisilicon: Add new DRM driver for hisilicon Soc

2015-09-15 Thread Xinwei Kong
-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- arch/arm64/configs/defconfig | 5 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm

[PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-15 Thread Xinwei Kong
This adds documentation of device tree bindings for the Graphics Processing Unit of hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- .../devicetree/bindings/gpu/hisilicon,hi6220.txt | 69

[PATCH RFC 0/8] Add New DRM Driver for Hisilicon's Hi6220 SoC

2015-09-15 Thread Xinwei Kong
or) to reuse the common interface implementation logic (FIXME: Not sure if we can achieve this target and if it is good or not). Thus, we put these common driver code into hisi_drm_drv/crtc/plane/encoder/connector.c files. Xinwei Kong (8): dt-bindings: Document the hi6220 bindings for DRM driver d

[PATCH] drm: sti: fix sub-components bind

2015-07-16 Thread Xinwei Kong
hi ben: your patch is ok, i don't know your hardware how to use. In this first code why use that style dts? If you detail research our patch, you will find that it can compatiable your fixing dts. If you don't approve our patch better, I will be glad to see you to slove this bug Thank you Xinwei

[PATCH 1/1] drm/sti: fix master bind bug for using component

2015-07-16 Thread Xinwei Kong
Thank you Xinwei On 2015/7/16 15:17, Benjamin Gaignard wrote: > This patch isn't the good one, I send the fix here: > http://lists.freedesktop.org/archives/dri-devel/2015-July/086568.html > > Regards, > Benjamin > > 2015-07-16 3:13 GMT+02:00 Xinwei Kong : >> Thank yo

[PATCH 1/1] drm/sti: fix master bind bug for using component

2015-07-16 Thread Xinwei Kong
Thank you for Russel. It is Right, when this sti_tvout (component) finish executing component ".bind" function while sti_hdmi or sti_hda is not registered. the bug will occur . this patch will prepare this bug by calling master .bind of sti_tvout after sti_hdmi or sti_hda is register to finish bi

[PATCH 1/1] drm/sti: fix master bind bug for using component

2015-07-14 Thread Xinwei Kong
From: Xinwei Kong This patch fix one bug which it can't call .bind function in sti_hdmi.c and sti_hda.c file when changing the building sequence (sti_hdmi.o,sti_hda.o) in Makefile file. This patch can prepare it. Signed-off-by: Xinwei Kong --- drivers/gpu/drm/sti/sti_tvout.c