Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp876511pxj; Thu, 3 Jun 2021 23:52:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuI+/VUMKzmFvWiWQPLbyxY+y8Pb4noHoVrlN5N5Df3/VSdDVrLA59Mi8v7Vz6fq6h8hhY X-Received: by 2002:a17:906:5049:: with SMTP id e9mr2771721ejk.30.1622789528968; Thu, 03 Jun 2021 23:52:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622789528; cv=pass; d=google.com; s=arc-20160816; b=Mn8TL9H3O14q/CLi6tSIuPN0ycGEHOeRe8bqvKhWe/ptBjGDN7xFlc5KIWItu0He4m lATTdIeFWFKxnnhfyhpmobSHh5wb7sp8mu7dlXJ7xlZ5ZnOr3sqWDRgxkWJDUr3FhQAY pwyRc+n6jJ/5LaK4Z/QL5UFR6nhbeF2Bh4hs3UoHVw+8LTM0iSBoEihoDzkxZoSDyKSx JaS1un/tHRzXY9xlRzDKQoOCqKFy0ahtpFVEsbBJKn9Pyq4tuCxYdeFJ4jCCBXNL/y/V iJ0Wxb09vnPjIwnVjYQtIQA+vQyq6RokT1thkFr8eUdFzSRMdbZnbjOkUclzEQJkm5FS u0ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JEKOZLHZ62DZd/JZLJ96VlheXNvaHfdbaKMuKh8DhU4=; b=Xn1wvhUZuPRaxPqRpSdQJ3NOoR6I2CJqZdnqrueew+N23c9s+0sf8BYICyks/14U6X O+hJMrbE9t65kel/flENuS6PdvQcXKj23ASEM1kY1N3RnYVRX1gcNQXX/0O6uK7XWOlZ QFNDfr/2a79eY3XoupjEupCp7nef1dIGU6Mt2pYmrRGTHHSLczpyyqjtqtD6ZGvzgff9 1cC1Miy6D6YfDDwA5oMDixe5OnwYycjxOPnBWo+P5Ni47qJxj1iU6OJl82C777aWsK4v Ka7Rzjs1toa9ClulD/E7AwzCAW6fnwashRrgGwrR/X6rktKjvIlCzkU/qPVyczh3Mmxs Llkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=POEMLmuZ; 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 dn28si3112225edb.73.2021.06.03.23.51.45; Thu, 03 Jun 2021 23:52:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=POEMLmuZ; 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S230286AbhFDGwK (ORCPT + 99 others); Fri, 4 Jun 2021 02:52:10 -0400 Received: from mail-am6eur05on2079.outbound.protection.outlook.com ([40.107.22.79]:62689 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230224AbhFDGwH (ORCPT ); Fri, 4 Jun 2021 02:52:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MEhXja9QaFGQ0K3pAalOtZTiHLL+Rh5FhVnyv5XoLPaJVgWfM0UMppTw1l3FXGiPXHfUqJm//0RqmVXgruM7bgBjjqqRp9ijjCygNogKqjPF+mFQjeq8sy/01kWWKLbdkpu5WmFaofHZZJ5MrCcwTbdBFlhAwrjb77clqrC7bBLg+qUxJDaNRMjaPnxk85oAj57mvsTdYxJ7XdMDz7nYawHlCFh0mAdAAaVebIm5xhEdvO0uOnw1QwMyTmNBdLMKHq1wUM9IAS3e1KE/LWjCq3vzVttoX5kVLAXW6+XFyhcW7Nuuixvcd9JR7KhmILQ2NqHje28VSW0D6bbGQHihkw== 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=JEKOZLHZ62DZd/JZLJ96VlheXNvaHfdbaKMuKh8DhU4=; b=KEKpzO6XRmdn0+ZMpbBHeMjpqVX3mV6uapGCgDevg+P/seYpX4tANe1O64YBK+bkMiytZvVQMj+MQpfISM8jdj6b6F8WSQqSLmhF+0as3/qtgYoQ9cZoug6eZtlMXWq2Hw8Z88Nxz9p88aEmQpACmPJWtLYkBlTG+gOJrkkA2txXJHBew1KWDqJEDjh6qfoIaQHOFrv7PJHHm/vXCVlPPhEztZpXRSJc7+P8irAVsmNRDzoIq8leSwbXs1FDsL9fCu7//e+KDBQhBadwSO59rPpRJttTDJqg43RSHWyNnKlvUyuDplLcNTDj3qR/5Cl9Xu/JzERPMKgnysQfuOkX1g== 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=JEKOZLHZ62DZd/JZLJ96VlheXNvaHfdbaKMuKh8DhU4=; b=POEMLmuZJrAjegZj856ddd3QH9oauLR/W77Dqntu6ylnMlM1a4kuMU7zEgKk51A3eRB0AWFLpWxGaXAIUdyDwydlusdRvOIOpcnn2eai0hDzT3FZjbBXL+zAAu+LGRGtCOkb01R47taOCtyagxXrBNTKBul8Tta79HaSsvatIr4= 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 DB7PR04MB4236.eurprd04.prod.outlook.com (2603:10a6:5:27::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Fri, 4 Jun 2021 06:50:19 +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.4195.024; Fri, 4 Jun 2021 06:50:19 +0000 From: "Peng Fan (OSS)" To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 2/2] remoteproc: imx_rproc: support i.MX8ULP Date: Fri, 4 Jun 2021 15:23:11 +0800 Message-Id: <20210604072311.9186-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210604072311.9186-1-peng.fan@oss.nxp.com> References: <20210604072311.9186-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR02CA0012.apcprd02.prod.outlook.com (2603:1096:3:17::24) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR02CA0012.apcprd02.prod.outlook.com (2603:1096:3:17::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.21 via Frontend Transport; Fri, 4 Jun 2021 06:50:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: adcf2acd-b8e4-403f-1dd8-08d9272504ab X-MS-TrafficTypeDiagnostic: DB7PR04MB4236: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:421; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6rWXAbCxjEQfYehcQcMxSZ+bSM5iiMcoPJxOVcA3sv0QdA/UBfAtpbJfCapU22W+F7wWB2tFHanEId+b1fHzMp6Gtw26JattvSCVwE0+9nNV28BMWs7RfYegAGjadZlysO+77WgLRJiNeSFzByOXZvV1WRY3pDZKUO/MqtGsgs4sFFNFHd7AODm/UtdfuqGZa37t88FJyzciFJBHIUu/KbkEKSH6p+0Q+5bOqccO4t3eCVVVyVBNxXBHvzSktNAa3xcWzaQZR2eHnLlP/tehWyqARCGC2QS982lchoM3e34Ek1PBZ9UAS1NEL1WW6C0OHss2mJLkFyRfOPwNlkwfufQr77v22tn8WTvMGhF+EGGe0UPkogBIkG5GJfv2w1FgMjVF67rB2/kDxFsCuwYnEAgCUO1gIJRP1puZob++q0d8xF3M4R8/07EyObzVp8pIq7CoPdM1Fg78JNlV8l+b52AH5CNnh5E8nJmdWkuiOlI0UvE1RWiaP5En/w8MkDGs/k4TlKMEACCmcQSu5lVcTJR/2gR0SoxqXfwbQpCTz5IERsFyAbsaNGW/zgo2MHY31FgFQ0K8xrJtV89dslJBUzFXhn1yhFLnAmXkojJjXq4Sgaujd5aZevzLDWt6a2KSfy8HW2YCBNfDkH/chVu6tIRzIuVZWU0c8Rjo9wbAc+s= 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)(136003)(376002)(366004)(396003)(39860400002)(346002)(6486002)(6512007)(6666004)(8936002)(66556008)(5660300002)(66476007)(66946007)(8676002)(956004)(316002)(478600001)(38100700002)(38350700002)(52116002)(7416002)(4326008)(2906002)(186003)(16526019)(6506007)(86362001)(26005)(2616005)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?nX96RxA+dSJReza2CXENJjH388pu4eLvioUhihc1PhwA1axACR8qweX6L0O8?= =?us-ascii?Q?818COm8XGSlLTBhOt5pfcf1AeNoyG44IhOFcOJ9bpEVDTotpbsd92130adMy?= =?us-ascii?Q?i+eaxn3F+RyLLtH76coIgtTIfShowb4v3H9zkC8DQgP6TkjPJgShaOGUSdQ/?= =?us-ascii?Q?GINsNPjA96qA7lIJqDIHZ+K4FadOBKRQfj9N06dXZrEk8Zshz+3WbwC5Nb6b?= =?us-ascii?Q?7G9LSGG+CZ1vM5LQElOoBsx2fTvuRvLlth4yKYEl1mVlTUVP420FSgR5MWyv?= =?us-ascii?Q?t2zTYAAtPyWqn3cAs6aZEpz9Ai+0Udg41WTngFvmAqH6IAXxCkM0ORcw01Px?= =?us-ascii?Q?ZC0/R/0od7Me1GP/8YbEKqQxC1z2wLTq04Cdm21VAwue0DlBgQSwVcu4dtiy?= =?us-ascii?Q?zoS+jmR3miMsQfYjWNq6QBKWhS/KmvtF6IxpTvb26fHRqN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0sWkUNw?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: adcf2acd-b8e4-403f-1dd8-08d9272504ab X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2021 06:50:19.7441 (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: 8xynzQOc/wxrZFwmi0ewPNlRKrwhq0KUbLBZGFyJnS57WdyrGax7Kdu0DoGzUOW74lOX1/7lCnCS/3YRdro7OA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4236 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan i.MX8ULP is a new SoC with Ultra low power support, it has a Cortex-M33 core and two Cortex-A35 cores. We need to add new configuration because it could not reuse the previous i.MX7/8 configuration. i.MX8ULP M33 core is kicked by ROM, it is not under control of A35 core. So need to mark the method is IMX_RPROC_NONE. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 7cc0cadea1cc..d88f76f5305e 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -172,6 +172,12 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { { 0x40000000, 0x40000000, 0x80000000, 0 }, }; +static const struct imx_rproc_att imx_rproc_att_imx8ulp[] = { + {0x1FFC0000, 0x1FFC0000, 0xC0000, ATT_OWN}, + {0x21000000, 0x21000000, 0x10000, ATT_OWN}, + {0x80000000, 0x80000000, 0x60000000, 0} +}; + static const struct imx_rproc_att imx_rproc_att_imx7ulp[] = { {0x1FFD0000, 0x1FFD0000, 0x30000, ATT_OWN}, {0x20000000, 0x20000000, 0x10000, ATT_OWN}, @@ -246,6 +252,12 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .method = IMX_RPROC_MMIO, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx8ulp = { + .att = imx_rproc_att_imx8ulp, + .att_size = ARRAY_SIZE(imx_rproc_att_imx8ulp), + .method = IMX_RPROC_NONE, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx7ulp = { .att = imx_rproc_att_imx7ulp, .att_size = ARRAY_SIZE(imx_rproc_att_imx7ulp), @@ -824,6 +836,7 @@ static const struct of_device_id imx_rproc_of_match[] = { { .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 }, + { .compatible = "fsl,imx8ulp-cm33", .data = &imx_rproc_cfg_imx8ulp }, {}, }; MODULE_DEVICE_TABLE(of, imx_rproc_of_match); -- 2.30.0