Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752409AbaKJL2h (ORCPT ); Mon, 10 Nov 2014 06:28:37 -0500 Received: from regular1.263xmail.com ([211.150.99.130]:45617 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbaKJL2f (ORCPT ); Mon, 10 Nov 2014 06:28:35 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: andy.yan@rock-chips.com X-FST-TO: jay.xu@rock-chips.com X-SENDER-IP: 121.15.173.1 X-LOGIN-NAME: andy.yan@rock-chips.com X-UNIQUE-TAG: <122bbe70af3ca51cbd9695b7efd979cc> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Message-ID: <5460A145.5010508@rock-chips.com> Date: Mon, 10 Nov 2014 19:28:05 +0800 From: Andy Yan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Zubair Lutfullah Kakakhel , airlied@linux.ie, heiko@sntech.de, fabio.estevam@freescale.com, rmk+kernel@arm.linux.org.uk CC: Greg Kroah-Hartman , Grant Likely , Rob Herring , Philipp Zabel , Shawn Guo , Josh Boyer , Sean Paul , Inki Dae , Dave Airlie , Arnd Bergmann , Lucas Stach , djkurtz@google.com, ykk@rock-chips.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, jay.xu@rock-chips.com Subject: Re: [PATCH V5 1/7] imx-drm: imx-hdmi: split imx soc specific code from imx-hdmi References: <1415424410-7364-1-git-send-email-andy.yan@rock-chips.com> <1415424523-7440-1-git-send-email-andy.yan@rock-chips.com> <5460989F.4040905@imgtec.com> In-Reply-To: <5460989F.4040905@imgtec.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zubair: thanks very much for your comments. On 2014年11月10日 18:51, Zubair Lutfullah Kakakhel wrote: > Hi Andy, > > A few comments inline. > > On 08/11/14 05:28, Andy Yan wrote: >> imx6 and rockchip rk3288 and JZ4780 (Ingenic Xburst/MIPS) >> use the interface compatible Designware HDMI IP, but they >> also have some lightly difference, such as phy pll configuration, >> register width, 4K support, clk useage, and the crtc mux configuration >> is also platform specific. >> >> To reuse the imx hdmi driver, split the platform specific code out >> to dw_hdmi-imx.c. >> >> Signed-off-by: Andy Yan >> --- >> drivers/staging/imx-drm/Makefile | 2 +- >> drivers/staging/imx-drm/dw_hdmi-imx.c | 214 ++++++++++++++++++++++++++++ >> drivers/staging/imx-drm/imx-hdmi.c | 257 ++++++++-------------------------- >> drivers/staging/imx-drm/imx-hdmi.h | 43 ++++++ >> 4 files changed, 320 insertions(+), 196 deletions(-) >> create mode 100644 drivers/staging/imx-drm/dw_hdmi-imx.c >> >> diff --git a/drivers/staging/imx-drm/Makefile b/drivers/staging/imx-drm/Makefile >> index 582c438..809027d 100644 >> --- a/drivers/staging/imx-drm/Makefile >> +++ b/drivers/staging/imx-drm/Makefile >> @@ -9,4 +9,4 @@ obj-$(CONFIG_DRM_IMX_LDB) += imx-ldb.o >> >> imx-ipuv3-crtc-objs := ipuv3-crtc.o ipuv3-plane.o >> obj-$(CONFIG_DRM_IMX_IPUV3) += imx-ipuv3-crtc.o >> -obj-$(CONFIG_DRM_IMX_HDMI) += imx-hdmi.o >> +obj-$(CONFIG_DRM_IMX_HDMI) += imx-hdmi.o dw_hdmi-imx.o >> diff --git a/drivers/staging/imx-drm/dw_hdmi-imx.c b/drivers/staging/imx-drm/dw_hdmi-imx.c >> new file mode 100644 >> index 0000000..5422679 >> --- /dev/null >> +++ b/drivers/staging/imx-drm/dw_hdmi-imx.c >> @@ -0,0 +1,214 @@ >> +/* >> + * 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. >> + */ > Please add the old freescale copyrights and a comment on how this file is derived from. ok, I will add it in V7 > And a note on platform specific file for imx hdmi using dwc hdmi drm bridge. sorry, I am not clear which specific file you means. Would you please tell me more about the note? >> +#include >> +#include >> +#include >> +#include >> +#include