Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752293AbdHJJgb (ORCPT ); Thu, 10 Aug 2017 05:36:31 -0400 Received: from regular1.263xmail.com ([211.150.99.138]:35237 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751702AbdHJJg2 (ORCPT ); Thu, 10 Aug 2017 05:36:28 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: hjc@rock-chips.com X-FST-TO: sandy.huang@rock-chips.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: hjc@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS To: Sean Paul , Sandy Huang Cc: Heiko Stuebner , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Mark Yao References: <1502272846-63941-1-git-send-email-hjc@rock-chips.com> <1502272861-64226-1-git-send-email-hjc@rock-chips.com> <20170809195812.vtndofimdiojb4cr@art_vandelay> From: Sandy Huang Message-ID: Date: Thu, 10 Aug 2017 17:35:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170809195812.vtndofimdiojb4cr@art_vandelay> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 34033 Lines: 1089 Hi Sean Paul, Thanks for your review. ?? 2017/8/10 3:58, Sean Paul д??: > On Wed, Aug 09, 2017 at 06:00:59PM +0800, Sandy Huang wrote: >> This adds support for Rockchip soc lvds found on rk3288 >> Based on the patches from Mark yao and Heiko Stuebner >> >> Signed-off-by: Sandy Huang >> Signed-off-by: Mark yao >> Signed-off-by: Heiko Stuebner >> --- >> drivers/gpu/drm/rockchip/Kconfig | 9 + >> drivers/gpu/drm/rockchip/Makefile | 1 + >> drivers/gpu/drm/rockchip/rockchip_lvds.c | 734 +++++++++++++++++++++++++++++++ >> drivers/gpu/drm/rockchip/rockchip_lvds.h | 112 +++++ >> 4 files changed, 856 insertions(+) >> create mode 100644 drivers/gpu/drm/rockchip/rockchip_lvds.c >> create mode 100644 drivers/gpu/drm/rockchip/rockchip_lvds.h >> >> diff --git a/drivers/gpu/drm/rockchip/Kconfig b/drivers/gpu/drm/rockchip/Kconfig >> index 50c41c0..80672f4 100644 >> --- a/drivers/gpu/drm/rockchip/Kconfig >> +++ b/drivers/gpu/drm/rockchip/Kconfig >> @@ -59,3 +59,12 @@ config ROCKCHIP_INNO_HDMI >> This selects support for Rockchip SoC specific extensions >> for the Innosilicon HDMI driver. If you want to enable >> HDMI on RK3036 based SoC, you should select this option. >> + >> +config ROCKCHIP_LVDS >> + bool "Rockchip LVDS support" >> + depends on DRM_ROCKCHIP >> + help >> + Choose this option to enable support for Rockchip LVDS controllers. >> + Rockchip rk3288 SoC has LVDS TX Controller can be used, and it >> + support LVDS, rgb, dual LVDS output mode. say Y to enable its >> + driver. >> diff --git a/drivers/gpu/drm/rockchip/Makefile b/drivers/gpu/drm/rockchip/Makefile >> index fa8dc9d..a881d2c 100644 >> --- a/drivers/gpu/drm/rockchip/Makefile >> +++ b/drivers/gpu/drm/rockchip/Makefile >> @@ -12,5 +12,6 @@ rockchipdrm-$(CONFIG_ROCKCHIP_CDN_DP) += cdn-dp-core.o cdn-dp-reg.o >> rockchipdrm-$(CONFIG_ROCKCHIP_DW_HDMI) += dw_hdmi-rockchip.o >> rockchipdrm-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi.o >> rockchipdrm-$(CONFIG_ROCKCHIP_INNO_HDMI) += inno_hdmi.o >> +rockchipdrm-$(CONFIG_ROCKCHIP_LVDS) += rockchip_lvds.o >> >> obj-$(CONFIG_DRM_ROCKCHIP) += rockchipdrm.o >> diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchip/rockchip_lvds.c >> new file mode 100644 >> index 0000000..a4ad3f0 >> --- /dev/null >> +++ b/drivers/gpu/drm/rockchip/rockchip_lvds.c >> @@ -0,0 +1,734 @@ >> +/* >> + * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd >> + * Author: >> + * Mark Yao >> + * Sandy huang >> + * >> + * This software is licensed under the terms of the GNU General Public >> + * License version 2, as published by the Free Software Foundation, and >> + * may be copied, distributed, and modified under those terms. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include