From patchwork Thu Feb 24 03:10:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 545729 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1057CC4332F for ; Thu, 24 Feb 2022 03:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbiBXDM7 (ORCPT ); Wed, 23 Feb 2022 22:12:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiBXDMh (ORCPT ); Wed, 23 Feb 2022 22:12:37 -0500 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10085.outbound.protection.outlook.com [40.107.1.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F0A11B78B; Wed, 23 Feb 2022 19:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gQT9WAFRWMvGVpwu5+4esYqZI1Wf2E+4V5yQd9zfH+4k9VJUEUyWqZjb7AXsDwFgfrJdCRjaSHH88c6li/5PcXRtbk/egdFDd1j7IfKnA1VYrrivF/0UmOTXYWfgk/FRxExln7Nl0fPED2qz1SIjIZBfjKyBziUo0cR0hjulISErWMfZB3XDTPgxLoTLS1nwkatk+6ycpoVIvYdzEXaky2yl+wG7/jMgihrSINOyFsZF5gKIyyXdskjdLoPetZJShCk2SajHJmxNcAEo2qQFI/PkYvih8iOYWjlW25PCC0cOO7xNKp8hIH1X4t0z3zlvUHezV/MJxlCbcNP6CZ5Sog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ojvTb7Cio1mtUw2r/VSpJmgFC/5vvi1V76g0QleY5Qk=; b=BqtN/xUm2klnYVD8s92Pqlq9ct6ioxw70yRvE6/f7jtSswnDLZJhYajSpoi5vqlyRdStv3G2hm6GSCHNrWLkOc7czuJxhB71UO7YCSP/+aU4I/cZv13zdccnMCbULtrO6qcb2Q2SHypc1MEapfe1Fnoo2NWL0DD/GWUTxH9SG4yp8zRkpdixF+rHh+FhnQOJKkSgZOrACPGlapz7As81aAsuot2hAqgTZnrc+qDW+8n/O8vPpwXsQxpL9VGCCgGB+QyN2FnEwm3MuBlouvO00Uz9+tG8pBVecROF0y3qopbWEQhOplLnOtjiDdYr6IKT2cPSvvnzfIipM62RrEfUfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ojvTb7Cio1mtUw2r/VSpJmgFC/5vvi1V76g0QleY5Qk=; b=hShOHuqbNzVsE5V8oaztz0NfRNvhk3ngcf0WdG78/ZX0sMU/P68DrQ+9CBhVfgIp2W0OYEw/H+Q5mFNIyPiILPvvd9Yk7GAy+YliHO/isWdx0LzhFbUIEzpVZ7v5EpB6/ot9bWTgdPkKb37ppf5U7fZLy6HpntC00V1fs6TknHk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AM6PR04MB4183.eurprd04.prod.outlook.com (2603:10a6:209:43::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.27; Thu, 24 Feb 2022 03:12:02 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c39:69cf:c4ea:967]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c39:69cf:c4ea:967%5]) with mapi id 15.20.5017.024; Thu, 24 Feb 2022 03:12:02 +0000 From: Ming Qian To: mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de Cc: hverkuil-cisco@xs4all.nl, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v18 15/15] media: amphion: add amphion vpu entry in Kconfig and Makefile Date: Thu, 24 Feb 2022 11:10:13 +0800 Message-Id: X-Mailer: git-send-email 2.33.0 In-Reply-To: References: X-ClientProxiedBy: SG2P153CA0029.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::16) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e827240-53b8-4249-ce4b-08d9f7436dbb X-MS-TrafficTypeDiagnostic: AM6PR04MB4183:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ML1mN+1DpJhJ+Klj1UnPB4BPwwozSzpMdaYUQNnpttgOG7xdN0WKJ55HTxdZD1Qma8N2Q+2t50o3CUIw3jfOXtZEsgyoKX6h097S7JDMcbkm8yHdQkzo7C10k3Edzh0TJ9s9hEGS+t5U9sMmyxvJvtf058LmVU2rztT72kFfRUu7a21ty4kIeoI+Bl3lrAxEVUqCpNE1Vxup0hhiVSddm4HYO+j9ER48KLti3Dxli/QA0fxm05YauICvXA56ex+UlNLx87mKDGgI5YPJQLgA7C9yHO1yKhK504tLdGVGur8ESifa8HNPiA9/Wgcf0rb97Sdz9xkzETHLTR7iixn8xr7ji8IcIuOfwf5E0da8YiYfgQPcMttZyrqqcTa78RWysymJfO0g6SnZnN7aBZ6QytpLqWmv8BDcH/3Nh/2m21cI9y/8k7Pa0gF1m/ijLaXCw49iuier8ZUn+qQ9/pedm8bPcWILaiE6qgGQd/pmLcShMq7IUnBxcg+UchZySx2knCqlFErpIG1Ab4sBQV4yCHoEXQ9QNe+XCfX5jZ/XtTuA8mMLLUKDfYbWjhiIvZL8b0YE+d8ij1YXphJopiPE+uLGGmyEcdeHuV88AxrDYNnQwu23f5vUovVsq7+u2dXs9KiRbTfTJrVnPOq3m/VZPR06SeOc4eRspTD996rNhklboM9Mx5IR/1uTHQ+hGx6me1TeEq/ggk2pttTm/mrxfQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6341.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2906002)(38350700002)(38100700002)(86362001)(52116002)(186003)(36756003)(6486002)(316002)(2616005)(4326008)(5660300002)(44832011)(8676002)(26005)(6512007)(8936002)(508600001)(66476007)(66946007)(6506007)(7416002)(6666004)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3pTU/8kpDMtSOPJ9kTrUEAmXoXaIIGz7lfuRhT9AVArc11BzZcR7mH75dm8FmvuyIbd2pTtm4cQUqo5zfNLafltjWtJVD5W8387qwFbva/mzaGA35AupJvf44Ze8/ejhyZsRsU0PbVzBSuYSw6T6ftrA/K/v94QfW996JRAh/H23ndnr5d3gnoyN2BQ/Epg3uEYjI/VTp74pBMmxKP7YeAU7PLa++pRzHfM3jwbC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3sQgLMP82r5HCz2jahr3TKeAj+Nqrjw1lsfDTZEBLWxb0eAFiGJOQWUJOTw3ztPsW7HXWioidE1zOcpfczfm2Cu6Xg8r+daUjaSNxkt90PTurZdAIIyU0M7jc8qA19L9c++JPB2RmaKFMYO8Vc3HE0NMqqX0ciWEknbgEXyTZZS5iOcBgDzcXb9UuDHUDahr2gfh3nBYefcFfBd0tbiKzZShX1sFz+rEQpIEjPd0q5Im1SCiEo1qt+i8zbiousWZpIPpTWgOLmOcF31Htvszyhc8Cho5dUhmj3VvVP7TWDzUu/F2O9iKfPx5bUZ3tNxf+6eFMh0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e827240-53b8-4249-ce4b-08d9f7436dbb X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2022 03:12:02.7092 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oW9lQjLH3tuRQOTD9f/Y32910V3IMoIBHPt1tbLdohnIbHgKQri88mXfiys55IudK3+6cLJqid7RCYLafaNuTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4183 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add V4L2 driver entry for the amphion vpu encoder/decoder. Signed-off-by: Ming Qian --- drivers/media/platform/Kconfig | 19 +++++++++++++++++++ drivers/media/platform/Makefile | 2 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 9fbdba0fd1e7..9de9579d0fc7 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -630,6 +630,25 @@ config VIDEO_SUN8I_ROTATE Support for the Allwinner DE2 rotation unit. To compile this driver as a module choose m here. +config VIDEO_AMPHION_VPU + tristate "Amphion VPU (Video Processing Unit) Codec IP" + depends on ARCH_MXC || COMPILE_TEST + depends on MEDIA_SUPPORT + depends on VIDEO_DEV + depends on VIDEO_V4L2 + select MEDIA_CONTROLLER + select V4L2_MEM2MEM_DEV + select VIDEOBUF2_DMA_CONTIG + select VIDEOBUF2_VMALLOC + help + Amphion VPU Codec IP contains two parts: Windsor and Malone. + Windsor is encoder that supports H.264, and Malone is decoder + that supports H.264, HEVC, and other video formats. + This is a V4L2 driver for NXP MXC 8Q video accelerator hardware. + It accelerates encoding and decoding operations on + various NXP 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 28eb4aadbf45..c7fefccebeeb 100644 --- a/drivers/media/platform/Makefile +++ b/drivers/media/platform/Makefile @@ -89,3 +89,5 @@ obj-$(CONFIG_VIDEO_QCOM_VENUS) += qcom/venus/ obj-y += sunxi/ obj-$(CONFIG_VIDEO_MESON_GE2D) += meson/ge2d/ + +obj-$(CONFIG_VIDEO_AMPHION_VPU) += amphion/