From patchwork Tue May 9 15:36:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 98944 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1884042qge; Tue, 9 May 2017 08:37:38 -0700 (PDT) X-Received: by 10.84.128.99 with SMTP id 90mr1047727pla.166.1494344258793; Tue, 09 May 2017 08:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494344258; cv=none; d=google.com; s=arc-20160816; b=1Dy5NrkOizzPgjRe03hCZk7zHwSyRQFXAmXtyo9ihxzq2J7ep0AG+Z9uKtUY0Xt3qF o2GP1/SwgbuvHJvYIEQru90M8mNrsSDCQyYg7gtkBh1z6kZAAOtCDPW7IoZuq2zsmSUQ ecTxF8YLiUf66+oFXHHRm8NrfbxrOfMcJv7k3hzTJulhdr4nzwlstsv6SSSFl94+ey2Q kbAfpWIYJPlXR2aq7cByVJoE3c8K+6C1Qn4sk3j6yiJfuQ+bPnq5evVGzIR7nry/Ke/T 4L8mSBeS8w9NAPQn/355NFw20zT4oNukqCvJ44HB9QzYidek61VtfXHGlAzSXcZce87L Lrhg== 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=w/GDE1TWHAM33ABVdn9+xAfOoK0Jnx7itxpaHWKbzs4=; b=NZNhfCHtluJIodbYg2mABX977J3sbY3dNEDo8N5XzEcxOqh9aA5gEFryisYuqvqg63 Xuvq9fkiH2SYyP7/c6CT3VxCPMqLt8kwxXX0kJ8KBwi3YEH+TxqLXkJij/ZFb9dHkyQk yC+I4+jtyC7efmX2v7qkNr8GqBk3ffAETTwRhOeal8b2aOGOb/cZUcNCegHIlrOyWe15 8A72ZNLAYgtHcehI9l5Lg3ailVJDFVLeuptRIyw5VtDoI6Eic76OnSrWkcWmqgXEVxdH AAzX4hu7kFWH6jy8u3Z18pU38cKXTPrWTZfVtCvKt0VNgK5zKo4UQcn+y7pPZB1wvYwB mybg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 f186si240533pgc.194.2017.05.09.08.37.38; Tue, 09 May 2017 08:37:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754425AbdEIPhP (ORCPT + 10 others); Tue, 9 May 2017 11:37:15 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:36480 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754393AbdEIPhH (ORCPT ); Tue, 9 May 2017 11:37:07 -0400 Received: by mail-wr0-f173.google.com with SMTP id l50so4095328wrc.3 for ; Tue, 09 May 2017 08:37:06 -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=/v7C8gSFy7EEeu5xgilG4bm4i1F9h960SwJaGvMHh1c=; b=bUAZpPPjDw16wi+WOeDzbUpVOR7gXgguir7mi5F0AARlWCGVH0HYEEpu90SxQzU2Dg wMFTR3rT1MtYh59djrMtii6APIsAh2iaRHU6y5QZENgk+Tu/gGFJQgDLcQ3+ZP7f5oS9 733I86y26SB/A6Nz+73MeflElq/ONbQEbXMuE= 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=/v7C8gSFy7EEeu5xgilG4bm4i1F9h960SwJaGvMHh1c=; b=tMHNOC3S27NoFdKW4HUMEyCPaApWtN/SAKsUC+mPqmaXbhJYJh5WZo10DJtdHJXDhL 5akzFzkaiA6O6s/DkB/ZmwjlG1VkZhSlSyNlkutpMMpxJ+4S0D45FQvz4R5JwoFdwvbo nOvesP7k9SPnXjJomkJ+73VVVWd9brfXCnRT66T20B25iLqQ7iGdrJXZurC/JGx0mcac T2/UW4rA2VFxfzgILCHPmbzNEadsufazlaXQ2mrlJqoXgmNappNK70zuxn2zl+8bp+OX YY8fqQ71bjx6cQbicc1uIS2wN8GAdZ7K2zUVYi8/ku/j5APs/vEFtYGNMtY8WlY5Wthi vJ4g== X-Gm-Message-State: AODbwcBQsy8Sew0nAGOrP+gc8qzg4tAAuKVSfGMsO6k/CcJz/cTDau7W LdPnAP54xYse25+F X-Received: by 10.223.155.210 with SMTP id e18mr449981wrc.115.1494344225646; Tue, 09 May 2017 08:37:05 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id b93sm272672wrd.29.2017.05.09.08.37.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 May 2017 08:37:05 -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 v9 9/9] media: venus: enable building of Venus video driver Date: Tue, 9 May 2017 18:36:01 +0300 Message-Id: <1494344161-28131-10-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494344161-28131-1-git-send-email-stanimir.varbanov@linaro.org> References: <1494344161-28131-1-git-send-email-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index ac026ee1ca07..fd33f3ec828d 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 + 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