From patchwork Mon Mar 22 08:12:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 406079 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3370562jai; Mon, 22 Mar 2021 01:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysXSSGacKsN0itV+KFbyBKSU8DRQhcjSXKp1dmxAMLosoNgxp+xl23dPDwmVIbTLsMjXkQ X-Received: by 2002:aa7:cf90:: with SMTP id z16mr24310695edx.273.1616401667681; Mon, 22 Mar 2021 01:27:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616401667; cv=pass; d=google.com; s=arc-20160816; b=e3RQKKCIAaTQypf2i6iU9l1kGoOxLpFVaML0Hv/hDApr7M2x4BMZXk+6zOocrLFPO8 yGwFJ17JlB2b16yQtKqfO1goGMxIbIPLdYQYOh0IZVtZwOgD20XYcoRR7gunsTIYg1NP TmZl1jZEQLpe9dhjM1ocRrKJ7fIXtxyKJx+PGDOZmNag+CfTW4Lf68MBiRsMYKWLj45j fzQ+KUf2iuzYlvOMrbePcXRM1C/rVJRjOwNAOJ3WTP0Jg5BjTWuFp5j/soH5p4HhDfW7 EEABDtGfd04AC8VEfsK+lW9IWu8pD3o/yTeYpqBnkpLat3QyM4eXALc3/cpPltB8zrWu Vx9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=zB8ZYf33hLVcnJPPIYcS51HMLfBTAVlYlvWUvzRuhbJm98hyPZ5pOZVQHrfzMlb49c 91j2EQovHisekvMnl2bL/POE9eKzjBnFpHDnSNdivRSF/iFCWDvO+tV6nAWP11nVzJBZ 15Y/s/LS+hyuFN5tm169EMFmnu1Efqxms9z+PyDqnk/NLw01d/1lcSgjiPgG0pO5enU/ ChwS5o8+OJJB96yh1w9rHipUa8rS1tpqOlFH384Km2wAsQHYXxRteRLW2dcLKL5AqEVe daGVixtQhE8vy8mWoNaZpctbnSMQvx8g21mAmJPWYGYNd5byJBu16/39DjS2PeETH7ME zr9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ZOCGMbuJ; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd37si7168148ejc.708.2021.03.22.01.27.47; Mon, 22 Mar 2021 01:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ZOCGMbuJ; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230078AbhCVI1O (ORCPT + 6 others); Mon, 22 Mar 2021 04:27:14 -0400 Received: from mail-eopbgr60067.outbound.protection.outlook.com ([40.107.6.67]:64443 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229548AbhCVI1I (ORCPT ); Mon, 22 Mar 2021 04:27:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bi3u/VC1Dcwavpp/RNrT9thkSoOv12r9Oyq/CJ1Exvuey7C3TRNZekVS2Ad5tAB2YSCc9ULbcJ+ANfuZTMA8qt6xZSlLlDMuV5Z7BX3aheqMm2GVrfGsJHdj1E9YUJZvCnNHbeYLNHBqTA9mH6bP47c0owugDkjpondN9KwYnEhbNc0d+qj5uQaVWJ5ggv5iIQLrjkTk1dVJEDVWxoUbtbCAht8YjMDPsB1xT7uVYFarpTeD3BkPfW2BXKXw9r1YSKolvTuNRTypW/LxxYGQdv5AwkZ4/68vJCTEIN6R0FYe2nV+jAUEjYqLbmRF2ur3+U+WjdV2XabsMLWmNclazA== 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=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=Zjx7TEEt7zhUKvik7iZnTmiZ9C0aVmdXsOtYYpiQs4QaSAEXSXNWUPU90F6gdFqLIyoPsXIL4yON+jnGqoiyyQKZMM1fy/PF+VhkUiOdn+sz6jDxSmeqGwsfv+Yt3GZ4yiFlmt9Wdb/xh0h5wjlqs3F1pcAV1KwIQZCl0BhrycQQfmQt0z6rMjN7X78uGbNAR/EF+w007/1YJCvxLD4gkTfbKZftrleqXfgaLBaXjh2OYpvBPtrgIGhuLLbZUEKAX7P4Q8P4kCYx9wIAgoDt+KqX5jyoyo8sfLp4OKcUorpGtBYOD4+xEW9avUYyXFBko8qrgPbWmevREwk7KjxAfA== 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=bCBf6unOrppIzqlJ6E6KQrd1OzGVoV8XAj786J/PFp8=; b=ZOCGMbuJL81EKyOsOYiJ8uU4GUEvuwGGGt38n45/OCvkaTIp1VJW5CnZuhAVvhW79JMUr0nevyryE7xb0v9EtkcKBPojNHwxGVwluxFDBMEUim7nk1H8W+wsIQYbBf/sUpZMiso4nIp5wKBq4lxUX1PTuQ035hKhfEeCNH/z3GA= 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 DB7PR04MB5993.eurprd04.prod.outlook.com (2603:10a6:10:8d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Mon, 22 Mar 2021 08:27:05 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3955.025; Mon, 22 Mar 2021 08:27:05 +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 Subject: [PATCH 8/8] remoteproc: imx_rproc: support i.MX8MN/P Date: Mon, 22 Mar 2021 16:12:43 +0800 Message-Id: <1616400763-16632-9-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> References: <1616400763-16632-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) 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 HKAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:203:c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.9 via Frontend Transport; Mon, 22 Mar 2021 08:27:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 18d9bf9f-be6a-4222-aaf5-08d8ed0c46ab X-MS-TrafficTypeDiagnostic: DB7PR04MB5993: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:335; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ZumD0z9jX+tPje2KiazrZH3IU4QobLExpJXjwlzjyaZro5khU0Vs5GCuXtYugmmoRS2H0siItl+ELBHBM5E9hkyxlkmOlWmg9Axf5VIor5lAR10kj2bIExiMt2nH1vOinmDb3XSyANXhTfjuFWiHGD33nZ0pzKDE4cGYRnrAxEkVFWlgvEH2pus+GUoUroVodqftgJXX/0pZfOpHEFXEGAHPIyAUe7/X6IFb3z9Zhq2XALnnvKulrWLwdz2JlG14bkjFbca5IwdV7WBMmuQPKYqQC4GyRsiOBPfemLZ0YEhUcTwkJgm9KIIcE90PwuVe8uTjnTEjnZRIDc3rLsSFKknmJ6hEzANo9stgp5hGuqI7fyF6Q/YrI/VISgBiQ7CECJXRCq6GKEFYpxqIfnMu7yhsibvLQR8lc5gEnUDQk6JLsgdiD3614lKQR7ug/xcQVoflJyx+IU5w//+RksmGqqgisOlmRvlOhlV0npcPxdAJubM/791LwufRj0GnXzCNY3PP2BQhDhwEjG7/AaX23IqU+FtBDIVKI9TJk6ThAm/+M0i6B1ftJVnFHqfc8L2Bn8AWqnEoU2KEnR7XtnZqnMQ0/rwegThgI+mxgXboGWHnjZuBKMInmabzFWZ+L1pDgD/VCUcgy/+v5VA4YlxA3exkDtgv5HYzn4ARqT9hNxB8LYvi0B+776t0Y2MKVUX 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)(396003)(136003)(346002)(39860400002)(376002)(366004)(26005)(186003)(52116002)(316002)(6486002)(2616005)(16526019)(7416002)(6506007)(956004)(38100700001)(8676002)(8936002)(66946007)(69590400012)(66476007)(66556008)(2906002)(6666004)(5660300002)(4326008)(6512007)(9686003)(86362001)(478600001)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: VbfYH4nmh68IwS8LxH87MPdvEqqI1i06T24h0yniWITJ7OAEq9w9fXEyj/9cwNM1wE2RkeVKahCYqpWbzqfXlC4i2mM+y6xY1cNyXS+3xRmFQvULNb9PXZQ0cOjAjwvl1L0PnQacpbQ9hxrtyhFA9wswSyEwsYNK1WgD2DPA4jy7/DLN/ukERYDb2eHZejhRuqOMHCY1qipuvegaT5+bYn/giCZXhjkrY6WTYpP+IIZ1YxPa2kwCBaA+hoBqc/Es2JbpciGcPjQRGLxvWwNLaZXB5d73lS1P0qUJUqfQmjvLH3UiOxnCCPtudAojILYDgIs2g2lddD2EVO0VTtGuPkbegixZntvrCx0A9bKdYcMONP2l/2vZO9IIv28TGG6lR157lBr824lITczBiUMNsCJ+o74B/glN13dZM0R/FlzMyzXmJT2CCMlF9x0pDlu0zmYuO84UoxLcu4yyDGKDxbbZ9xpPxsgBASZ/BBd8sLL9YAhMW89qqM6wnZkam5z/LkbZFa/5bJ7bRu3PL7E6uYQwSQg4ToNsN1V5/v4dZ3yaxnlm7xhZHLQriwboraCOFy1eV4vsAACRY80hY6jw/+iIkW1IVZujaoTDdNpNOov0WwND86Yx7glUZZavPY90oPVmp2EcUNYlqgEqMlDH9dpCr73BDgQvAEMLG0Qwn+mPhogRXa0OA0v9PjdkhKwnMWR33V+FMn51O5qN8kSjzOw1L/FPUVM08BrBx7gXA8YWy+RT4w03NILdlTSOcydOUqrSLnKq7mT1aqFIcOBUwdN9il5o9AFR3xZ8vOuy34qZbPB2M7A/1SRD/65zhqZXxNzJ92oCUIB44Kj/OVtCpPn3GAazHdrmDzsRe7gMZTBmV0xCR3Wzd33hd69ZiQ1P9M4tXf5nSFdrIu/sj+NraRmboRL5HJXfgnNbzrU/SakuU+nCLFdFmKRO6mTm2LuKUTGPrhfREV8Ry207DPOpiYXiUzOjQntr02yM551BDUr47TLoHV9WmyECpmvY5/7CL9RFQaT/c+SSbFgh4L4tzqSitfWMvvjd1J7cYIoeQSrQ0k15xZQnauw3KHJea/ErrmqLBvzR0MHKHLuJxGILdWokkiEjGecn64kkhUTCu3xKVQGiCElzlm6iZ+EZ+qwvli0RVIWF83SCEQDM3Ur/SYSBkQ4Ia/CdpMB3Llg7wC/p9f9WA2nadM/xS4zSZjGG+pKfitjlLyBT5C8veXzpdYajhsycaKN4bxCkUw6lt59S3+J4ahtxXyuJWQJBY5Q8Z+fO+62uZ0XXl3dzNs3VDpuD0wMc+pmr90CnOVbLMt6Q1siC3Dt8ePh91T/ukIon X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18d9bf9f-be6a-4222-aaf5-08d8ed0c46ab X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 08:27:05.7309 (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: N4hFrfD0dfb/2qUPe9hnDCSdwojjdsptpFR8oLDlATK/SsTwo2MarBQCsLQQM8JGhfVt0DXzvPuPY3iWuiW7fg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5993 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 89 +++++++++++++++++++++++++++++++--- 1 file changed, 82 insertions(+), 7 deletions(-) -- 2.30.0 diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 79a6b65d60b6..948139321330 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -3,6 +3,7 @@ * Copyright (c) 2017 Pengutronix, Oleksij Rempel */ +#include #include #include #include @@ -50,6 +51,11 @@ #define IMX_RPROC_MEM_MAX 32 +#define IMX_SIP_RPROC 0xC2000005 +#define IMX_SIP_RPROC_START 0x00 +#define IMX_SIP_RPROC_STARTED 0x01 +#define IMX_SIP_RPROC_STOP 0x02 + /** * struct imx_rproc_mem - slim internal memory structure * @cpu_addr: MPU virtual address of the memory region @@ -119,6 +125,36 @@ struct imx_rproc { void __iomem *rsc_table; }; +static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { + /* dev addr , sys addr , size , flags */ + /* ITCM */ + { 0x00000000, 0x007E0000, 0x00020000, ATT_OWN }, + /* OCRAM_S */ + { 0x00180000, 0x00180000, 0x00009000, 0 }, + /* OCRAM */ + { 0x00900000, 0x00900000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00920000, 0x00920000, 0x00020000, 0 }, + /* OCRAM */ + { 0x00940000, 0x00940000, 0x00050000, 0 }, + /* QSPI Code - alias */ + { 0x08000000, 0x08000000, 0x08000000, 0 }, + /* DDR (Code) - alias */ + { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, + /* DTCM */ + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, + /* OCRAM_S - alias */ + { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, + /* OCRAM */ + { 0x20200000, 0x00900000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20220000, 0x00920000, 0x00020000, ATT_OWN }, + /* OCRAM */ + { 0x20240000, 0x00940000, 0x00040000, ATT_OWN }, + /* DDR (Data) */ + { 0x40000000, 0x40000000, 0x80000000, 0 }, +}; + static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* dev addr , sys addr , size , flags */ /* TCML - alias */ @@ -205,6 +241,12 @@ static const struct imx_rproc_att imx_rproc_att_imx6sx[] = { { 0x80000000, 0x80000000, 0x60000000, 0 }, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mn = { + .att = imx_rproc_att_imx8mn, + .att_size = ARRAY_SIZE(imx_rproc_att_imx8mn), + .method = IMX_RPROC_SMC, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -246,12 +288,24 @@ static int imx_rproc_start(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_start); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_start); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_START, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to enable M4!\n"); + dev_err(dev, "Failed to enable remote cores!\n"); return ret; } @@ -261,12 +315,26 @@ static int imx_rproc_stop(struct rproc *rproc) struct imx_rproc *priv = rproc->priv; const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; - ret = regmap_update_bits(priv->regmap, dcfg->src_reg, - dcfg->src_mask, dcfg->src_stop); + switch (dcfg->method) { + case IMX_RPROC_MMIO: + ret = regmap_update_bits(priv->regmap, dcfg->src_reg, dcfg->src_mask, + dcfg->src_stop); + break; + case IMX_RPROC_SMC: + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STOP, 0, 0, 0, 0, 0, 0, &res); + ret = res.a0; + if (res.a1) + dev_info(dev, "Not in wfi, force stopped\n"); + break; + default: + return -EOPNOTSUPP; + } + if (ret) - dev_err(dev, "Failed to stop M4!\n"); + dev_err(dev, "Failed to stop remote cores\n"); if (priv->mode == IMX_RPROC_EARLY_BOOT) priv->mode = IMX_RPROC_NORMAL; @@ -591,6 +659,7 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) const struct imx_rproc_dcfg *dcfg = priv->dcfg; struct rproc *rproc = priv->rproc; struct device *dev = priv->dev; + struct arm_smccc_res res; int ret; u32 val; @@ -607,8 +676,12 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv) priv->mode = IMX_RPROC_NORMAL; } - if (dcfg->method == IMX_RPROC_NONE) + if (dcfg->method == IMX_RPROC_NONE) { priv->mode = IMX_RPROC_EARLY_BOOT; + } else if (dcfg->method == IMX_RPROC_SMC) { + arm_smccc_smc(IMX_SIP_RPROC, IMX_SIP_RPROC_STARTED, 0, 0, 0, 0, 0, 0, &res); + priv->mode = res.a0 ? IMX_RPROC_EARLY_BOOT : IMX_RPROC_NORMAL; + } if (priv->mode == IMX_RPROC_EARLY_BOOT) { priv->rproc->state = RPROC_DETACHED; @@ -750,6 +823,8 @@ static const struct of_device_id imx_rproc_of_match[] = { { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, { .compatible = "fsl,imx8mm-cm4", .data = &imx_rproc_cfg_imx8mq }, + { .compatible = "fsl,imx8mn-cm7", .data = &imx_rproc_cfg_imx8mn }, + { .compatible = "fsl,imx8mp-cm7", .data = &imx_rproc_cfg_imx8mn }, {}, }; MODULE_DEVICE_TABLE(of, imx_rproc_of_match);