From patchwork Thu Apr 19 10:18:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 10349507 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 2D01F60244 for ; Thu, 19 Apr 2018 10:18:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F864287FE for ; Thu, 19 Apr 2018 10:18:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12CE828807; Thu, 19 Apr 2018 10:18:55 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 B5B01287FD for ; Thu, 19 Apr 2018 10:18:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751149AbeDSKSv (ORCPT ); Thu, 19 Apr 2018 06:18:51 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:37083 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028AbeDSKSr (ORCPT ); Thu, 19 Apr 2018 06:18:47 -0400 Received: by mail-wr0-f193.google.com with SMTP id f14-v6so12520678wre.4 for ; Thu, 19 Apr 2018 03:18:47 -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=kxc2Dos2qIWCjLgLFK3CiFwNj8wbpn+RUeA++XnKMSg=; b=FKs1Rjgo+ECU9Aoau0WVWgUdFWep+KKFZMIQQAXoDl5cihup46ylTPNf9L9kP5xwdu GVEkv14MsY6j0SMOnUpmFFUw8nd400ade2mu2tM5PgYYrnP8Y5/ExRuEtTtodREuX0sB Z6RwvvaoAzhoUcIcbuTd5RwD1yFelQQ1WkvgA= 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=kxc2Dos2qIWCjLgLFK3CiFwNj8wbpn+RUeA++XnKMSg=; b=jwDR3xqa+hguQWjTKde84ywhM1bWpmHHQewEEOMpa//i/q99LsVFJeRZuVmAd1sxyG tv/ZH6go5liNahYpjxD9Y03KfG6x/Y31IeAgf367dOdg6Ky9h8KhTzRFnZLUNfibzRgb f2dVHWi2p7ct2czomRtdAizWWQ6tlnAFbYVfb2kVHEt5SrkYyZGV3cc80fjNLwUYA3EP eqqd2p8zrr4vI+71743WGeWEOfT4Bhf1BTypX0JnIICijLoykNqVA+yWRQgh1dIo+rM4 xl6KrHvjb8YhRmowogUuT5DwgkbBcJVGmdwPuR8Tyi13PfBtZsOQ5vmu+zFJN0rUwyMO 04Og== X-Gm-Message-State: ALQs6tDFyd/ZR3MehMVg3Y1YeOdvfbEIO1crpEPux2mQuHvkQrthi1sE 3VvmCfkcv1vxI2zub4mwVPRWlw== X-Google-Smtp-Source: AIpwx4/7YXs2AraCF2qzMCSACoC2//+1KZq4WaCtvdpjV9yW/5FsQhu4Xo71k/HTGCnkSq+KqssqAA== X-Received: by 2002:adf:abb4:: with SMTP id s49-v6mr4334994wrc.110.1524133126473; Thu, 19 Apr 2018 03:18:46 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id v66sm5220937wmd.41.2018.04.19.03.18.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 03:18:45 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Steve Longerbeam , Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Shawn Guo , Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , Rui Miguel Silva Subject: [PATCH 06/15] media: staging/imx: add imx7 capture subsystem Date: Thu, 19 Apr 2018 11:18:03 +0100 Message-Id: <20180419101812.30688-7-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419101812.30688-1-rui.silva@linaro.org> References: <20180419101812.30688-1-rui.silva@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 Add imx7 capture subsystem to imx-media core to allow the use some of the existing modules for i.MX5/6 with i.MX7 SoC. Since i.MX7 does not have an IPU set the no_ipu_present flag to differentiate some runtime behaviors. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/imx-media-dev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/media/imx/imx-media-dev.c b/drivers/staging/media/imx/imx-media-dev.c index a8afe0ec4134..967d172f1447 100644 --- a/drivers/staging/media/imx/imx-media-dev.c +++ b/drivers/staging/media/imx/imx-media-dev.c @@ -484,6 +484,9 @@ static int imx_media_probe(struct platform_device *pdev) goto notifier_cleanup; } + if (of_device_is_compatible(node, "fsl,imx7-capture-subsystem")) + imxmd->no_ipu_present = true; + if (!imxmd->no_ipu_present) { ret = imx_media_add_internal_subdevs(imxmd); if (ret) { @@ -541,6 +544,7 @@ static int imx_media_remove(struct platform_device *pdev) static const struct of_device_id imx_media_dt_ids[] = { { .compatible = "fsl,imx-capture-subsystem" }, + { .compatible = "fsl,imx7-capture-subsystem" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, imx_media_dt_ids);