From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH 4/8] drm/sun4i: add support for sun8i DE2 mixers and display engines Date: Wed, 22 Feb 2017 12:09:47 -0800 Message-ID: <20170222200947.3ikrhvv76ymfu5tv@lukather> References: <20170222152310.3719-5-icenowy@aosc.xyz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0902393499==" Return-path: In-Reply-To: <20170222152310.3719-5-icenowy@aosc.xyz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Icenowy Zheng Cc: Jean-Francois Moine , Jernej Skrabec , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Chen-Yu Tsai , Rob Herring , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org --===============0902393499== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wiblasvn2dq2ndmh" Content-Disposition: inline --wiblasvn2dq2ndmh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Feb 22, 2017 at 11:23:06PM +0800, Icenowy Zheng wrote: > Allwinner have a new "Display Engine 2.0" in there new SoCs, which comes > in a new "Display Engine" (mixers instead of old backends and > frontends). >=20 > Add support for the mixer on Allwinner V3s SoC; it's the simplest one. >=20 > Signed-off-by: Icenowy Zheng > --- > drivers/gpu/drm/sun4i/Kconfig | 8 + > drivers/gpu/drm/sun4i/Makefile | 1 + > drivers/gpu/drm/sun4i/sun4i_crtc.c | 6 +- > drivers/gpu/drm/sun4i/sun4i_drv.c | 38 +++- > drivers/gpu/drm/sun4i/sun4i_drv.h | 1 + > drivers/gpu/drm/sun4i/sun4i_layer.c | 92 ++++++-- > drivers/gpu/drm/sun4i/sun4i_layer.h | 1 + > drivers/gpu/drm/sun4i/sun8i_mixer.c | 417 ++++++++++++++++++++++++++++++= ++++++ > drivers/gpu/drm/sun4i/sun8i_mixer.h | 133 ++++++++++++ > 9 files changed, 674 insertions(+), 23 deletions(-) > create mode 100644 drivers/gpu/drm/sun4i/sun8i_mixer.c > create mode 100644 drivers/gpu/drm/sun4i/sun8i_mixer.h >=20 > diff --git a/drivers/gpu/drm/sun4i/Kconfig b/drivers/gpu/drm/sun4i/Kconfig > index a4b357db8856..8df401fff145 100644 > --- a/drivers/gpu/drm/sun4i/Kconfig > +++ b/drivers/gpu/drm/sun4i/Kconfig > @@ -12,3 +12,11 @@ config DRM_SUN4I > Choose this option if you have an Allwinner SoC with a > Display Engine. If M is selected the module will be called > sun4i-drm. > + > +config DRM_SUN4I_DE2 > + bool "Support Display Engine 2.0" > + depends on DRM_SUN4I > + default MACH_SUN8I > + help > + Choose this option if you have an Allwinner SoC with a > + "Display Engine 2.0". > diff --git a/drivers/gpu/drm/sun4i/Makefile b/drivers/gpu/drm/sun4i/Makef= ile > index d625a82a6e5f..890e6e50dfee 100644 > --- a/drivers/gpu/drm/sun4i/Makefile > +++ b/drivers/gpu/drm/sun4i/Makefile > @@ -9,5 +9,6 @@ sun4i-tcon-y +=3D sun4i_dotclock.o > =20 > obj-$(CONFIG_DRM_SUN4I) +=3D sun4i-drm.o sun4i-tcon.o > obj-$(CONFIG_DRM_SUN4I) +=3D sun4i_backend.o > +obj-$(CONFIG_DRM_SUN4I) +=3D sun8i_mixer.o > obj-$(CONFIG_DRM_SUN4I) +=3D sun6i_drc.o > obj-$(CONFIG_DRM_SUN4I) +=3D sun4i_tv.o > diff --git a/drivers/gpu/drm/sun4i/sun4i_crtc.c b/drivers/gpu/drm/sun4i/s= un4i_crtc.c > index 4a192210574f..4d2228454726 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_crtc.c > +++ b/drivers/gpu/drm/sun4i/sun4i_crtc.c > @@ -25,6 +25,7 @@ > #include