From patchwork Fri Aug 19 21:57:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9291225 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 82FF1600CB for ; Fri, 19 Aug 2016 21:58:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61D78295B4 for ; Fri, 19 Aug 2016 21:58:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54D5B295BA; Fri, 19 Aug 2016 21:58:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2EEC295B4 for ; Fri, 19 Aug 2016 21:58:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755646AbcHSV6p (ORCPT ); Fri, 19 Aug 2016 17:58:45 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:34375 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755633AbcHSV6n (ORCPT ); Fri, 19 Aug 2016 17:58:43 -0400 Received: by mail-lf0-f41.google.com with SMTP id l89so41775689lfi.1 for ; Fri, 19 Aug 2016 14:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:organization:user-agent :mime-version:content-transfer-encoding; bh=0svVeHh6S8JpjC5XF1NXuJGIzK2e6Bbvy3j8MihorDE=; b=0f5WX0KmYAMA4edXQpx0vGhfjvTV+uAg5/5pVIZYAd4X5zU23sytmaP/nykY1/FsOm nFinkTz9X9gMqb/TDaLlUm4y1fLGzLvqbubnRA08L7/2XGqi7fQO6rml6qUYSRps5KGY MFmgXKbVEEbPoSMcbgBcdWFyuqE0hF3Ge+kkBUmv6pzQfO7VNpOtbcOZ6a8oOljTgDJS wfhGQo8raMQ1M//M3IqHE58ZF/XQqxJYjMAgAL7LKtqsDQuPcI/MXqy0vPFi3NXZx8uI xntcKp8WAfzRurixdmL8HILQBPjnxiPkBaxjkiQIose6r6nbo57FYjuugrgpZAcw3yDU jX4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:mime-version:content-transfer-encoding; bh=0svVeHh6S8JpjC5XF1NXuJGIzK2e6Bbvy3j8MihorDE=; b=RX3Eosj2DNtGS1MX7S4Ylayr0ookif2Gl8JS0hNvuCb3UeiEkOL/Lf4KVhpabGz/Dj 9odDinPYpVjhixZL8tnVQ4IvjS1a8DTub+12vq78K8N/NApXoB91vMxirj7D+bLjJrSU lwtjdnMKcKoo2vtzuXIyrYGKwXalP+FdNyOIb+uMcq5kcBVZ9r27WkuG6vPL44QK+tRu s2F+QX45tUuew4i5mqaCe+vn/B+K9pmWRkhS9NRXxEvHDgNCvnErUZscEyaLYFYJe8TP AozseBWo6fE/eVMop5lMas3rDyz//R/u29pOqjzRIH1fRmvpxOI/ghCN1SOsDJyrqXlb mQXw== X-Gm-Message-State: AEkoousuzTlvyr/ZXAQe1lMRzov2M1DINF/e6B9qOpaUPw4qx334q1k/E8JjfUg6dKJYCw== X-Received: by 10.46.1.195 with SMTP id f64mr2567691lji.24.1471643881908; Fri, 19 Aug 2016 14:58:01 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.170]) by smtp.gmail.com with ESMTPSA id g74sm1499010ljg.24.2016.08.19.14.58.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 14:58:00 -0700 (PDT) From: Sergei Shtylyov To: laurent.pinchart@ideasonboard.com, mchehab@kernel.org, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH] vsp1: add R8A7792 VSP1V support Date: Sat, 20 Aug 2016 00:57:59 +0300 Message-ID: <10305550.upKOiT5SIy@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.6.5-200.fc23.x86_64; KDE/4.14.20; x86_64; ; ) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for the R8A7792 VSP1V cores which are different from the other gen2 VSP1 cores... Signed-off-by: Sergei Shtylyov --- This patch is against the 'media_tree.git' repo's 'master' branch. drivers/media/platform/vsp1/vsp1_drv.c | 20 ++++++++++++++++++++ drivers/media/platform/vsp1/vsp1_regs.h | 2 ++ 2 files changed, 22 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: media_tree/drivers/media/platform/vsp1/vsp1_drv.c =================================================================== --- media_tree.orig/drivers/media/platform/vsp1/vsp1_drv.c +++ media_tree/drivers/media/platform/vsp1/vsp1_drv.c @@ -596,6 +596,26 @@ static const struct vsp1_device_info vsp .num_bru_inputs = 4, .uapi = true, }, { + .version = VI6_IP_VERSION_MODEL_VSPS_V2H, + .gen = 2, + .features = VSP1_HAS_BRU | VSP1_HAS_CLU | VSP1_HAS_LUT | + VSP1_HAS_SRU | VSP1_HAS_WPF_VFLIP, + .rpf_count = 4, + .uds_count = 1, + .wpf_count = 4, + .num_bru_inputs = 4, + .uapi = true, + }, { + .version = VI6_IP_VERSION_MODEL_VSPD_V2H, + .gen = 2, + .features = VSP1_HAS_BRU | VSP1_HAS_CLU | VSP1_HAS_LUT | + VSP1_HAS_LIF, + .rpf_count = 4, + .uds_count = 1, + .wpf_count = 1, + .num_bru_inputs = 4, + .uapi = true, + }, { .version = VI6_IP_VERSION_MODEL_VSPI_GEN3, .gen = 3, .features = VSP1_HAS_CLU | VSP1_HAS_LUT | VSP1_HAS_SRU Index: media_tree/drivers/media/platform/vsp1/vsp1_regs.h =================================================================== --- media_tree.orig/drivers/media/platform/vsp1/vsp1_regs.h +++ media_tree/drivers/media/platform/vsp1/vsp1_regs.h @@ -660,6 +660,8 @@ #define VI6_IP_VERSION_MODEL_VSPR_H2 (0x0a << 8) #define VI6_IP_VERSION_MODEL_VSPD_GEN2 (0x0b << 8) #define VI6_IP_VERSION_MODEL_VSPS_M2 (0x0c << 8) +#define VI6_IP_VERSION_MODEL_VSPS_V2H (0x12 << 8) +#define VI6_IP_VERSION_MODEL_VSPD_V2H (0x13 << 8) #define VI6_IP_VERSION_MODEL_VSPI_GEN3 (0x14 << 8) #define VI6_IP_VERSION_MODEL_VSPBD_GEN3 (0x15 << 8) #define VI6_IP_VERSION_MODEL_VSPBC_GEN3 (0x16 << 8)