From patchwork Mon Jun 12 16:27:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 103661 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp77947obh; Mon, 12 Jun 2017 09:32:02 -0700 (PDT) X-Received: by 10.84.191.165 with SMTP id a34mr57040097pld.136.1497285122416; Mon, 12 Jun 2017 09:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497285122; cv=none; d=google.com; s=arc-20160816; b=eWNB7+c8E1wwq3eFRW49ze2Socc61qzKPmxqMRyVULdBD1nPAIyq/6KL8LftxSTK/d A9YZqHm5W+jz74050HW0Z226iflg3p5TfvYqV7IeOGLdt/uimr2yTC9QgA8eOsUfM4Yt LUsN5PFEUdF32LPmHOxf9JkVVFP/Of+wrTGofARvk64Sv/+voE1RYuPmelmDFC/OfPCJ lp8pXxmG94uYp3nivXsjcA0GWDv3htigoenIQo4lBiq6ikqC19m0VgibBaga52vMk2XA 7Vdh1aC9i/rrjeohSJduKKAuIO5fB7YONhzBzXR1TZfwuk8F1mwK4ekEXm0ha1wk/l1s 3R9Q== 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:dkim-signature:arc-authentication-results; bh=bVrlDVtrXgGYIV8SFKzKFKXZAtC/Au+QB3YWuBDqDrU=; b=IK/1UIC7JFW0eyfNKXq+WIdfXKjwOZmNXk7eQxrLf1pngl7feRma2lYKNj+sFVfi6p cGXIUa38/It/CfTo0dgKL7c3L2pF6o41L1kIk275HNjyPYuxp3tA/2jW3a/ks5c4YMaa edQOzBmdcuo8dGIQsGt8VF9sTDO8l/z2UMjop1NzW0ciYH38bBEzv84mo1AJVaWLi2VG 44wbglrMKTJrKLvnITFxr7xdLCJg6FNdmrtgHREimTFqhM2J1PfbZhcdNIq7jv0ur1qt 2gbp7qyfRDv0oHKh1APFpWGPm+qETJeZw3K/rVn7SKOAcSOm3gNllzWlYRqFnljDtYI4 UfRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si7272168pfb.227.2017.06.12.09.32.02; Mon, 12 Jun 2017 09:32:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932073AbdFLQaB (ORCPT + 4 others); Mon, 12 Jun 2017 12:30:01 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:36762 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbdFLQ35 (ORCPT ); Mon, 12 Jun 2017 12:29:57 -0400 Received: by mail-wr0-f173.google.com with SMTP id v111so103595710wrc.3 for ; Mon, 12 Jun 2017 09:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bVrlDVtrXgGYIV8SFKzKFKXZAtC/Au+QB3YWuBDqDrU=; b=PQtWBzV8fOg67d5W5PWr+Fq9VQPON0pyL58ZYJ/nfujJtL164gFU9PR8VegtN9wOY6 rmZqzeZ2F4t7dVgufD53IgS8A9e/wsUhE063f2ODVqCsXdf0sebuImaYz0k+bB8PI8tL N2D0xRyW4XtwoELAweOG+Asi56n6J9wnO+JjA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bVrlDVtrXgGYIV8SFKzKFKXZAtC/Au+QB3YWuBDqDrU=; b=DXbWvnS3cldjsIM/O9ULMO0yh+0dbvGdCMG4TVdpniS/gQN/4myk7rB0j4pIb2QgkF 3EDkXcJiL6lZqKCmQtKOWFbZdWkMp4pWqyoj+xkVnBSUEZ3pk6PKjukl7aBqiwauOmUH nU5mV6i5RXBoE4dm+m7+1FZT30vr+C769x4bi7Spu2qvopyrKAzH9huyit1KyBI4KpaL YxZsrklE3Qo/bdC8vro8MGxaUZQD/tufq9KAvQ464cWtlr57epCaobf3BoCUBrPxrTaX z5IDUYd0fNAaOESEUo56Kw9LwS6uDWGA0uFf4PQcY6m7FDnASajl9lAf79UU0g+3d5fS LM3Q== X-Gm-Message-State: AKS2vOxL/vqp35RK/lpzUSTKJzoKY8XoIllROUth4s2IvcsBuV0XI23B /2lwThgGwOaxjJSd X-Received: by 10.28.68.134 with SMTP id r128mr8490072wma.114.1497284984987; Mon, 12 Jun 2017 09:29:44 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 49sm14493531wrz.8.2017.06.12.09.29.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 09:29:44 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH v10 09/18] media: venus: enable building of Venus video driver Date: Mon, 12 Jun 2017 19:27:46 +0300 Message-Id: <1497284875-19999-10-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497284875-19999-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497284875-19999-1-git-send-email-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This adds Venus driver Makefile and changes v4l2 platform Makefile/Kconfig in order to enable building of the driver. Note that in this initial version the COMPILE_TEST-ing is not supported because the drivers specific to ARM builds are still in process of enabling the aforementioned compile testing. Once that disadvantage is fixed the Venus driver compile testing will be possible with follow-up changes. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/Kconfig | 13 +++++++++++++ drivers/media/platform/Makefile | 2 ++ drivers/media/platform/qcom/venus/Makefile | 11 +++++++++++ 3 files changed, 26 insertions(+) create mode 100644 drivers/media/platform/qcom/venus/Makefile -- 2.7.4 diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 288d3b0dc812..017e42ce0ff9 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -464,6 +464,19 @@ config VIDEO_TI_VPE_DEBUG ---help--- Enable debug messages on VPE driver. +config VIDEO_QCOM_VENUS + tristate "Qualcomm Venus V4L2 encoder/decoder driver" + depends on VIDEO_DEV && VIDEO_V4L2 && HAS_DMA + depends on ARCH_QCOM && IOMMU_DMA + select QCOM_MDT_LOADER + select VIDEOBUF2_DMA_SG + select V4L2_MEM2MEM_DEV + ---help--- + This is a V4L2 driver for Qualcomm Venus video accelerator + hardware. It accelerates encoding and decoding operations + on various Qualcomm SoCs. + To compile this driver as a module choose m here. + endif # V4L_MEM2MEM_DRIVERS # TI VIDEO PORT Helper Modules diff --git a/drivers/media/platform/Makefile b/drivers/media/platform/Makefile index c3588d570f5d..37053723fb03 100644 --- a/drivers/media/platform/Makefile +++ b/drivers/media/platform/Makefile @@ -79,3 +79,5 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec/ obj-$(CONFIG_VIDEO_MEDIATEK_MDP) += mtk-mdp/ obj-$(CONFIG_VIDEO_MEDIATEK_JPEG) += mtk-jpeg/ + +obj-$(CONFIG_VIDEO_QCOM_VENUS) += qcom/venus/ diff --git a/drivers/media/platform/qcom/venus/Makefile b/drivers/media/platform/qcom/venus/Makefile new file mode 100644 index 000000000000..0fe9afb83697 --- /dev/null +++ b/drivers/media/platform/qcom/venus/Makefile @@ -0,0 +1,11 @@ +# Makefile for Qualcomm Venus driver + +venus-core-objs += core.o helpers.o firmware.o \ + hfi_venus.o hfi_msgs.o hfi_cmds.o hfi.o + +venus-dec-objs += vdec.o vdec_ctrls.o +venus-enc-objs += venc.o venc_ctrls.o + +obj-$(CONFIG_VIDEO_QCOM_VENUS) += venus-core.o +obj-$(CONFIG_VIDEO_QCOM_VENUS) += venus-dec.o +obj-$(CONFIG_VIDEO_QCOM_VENUS) += venus-enc.o