From dc4dcb47490d797c77fc1b3c973b49436c90e151 Mon Sep 17 00:00:00 2001 From: Xu YiPing Date: Mon, 25 Mar 2019 20:59:41 +0800 Subject: [PATCH] ANDROID: drm: kirin: Add kirin960 dpe driver support add kirin960 dpe driver support Bug: 146450171 Signed-off-by: Xu YiPing [jstultz: includes fixes folded in to remove LDI enable call, fix rdma_stride calculation, and fix hdmi hotplug crashes] Signed-off-by: John Stultz Change-Id: Ifdf3ef522f929c23f7da49b3c692550a3b3d6c49 --- drivers/gpu/drm/hisilicon/kirin/Makefile | 1 + .../gpu/drm/hisilicon/kirin/kirin_drm_dpe.c | 1274 +++++++++++++++++ .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 5 + .../gpu/drm/hisilicon/kirin/kirin_drm_drv.h | 3 + 4 files changed, 1283 insertions(+) mode change 100755 => 100644 drivers/gpu/drm/hisilicon/kirin/Makefile create mode 100644 drivers/gpu/drm/hisilicon/kirin/kirin_drm_dpe.c diff --git a/drivers/gpu/drm/hisilicon/kirin/Makefile b/drivers/gpu/drm/hisilicon/kirin/Makefile old mode 100755 new mode 100644 index 009f5e05f97a..ddd47343aca5 --- a/drivers/gpu/drm/hisilicon/kirin/Makefile +++ b/drivers/gpu/drm/hisilicon/kirin/Makefile @@ -11,5 +11,6 @@ kirin-drm-$(CONFIG_DRM_HISI_KIRIN620) += \ kirin-drm-$(CONFIG_DRM_HISI_KIRIN960) += \ kirin960/dw_drm_dsi.o \ + kirin_drm_dpe.o obj-$(CONFIG_DRM_HISI_KIRIN) += kirin-drm.o diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_dpe.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_dpe.c new file mode 100644 index 000000000000..c52314305f23 --- /dev/null +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_dpe.c @@ -0,0 +1,1274 @@ +/* + * Hisilicon Hi6220 SoC ADE(Advanced Display Engine)'s crtc&plane driver + * + * Copyright (c) 2016 Linaro Limited. + * Copyright (c) 2014-2016 Hisilicon Limited. + * + * Author: + * Xinliang Liu + * Xinliang Liu + * Xinwei Kong + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#include +#include +#include