From patchwork Thu Jun 15 16:31:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 105678 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp890296qgd; Thu, 15 Jun 2017 09:37:52 -0700 (PDT) X-Received: by 10.98.67.86 with SMTP id q83mr6147601pfa.68.1497544672712; Thu, 15 Jun 2017 09:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497544672; cv=none; d=google.com; s=arc-20160816; b=ZRFJHvEOEHrMrfiaWNBzhokLkPF12yOitcVM4dTWceeieg3itQCyQzQYDZhjB9bIsu FOHWYJ3uxM75BBzdBPQ8bjXxLHw/wvY/6c3nfm07WWpolKH2xNvdJ14W+F8zjf6E7jLJ IVqbAs/cHXbW6pt84XcsAFmd16htifIeLN6NGkoLCjiy1Ei1Zk3acenh1ptddd4RkrOc K8+/NyI4xVV1sMF6iobDUCcyIMMCizkZF6CBkmxVWGkfyanr5poTCZG4IEBgcZZSj9QD mq4A279GjNBkbJEkA6ntqDi6zWB/bad+Dijgcf+b3iDNRo2DaHmEiWdoroS8ayojnEUn XHlA== 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=V33cInNSB2HcpWDM/lkFdYAnGBmAXEh7rRQRSEwq33w=; b=fX11pRBzygW0uY+i6bDZ2zLLIX41ty4JSDkgZqACVkN/Tu7mo4uOVDKLah5uHoPOAH 1CPuPmxacDrWajYz6FGpcNbmV9/KkGZefcVuAssP2Nd8tWKKu9V5Pbedy8sBoIV7QedQ BqdaU/rAjwOD3QNigGlbwkPndDU1HtneRPlmi0zrgPQHDMfxrVBxVxbNXAlwmTBz6saA jd0aIb4JwQn1sY8TX1BiKBMr7CDDu3oJlcKQuyQaD0cPyxWfhKbiZ5NY3/wLr4aw8icl KlXo6hl/AeZlmKN8AZF5No+QzeRQQseqWV+0Wr1XSj7jtPYkwhFfl8TFHP1xHYg72dwL vt1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=Rft6Hjn3; 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 f23si392313pli.265.2017.06.15.09.37.52; Thu, 15 Jun 2017 09:37:52 -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 header.b=Rft6Hjn3; 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 S1752478AbdFOQdK (ORCPT + 10 others); Thu, 15 Jun 2017 12:33:10 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38459 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752391AbdFOQdE (ORCPT ); Thu, 15 Jun 2017 12:33:04 -0400 Received: by mail-wm0-f42.google.com with SMTP id n195so4095903wmg.1 for ; Thu, 15 Jun 2017 09:33:04 -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=sbLWg+U7sEmojvjXM6Y45XuFousaUUHw30lsyhJyDug=; b=Rft6Hjn36gxMGWjllkDMEeqkxwPdCygV3PUnRqo9lDAnM3OyjAa77qCZl5l/KaPoXj 5q6tPgqdt4Ex2D44qBp5aHbnKHQB0Uz2GFqiI1hAUo42irhSrHmb7dRuZhm0C7vImHMG 3/0+SxfgJR9rULCmnELNiVp/JRSqKjVKyQ+qU= 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=sbLWg+U7sEmojvjXM6Y45XuFousaUUHw30lsyhJyDug=; b=J6ewZYP4XKyfXfSDA1vi5UilN2+eMZqGz3EthaVqK2B4Dhgy+Qp+OCRcG/ddIbhas8 V0LupfMZ7lcy0bIBCZMTOqdRugy37WCXKX4pg2cUVd7Slj1SxfEUenC0j8/hJdeg9rAi Qu3xsEDO15GLAQpfjGIwrmu5hP+uCUugS83lz/R/SSYy2pVK6AveNWmqurZR/6Fprj/+ CuGGPCpho43wezy5gBWTLolLvwHRFI+0f2Gkr+T08Vrqb4N5HMduamoTawAly8lH1Zie Jc5WI0cQaNvnsh+0uMWVAHXhidI1o9vXKieyGOg5d4GoLrdZTygMTY1cJdG01rJI3+Oi JtIw== X-Gm-Message-State: AKS2vOw8mGVmG/UySfUUif4dxGKADNtAUvC3+D44eOiWLvolVTeeY7gd kdVJDhIZ6lG6M86P X-Received: by 10.28.215.146 with SMTP id o140mr4312731wmg.16.1497544383511; Thu, 15 Jun 2017 09:33:03 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id m73sm541890wmi.25.2017.06.15.09.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Jun 2017 09:33:03 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH v11 09/19] media: venus: enable building of Venus video driver Date: Thu, 15 Jun 2017 19:31:50 +0300 Message-Id: <1497544320-2269-10-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497544320-2269-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497544320-2269-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 diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 8da521a8ead7..6027dbd4e04d 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -464,6 +464,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 6bbdf942e8c8..4607408c047d 100644 --- a/drivers/media/platform/Makefile +++ b/drivers/media/platform/Makefile @@ -81,3 +81,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