Message ID | 1620274123-1461-6-git-send-email-peng.fan@oss.nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=qdH4=KB=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3AF7C433B4 for <linux-arm-kernel@archiver.kernel.org>; Thu, 6 May 2021 04:30:11 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B34861378 for <linux-arm-kernel@archiver.kernel.org>; Thu, 6 May 2021 04:30:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B34861378 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DXqhXClt9mxyyXQ+VAzkl3durxuI7A/TzvM1yasXiek=; b=k6eUjaLoDfBn0WunY8y2Sk+6J UagF/oEaYfzARs8abMtHe8VSKPPs/+fK2uV8uBNf2A8gBKyukRwkmSudantHcjJUGiWfWT82Mk7H7 TGe3esAwGj0POI0gPFMUslmlvg2BLeu/Bp7ydX3Yi17EmVY0wtKpbZ3lWQgFGoLfjV1sduY6dBoLl rhGmzI1qI1Widyzymxk9n1596k/QCJ5vXHxBtC9+5zpgq4nfQ58wsLrrgxQVC2jUK+diF1j175pbd dYo5pilLwAdDhg/2fwt5/1pkAHPPy/BKtcdEknYUYqWnZ8jlCUTcFUY8k2fvmNk5ou4uD99rTs8JW bp9+uDpFg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leVcV-0037z2-Pf; Thu, 06 May 2021 04:28:15 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leVZg-0037eu-He for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 04:25:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=DIJPvyXTkoBhcPI0vQASlR3kY78KULzsmBHaugDn8KM=; b=J+Ehwc85VjUYBHzludf0GyD0wx CnYynwumpUTAOv6a2zdlbIvg4Xs1GA+WNT5QmBfPfcvljT85T+n8csMzk7/6WQmSNLlAZeLKBSICt A52o191AQWXepILPNN2MS5aroDbsPd1da+luWSayKGsNGjrAMNLLkg29YI6HOq3hy1miwrJBhHMiq eHatUqXqSbJc678HnjX0hZteUZW3BxUQt0OzPvVRE0V1ogIb3abxvGAdNwqNjKWygQaSLWq1sYJ00 BA+yMvkyIpsCt45EOupcFA+rcucDYM2yroTMp+5UpHJYdLvH5HHAnBM37CQmcNe0ZsuNwqzOAAlb5 Ksa24TYw==; Received: from mail-db8eur05on2066.outbound.protection.outlook.com ([40.107.20.66] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leVZe-005aaY-2W for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 04:25:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HMe41RcOSY18+O85qhg0fd/cZdaBlPm3nvPp6CdmJ6UIssJjjGv5xV0W2JBDm98WYi3lz9kKOk88iBVvs6Z/raU5l01sajAlGWrwVr+UeCSYAdc5KS5yz222Vot3xuWNkuOCJinylUVsTsoSX6tw9eCOCYhWSYwYwG2p296RfjTizyOgH8P9L3HMrQY+fk4W4FtThd7eAQj101usz5WJCqeGv9GJOawJ4cNA1dpEI2hSzgTaP+x++ATCUJpGDjqfILBf7QCdfkh0TwGFnit6jWPi3blH4qDHMumbdq0YDEBbMA0mevOYSOVZ0MMgHvbk5B3h99yoGJBLnxRFtY2+XQ== 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-SenderADCheck; bh=DIJPvyXTkoBhcPI0vQASlR3kY78KULzsmBHaugDn8KM=; b=G0GGWww7xpXWsOR79LydFqyHZibiz1CO7ipNxIyuui6KWkpW3SGSGy1GWCzRW8QPWMta40eyWfOyE7Ztjq7e7gIlJS2D6rsfuLHr+rQHrZU6Y+i0MbW6ixLaBbZ3GECjkp4TiVYIjiPFzXvB226M3vGRwVj7vCtDw7IKHP9LWtgHlhypRc/bWcHbWjNTYDFZ1Lmk/zAPLJ1SGshV4YV4gYV3js8SzV26XJYD3KIBkFEHhO5/MG4JW99AkMeRSBJLQ5lMm978nSoom8zMIm48HU5y2/RQjEcP9Bh1WjcW88AhMWNx84A+7NlnzPpp/Y4EvlEsYCozPLes/MGIZuMA8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DIJPvyXTkoBhcPI0vQASlR3kY78KULzsmBHaugDn8KM=; b=eH9jdsFztbgTLJMlHHPdqyz9ya50rh32SY+dCv4wRr6dRgLJHeSlSejM8lPBAEEaDMBWvI9eJ+YYuvHKcCRKtS0nygeedIUZcL59CjkyRYthFXMG8Ph2SA3Zx5VjqyC8svJ3a8Cw1QWYsav8RUNLyb/VD6kpy482DFMVRXpGrXM= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 6 May 2021 04:25:15 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 04:25:15 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V6 5/8] remoteproc: imx_rproc: initial support for mutilple start/stop method Date: Thu, 6 May 2021 12:08:40 +0800 Message-Id: <1620274123-1461-6-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> References: <1620274123-1461-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.4108.25 via Frontend Transport; Thu, 6 May 2021 04:25:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4a7e877c-f490-441b-baf9-08d91046f25a X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB6PR04MB3126178ADD3702F975F5B67AC9589@DB6PR04MB3126.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:153; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IC8Z1KWviBBQot74tCp4FTxI68R/r5drN5eWOUDHcMD8iH2RxZJlu0WaaQ812ZWTwzT8kV54qkdqVlygkINv53z9xvvOs6hxIKK8xZlzvl9/xYVfqCgx/g2RGYu7OHBmczjMo5pkq+eGWaq5bOJITOzeOD4zKhmNYTWqcKEsu8qwiTW7qXf0KZhGgu+OUv+/F2sv6gZE9UEG9N5sCZndVoakPBp5Tm3uvME6VhdrKcUHX+wLvz+mHVWQlWf6EUP6P/PdMrNN0tqY3cTpW9WpNXVe8kzbqE7k1XwWJR6e9xHzs4OxMJPTBgMndve8pRo7CItZlqtF1kVwd5c1rHnYXIsnBB3xLVi4lXwe7b/a1G8dtg1Y+CZ5Iu5R96DDH+1C7UtAJeMWI7dJH5CVhmtoYRKFx1cdxWAIAVsUhCsOwYnHj5/r6/uBwStp5XwufoPa26oVOZbyktqXe8UAcUlrf7QiWARTjGIj9bkaQxJwmQyqI+MP/ync0WGf7MwOvePfBQn1FZRexE6gW9Qsnj65FvLpC1Mv1efstX8J307p9syFaBlTmZc0MdB/GL4dLDYzqFAxGv7DsEcQfhqKAli9OYRE50f5WWTm51j8s8UCVoQO1nIAKow2LsoijjyXfDsGauwLR8wAtM4eGCpx9xkNmOG3TLqDJs9/YgXZc9Y1EllkfNrx1ztHQjyOzb/9XneY X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39850400004)(366004)(136003)(396003)(376002)(346002)(26005)(38350700002)(52116002)(9686003)(2906002)(66946007)(6486002)(8676002)(6506007)(16526019)(7416002)(5660300002)(6512007)(38100700002)(186003)(478600001)(2616005)(316002)(6666004)(86362001)(66476007)(66556008)(956004)(8936002)(4326008)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 2KW4wOzG0KWO7+njDF8mWYoxvEMN/OY/NxINRa9lwTtpmtPT6+/itDLtnWtmMXES4yGvr9Mi4uat+Kr5pxlGwGDPpcgqNDMPnntZL1ihyNTSqwmn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jToI/jpao6mc737qvzRzQofFCXYAogE070ZTYCtuM2HjRotFxAYAI6BRwGKB+qnrOqHA7RObsXV+nmC0bFMKtguWaGP7KTj2/L/68J8WG7+vr4qfp6gvFmAr1XKCr2gZpyiNKNaEyKE+thnyosLDCm5/Q X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a7e877c-f490-441b-baf9-08d91046f25a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 04:25:15.1342 (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: 6gd5X8z1ZsQJ57tw09D9tfauTMHbMy1pA3AivMbaYLpAlGLkDYEajWHEFh6ZB5rKULDOneP5qNHAszLRIuEdCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_212518_139612_52235AD8 X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
remoteproc: imx_rproc: support i.MX7ULP/8MN/8MP
|
expand
|
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 06dac92e98e6..6289aeae95b6 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -74,6 +74,15 @@ struct imx_rproc_att { int flags; }; +/* Remote core start/stop method */ +enum imx_rproc_method { + IMX_RPROC_NONE, + /* Through syscon regmap */ + IMX_RPROC_MMIO, + /* Through ARM SMCCC */ + IMX_RPROC_SMC, +}; + struct imx_rproc_dcfg { u32 src_reg; u32 src_mask; @@ -81,6 +90,7 @@ struct imx_rproc_dcfg { u32 src_stop; const struct imx_rproc_att *att; size_t att_size; + enum imx_rproc_method method; }; struct imx_rproc { @@ -183,6 +193,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx8mq, .att_size = ARRAY_SIZE(imx_rproc_att_imx8mq), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { @@ -192,6 +203,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_stop = IMX7D_M4_STOP, .att = imx_rproc_att_imx7d, .att_size = ARRAY_SIZE(imx_rproc_att_imx7d), + .method = IMX_RPROC_MMIO, }; static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { @@ -201,6 +213,7 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx6sx = { .src_stop = IMX6SX_M4_STOP, .att = imx_rproc_att_imx6sx, .att_size = ARRAY_SIZE(imx_rproc_att_imx6sx), + .method = IMX_RPROC_MMIO, }; static int imx_rproc_start(struct rproc *rproc)