From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033512AbbKFToG (ORCPT ); Fri, 6 Nov 2015 14:44:06 -0500 Received: from down.free-electrons.com ([37.187.137.238]:54061 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1162194AbbKFTmX (ORCPT ); Fri, 6 Nov 2015 14:42:23 -0500 Date: Fri, 6 Nov 2015 11:42:20 -0800 From: Maxime Ripard To: Chen-Yu Tsai Cc: Mike Turquette , Stephen Boyd , David Airlie , Thierry Reding , devicetree , linux-arm-kernel , linux-kernel , linux-clk , dri-devel , linux-sunxi , Laurent Pinchart , Hans de Goede , Alexander Kaplan , Wynter Woods , Boris Brezillon , Thomas Petazzoni , Rob Clark , Daniel Vetter Subject: Re: [PATCH 01/19] clk: sunxi: Add display clock Message-ID: <20151106194220.GK6114@lukather> References: <1446214865-3972-1-git-send-email-maxime.ripard@free-electrons.com> <1446214865-3972-2-git-send-email-maxime.ripard@free-electrons.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b/6gol1SqNxk8K3i" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --b/6gol1SqNxk8K3i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sat, Oct 31, 2015 at 06:28:16PM +0800, Chen-Yu Tsai wrote: > Hi, >=20 > On Fri, Oct 30, 2015 at 10:20 PM, Maxime Ripard > wrote: > > The A10 SoCs and its relatives has a special clock controller to drive = the > > display engines (both frontend and backend). > > > > Add a driver for it. > > > > Signed-off-by: Maxime Ripard > > --- > > drivers/clk/sunxi/Makefile | 1 + > > drivers/clk/sunxi/clk-sun4i-display.c | 199 ++++++++++++++++++++++++++= ++++++++ > > 2 files changed, 200 insertions(+) > > create mode 100644 drivers/clk/sunxi/clk-sun4i-display.c > > > > diff --git a/drivers/clk/sunxi/Makefile b/drivers/clk/sunxi/Makefile > > index cb4c299214ce..a9e1a5885846 100644 > > --- a/drivers/clk/sunxi/Makefile > > +++ b/drivers/clk/sunxi/Makefile > > @@ -9,6 +9,7 @@ obj-y +=3D clk-a10-mod1.o > > obj-y +=3D clk-a10-pll2.o > > obj-y +=3D clk-a20-gmac.o > > obj-y +=3D clk-mod0.o > > +obj-y +=3D clk-sun4i-display.o > > obj-y +=3D clk-simple-gates.o > > obj-y +=3D clk-sun8i-mbus.o > > obj-y +=3D clk-sun9i-core.o > > diff --git a/drivers/clk/sunxi/clk-sun4i-display.c b/drivers/clk/sunxi/= clk-sun4i-display.c > > new file mode 100644 > > index 000000000000..f13b095c6d7a > > --- /dev/null > > +++ b/drivers/clk/sunxi/clk-sun4i-display.c > > @@ -0,0 +1,199 @@ > > +/* > > + * Copyright 2015 Maxime Ripard > > + * > > + * Maxime Ripard > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License as published by > > + * the Free Software Foundation; either version 2 of the License, or > > + * (at your option) any later version. > > + * > > + * 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 > > + > > +#define SUN4I_A10_DISPLAY_PARENTS 3 >=20 > Can we change this to 4, so we can reuse this for TCON clocks on > sun4i/sun7i? Good point, I'll change this. Thanks! Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --b/6gol1SqNxk8K3i Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWPQKcAAoJEBx+YmzsjxAgotMQAImQAMzj4xBgrkO078gGHdH/ Iw4BR0QrYYu5Dp4Sp1Xxgib/i9S1mLjRer6Vr+R3YiFPTy7FPsogekR+xjF4lrQo HcKPl1iXVenC1O9+R573UkDsEITgX9nHHo02iCKS+45QjaaXiZT/ny+aSqYbg4bn 4P835Hg0vhXKNtDEJY4RMKwkwt0NERwGCdHxXY2g1V7EK1AyIeaLa0UsXfyDmFEM 4AfV4GwBirxhV60hneb6RSTUREnq/MRMU1jYwHLg5rAvxp+CyVwEvxAhsOiIt596 6NQtsisZPHxcF6eXDp8mLmVBpSpdsSu39wkiCbbi1xBfYUhl6G+cnCPXAZ6o2XSX maQDsFqeIp0gisN816pOuR+wSu9XYokzWMdbUyMj6Z/x/n1Qaypv2SyISnNxZh/n v/LQWKO1SqKmdWVWMzXVI+XMCF7cXPld/eH+9ELNz47IrNyqlcRGJyjMTBA9cffY mpWHEJGj0jlMG9mgqN/FYzGRmiCmwxZ60sPa/w+8u6Zc5g8V7shMxGbX345k9Owq xaIYLqbgl7OOw/UJZuOYpw20mddwHRJ8d/5L4cKrAv/5fvNPZnYhBiSwrekaUAMs QP9KzdrNM4po9jIdyE1FVnF778OWL1lefKNbBFu+o5We39bwzyL/Vs0DhSRBxRfT e/rBd7dCSa4ryuFU1dmk =vHmC -----END PGP SIGNATURE----- --b/6gol1SqNxk8K3i--