From patchwork Fri Apr 28 09:13:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 98319 Delivered-To: patch@linaro.org Received: by 10.182.236.104 with SMTP id ut8csp233683obc; Fri, 28 Apr 2017 02:16:16 -0700 (PDT) X-Received: by 10.99.157.138 with SMTP id i132mr10772985pgd.87.1493370976875; Fri, 28 Apr 2017 02:16:16 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k65si5781014pgc.142.2017.04.28.02.16.16; Fri, 28 Apr 2017 02:16:16 -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 S1425426AbdD1JQM (ORCPT + 4 others); Fri, 28 Apr 2017 05:16:12 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37329 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425398AbdD1JPC (ORCPT ); Fri, 28 Apr 2017 05:15:02 -0400 Received: by mail-wm0-f54.google.com with SMTP id m123so40818608wma.0 for ; Fri, 28 Apr 2017 02:15:01 -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=PaRQT/SpP8rGYqX/FJK8jLEQmfjsJvQavqKsilZc0Bk=; b=gA4cw6YCSEZG3SetkOPuhZXWxkwiO/Y6FCJAHnK2Om/VcMkP1dmt2gydgi0RN2RFBb 7X+my5maln7+rgaWZYyLHapzb5HqkJyW5DBdPG7/i1qtAq3WThlX+bnPUwA04Zxn59lb PgiGkVzyT7SDc3UtmqsAY5kXZgGcaCiFmJ44w= 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=PaRQT/SpP8rGYqX/FJK8jLEQmfjsJvQavqKsilZc0Bk=; b=swgEcYa4WxkcIkkd4xnrb4wGbH0uDF6bAgFcWO8tmzcw66kLJM9L2OnGZmaL4m/1J4 Wx3WvTULGaAWAuCWoicPbdgcPpi7z0eUN2KOk2ZKUqpaskSyO5z4pe/7ARuK+dik2jC4 1RBYgVgQizrte9WOSlKyfq2LJ2j0szgX8tHBsCFFSPo+yDO3/5M32hhfmxPa3CvFCeAI VvgXFtjyX0vfszMGfopyCxMLlDMwb03Hjs1J7JKxsSgVmuRSPgYcA8ZTk3lx7i4s9hOM ohjS3vzv0AxsvnOLsB8HMeCDpZkOsvzzL/BmqL7HIJ0SWMIINCWNgv7nceDBm2zXBoV4 2wHA== X-Gm-Message-State: AN3rC/6pd5YOoMxVsflpdyekTtqghOiQ02j2BfD4N9QHg9GIJjMJgX21 RIouqLZ1Rsgyk0pr X-Received: by 10.28.61.198 with SMTP id k189mr4711875wma.104.1493370896411; Fri, 28 Apr 2017 02:14:56 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id p197sm5653070wmb.34.2017.04.28.02.14.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Apr 2017 02:14:55 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: Andy Gross , Bjorn Andersson , Stephen Boyd , Srinivas Kandagatla , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH v8 10/10] media: venus: enable building of Venus video driver Date: Fri, 28 Apr 2017 12:13:57 +0300 Message-Id: <1493370837-19793-11-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493370837-19793-1-git-send-email-stanimir.varbanov@linaro.org> References: <1493370837-19793-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. 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 ac026ee1ca07..570cb9ca7703 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -448,6 +448,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) || COMPILE_TEST + 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 63303d63c64c..c49de824af16 100644 --- a/drivers/media/platform/Makefile +++ b/drivers/media/platform/Makefile @@ -77,3 +77,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