Received: by 10.223.185.116 with SMTP id b49csp7926278wrg; Thu, 1 Mar 2018 13:42:51 -0800 (PST) X-Google-Smtp-Source: AG47ELuvewtCeL2jhxeYoOT7hpLJiKaSzhq5qqfqYBxneBkTJ8psf3h2FGiEMAZlGcmSgm8bfLky X-Received: by 2002:a17:902:68cc:: with SMTP id x12-v6mr3168914plm.198.1519940571188; Thu, 01 Mar 2018 13:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519940571; cv=none; d=google.com; s=arc-20160816; b=WMwyGyZU4jQ32LqVLk/PPcZ5cLLE1G86oPUmu+2nUl5SmOFXlxludqa8zTS7D7Wjk5 b0rkU8Tl36dMjGfeXwfmvV59udqetlrI85ZSwlJHEIolpn9sLopPE/osulhM+M5DwkB9 1RmeGChPQrLFyIFY8gM54v0j/xowta1Mq6HM+PmjuCxPwigIKZ6nJM2MEGzm9AjhAW36 VgcMiezO93h3Nfqbm4ETI+DfPQHfO8Z1AB+l78NFsMwJehye0u814N6VnPschE9RcqN4 1Vay+QDO5PGUzbyCG0bQXnay7lPPuSZEj3krAHHhPi4SnrkUubva8i8K3da+H0Pj2pVT 01kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=qvc6In5AHulapKkpY9Kma03MQXbfh1QcHVX5kYpaxi4=; b=G/pa5RKJAifaAHEh50EhMplho81CeZJq4osNp7nXBQojdiGhIhvW48/am9dgaL4lHh Ebcu/1d6twvRjevgzCIPYYM5fmz9jXa6W/tpEC9LOYg4pAO2uJ+zmkRJ3jcqGPsmmoAA RhBqGdEQhRClSOTcIm+eFrXSklHHBJfYk+CIlhX15g95nRCfOXnjoEd7R8OkWZ+9AEWQ FSAzIZAYT9RcxdMYbIf2hBEPj/THq1cqLC9bP6Ukj8hIh/urBkbqZHBHpXy5tkAu4d26 XsyPzrGojwoMtD5+15ebsViKsIF8O3Wsvm7WNG4PHdjOl0aIUarAVoaM2M4qPBpMZyKL fJOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s10si3632551pfi.143.2018.03.01.13.42.36; Thu, 01 Mar 2018 13:42:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162288AbeCAVlZ (ORCPT + 99 others); Thu, 1 Mar 2018 16:41:25 -0500 Received: from mailoutvs4.siol.net ([213.250.19.137]:34908 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1162062AbeCAVlW (ORCPT ); Thu, 1 Mar 2018 16:41:22 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 5E10E522F8A; Thu, 1 Mar 2018 22:35:13 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta11.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta11.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ZZjdiA9p7JCK; Thu, 1 Mar 2018 22:35:12 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id DD6CE522F90; Thu, 1 Mar 2018 22:35:12 +0100 (CET) Received: from localhost.localdomain (cpe-86-58-68-135.ftth.triera.net [86.58.68.135]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id 873D6522F8F; Thu, 1 Mar 2018 22:35:10 +0100 (CET) From: Jernej Skrabec To: maxime.ripard@free-electrons.com, wens@csie.org, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@kernel.org Cc: jernej.skrabec@siol.net, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v3 08/16] drm/sun4i: Add support for H3 mixer 0 Date: Thu, 1 Mar 2018 22:34:34 +0100 Message-Id: <20180301213442.16677-9-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180301213442.16677-1-jernej.skrabec@siol.net> References: <20180301213442.16677-1-jernej.skrabec@siol.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This mixer supports 1 VI plane, 3 UI plane and HW scaling on all planes. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c index 9b0256d31a61..126899d6f0d3 100644 --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c @@ -492,6 +492,14 @@ static const struct sun8i_mixer_cfg sun8i_a83t_mixer1_cfg = { .vi_num = 1, }; +static const struct sun8i_mixer_cfg sun8i_h3_mixer0_cfg = { + .ccsc = 0, + .mod_rate = 432000000, + .scaler_mask = 0xf, + .ui_num = 3, + .vi_num = 1, +}; + static const struct sun8i_mixer_cfg sun8i_v3s_mixer_cfg = { .vi_num = 2, .ui_num = 1, @@ -509,6 +517,10 @@ static const struct of_device_id sun8i_mixer_of_table[] = { .compatible = "allwinner,sun8i-a83t-de2-mixer-1", .data = &sun8i_a83t_mixer1_cfg, }, + { + .compatible = "allwinner,sun8i-h3-de2-mixer-0", + .data = &sun8i_h3_mixer0_cfg, + }, { .compatible = "allwinner,sun8i-v3s-de2-mixer", .data = &sun8i_v3s_mixer_cfg, -- 2.16.2