From patchwork Thu Dec 15 17:22:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 9476599 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 5157B60826 for ; Thu, 15 Dec 2016 17:26:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41CAB287F5 for ; Thu, 15 Dec 2016 17:26:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34CA0287EE; Thu, 15 Dec 2016 17:26:41 +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=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 8895D287F2 for ; Thu, 15 Dec 2016 17:26:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757094AbcLORYz (ORCPT ); Thu, 15 Dec 2016 12:24:55 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37282 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756798AbcLORY3 (ORCPT ); Thu, 15 Dec 2016 12:24:29 -0500 Received: by mail-wm0-f49.google.com with SMTP id t79so56625349wmt.0 for ; Thu, 15 Dec 2016 09:24:05 -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=q+jXRHdPhVYxYW2fLIp0f2U+Zdpjmc1RsVoDXDxas5o=; b=K1ObIyuCEoUI8UK0931puNSxVrv6GUXV3248bW9WPgr8DqmY5GQj19ptGSNQ06UYA/ 9dt59VkFFG6zR7ylt0ldBKUblNasXO6ZNDheLvNByzEcn2AWYzAuefLtl3HnzuIXvrYZ /fZUO08jJGCLZXovoLaEzk5QBB7sjDU8fMGCw= 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=q+jXRHdPhVYxYW2fLIp0f2U+Zdpjmc1RsVoDXDxas5o=; b=jQHV4x5zz2IbVcxsD/pUyUNbR+9RIFcmOgCPiup6yXzUEm6nysDSll9+dfqlStngZI AbUUSM8DiG7JqTYfBgPw0deWkIfgMIzd97NF3x4d8wQrA3Z7zegqrR2syuwEGNQ950zq Op67np2XKW66lsKWuB7636u/AIcwrkAWlIjP4zTq/lqEX0dRoF4BxXbjCcHEiY3K7sgP 6XyPIFNMQTBwBunxf+YWbYdGJ6RFxj+8Q2AfY5qIk1rjRGkmv3odyCsxF0UlEMn53fDd BdkLQ52PH10EpNrbqQuDGE4QPd3Lvr14qKByLpQFZcF928ByYHMb6D9Hzv4EEbr/cV0Q N9mg== X-Gm-Message-State: AIkVDXJJT9dvzdZE76/qRDc+dofLFwWBGML0ug8eIaxXFpk2g6bBJBKfsm5l8YqPZr70Tt6T X-Received: by 10.28.218.129 with SMTP id r123mr2364543wmg.137.1481822644675; Thu, 15 Dec 2016 09:24:04 -0800 (PST) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 63sm13412920wmg.2.2016.12.15.09.24.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Dec 2016 09:24:04 -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 v5 9/9] media: venus: enable building of Venus video driver Date: Thu, 15 Dec 2016 19:22:24 +0200 Message-Id: <1481822544-29900-10-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481822544-29900-1-git-send-email-stanimir.varbanov@linaro.org> References: <1481822544-29900-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 | 13 +++++++++++++ drivers/media/platform/Makefile | 2 ++ drivers/media/platform/qcom/venus/Makefile | 14 ++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 drivers/media/platform/qcom/venus/Makefile diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index d944421e392d..e0b2d53d37b8 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -379,6 +379,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 && OF + depends on IOMMU_DMA && QCOM_VENUS_PIL + 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..8c4ef27e30fe --- /dev/null +++ b/drivers/media/platform/qcom/venus/Makefile @@ -0,0 +1,14 @@ +# Makefile for Qualcomm Venus driver + +venus-objs += core.o \ + helpers.o \ + vdec.o \ + vdec_ctrls.o \ + venc.o \ + venc_ctrls.o \ + hfi_venus.o \ + hfi_msgs.o \ + hfi_cmds.o \ + hfi.o \ + +obj-$(CONFIG_VIDEO_QCOM_VENUS) += venus.o