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: 88208 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp922808qgi; Thu, 15 Dec 2016 09:25:13 -0800 (PST) X-Received: by 10.98.158.90 with SMTP id s87mr3368537pfd.62.1481822712888; Thu, 15 Dec 2016 09:25:12 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si3455849pge.77.2016.12.15.09.25.11; Thu, 15 Dec 2016 09:25:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757227AbcLORZE (ORCPT + 25 others); Thu, 15 Dec 2016 12:25:04 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38000 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756743AbcLORY2 (ORCPT ); Thu, 15 Dec 2016 12:24:28 -0500 Received: by mail-wm0-f45.google.com with SMTP id f82so56903865wmf.1 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=I0orNR+WEULMGGGxO89+ysqYXez2xG2/P7jwGAK+r2rvnCS2A7XkXATEE3t+7n4AD7 s3cJl61tx2L/DZGS5d4zitipTjqXj6ZolvPDY7WFQqayv/0pUH0RQFXmF3ivXiDIlUpp Ok4L68bDkpd+R0SUJ+m6ikd8T6rzXwunlVx/DFu9ilFgKn6p8rcFQiCFSTFv206cPsq5 e0IraHp6apUlqXMAlH0SQVAc0ddSRxpn6RCLoRPyCauMgZlZS/EGnhPkeJ+MxKFb9YL/ a6cTZiBvUUum/RBqWleEtl9JOuV9+4LJGN/veTlR1nbcfXSqSkDABgSjrEruxXsM1I2h Lp1w== X-Gm-Message-State: AIkVDXLVby5Co50fSlNcvrKgsjzUYVKMEuStxPmeGfpWMZ55Mc/ql23LZiPKpoQoJAdZ4QY6 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 14 ++++++++++++++ 3 files changed, 29 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 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