From patchwork Tue Feb 7 13:10:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 9559983 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 14DFF602B1 for ; Tue, 7 Feb 2017 13:12:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05D6528404 for ; Tue, 7 Feb 2017 13:12:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED1092841F; Tue, 7 Feb 2017 13:12:35 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable 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 73B5D28404 for ; Tue, 7 Feb 2017 13:12:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932210AbdBGNMM (ORCPT ); Tue, 7 Feb 2017 08:12:12 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36879 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932283AbdBGNLT (ORCPT ); Tue, 7 Feb 2017 08:11:19 -0500 Received: by mail-wm0-f45.google.com with SMTP id v77so154019033wmv.0 for ; Tue, 07 Feb 2017 05:11:18 -0800 (PST) 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=A8DV8JMduJmChsu23NAJhs7puJDhgymZS7YWh8XXaZU=; b=dxplAiPNPK/9WRHLwbgxHyTNntDZRLMp3TOuL3Ly2jKZcrCB6f0PQJd/k8wKUeFUvX wXGa1VykQ+mMjAQHhH3jwAnA93QtAVBPpzv1Zla9cVzwAt9GSGf7GOJnEiR535VTbghg TRlYRjeFzVbbgimTxcxrzyvgIyYmftwbxzWW4= 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=A8DV8JMduJmChsu23NAJhs7puJDhgymZS7YWh8XXaZU=; b=S643ZgTqW8GOzD/RG4UfuvnIO5o3cRjJEAJzEg89zYigcDuLR+mjkfZRNFKOdvxJrz oKOBd1IcCWPcsWGLYyEOoULBGhLnSSNu61i9Lb88t9GPRj51Qx828SAsBGc+bLVUKqu2 LOdXBoC5wpHf4WAZX+T+janQpbOJWSJM9SGoUEXB/3jQkQoEUaPBdwZvH4gRE383mBfB opWR8ovRYnyWDY8e170Nfe33wHzUbiEVKupkraI6ZIEO1KFedufimcyG+ZwbhdVnpJcz ENn7WGIxM7/9P9bvJQgPfExsKILQmd54wJkrUH6h4K7hZHUhWNadF5m8gqp474oKUTyO N7yA== X-Gm-Message-State: AMke39lJXax9PNK8vpOkogcnmSe2j+Gd+rwWKZiUsgAgjmvvds7hSalxafGNaiIBwqmO2EOQ X-Received: by 10.28.149.199 with SMTP id x190mr12524001wmd.91.1486473078111; Tue, 07 Feb 2017 05:11:18 -0800 (PST) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id o81sm18662200wmb.14.2017.02.07.05.11.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Feb 2017 05:11:17 -0800 (PST) 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 v6 9/9] media: venus: enable building of Venus video driver Date: Tue, 7 Feb 2017 15:10:24 +0200 Message-Id: <1486473024-21705-10-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486473024-21705-1-git-send-email-stanimir.varbanov@linaro.org> References: <1486473024-21705-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 X-Virus-Scanned: ClamAV using ClamSMTP 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 | 14 ++++++++++++++ drivers/media/platform/Makefile | 2 ++ drivers/media/platform/qcom/venus/Makefile | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 drivers/media/platform/qcom/venus/Makefile diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 0245af0b76e0..e50d385064ff 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -393,6 +393,20 @@ 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 && OF + depends on 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 5b3cb271d2b8..d88a4e1eb850 100644 --- a/drivers/media/platform/Makefile +++ b/drivers/media/platform/Makefile @@ -69,3 +69,5 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VPU) += mtk-vpu/ obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec/ obj-$(CONFIG_VIDEO_MEDIATEK_MDP) += mtk-mdp/ + +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