Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp683810pxj; Thu, 10 Jun 2021 10:08:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkfhMbBkXkFTzTfKpKLuJju1TnCoYMoeV52uKtBLmdH+N5xyT6dmpCrNKvl0Pt7RwZx1zT X-Received: by 2002:a17:906:520f:: with SMTP id g15mr625704ejm.126.1623344931289; Thu, 10 Jun 2021 10:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623344931; cv=none; d=google.com; s=arc-20160816; b=pz65Vff07W6+9BV+miLgAhbiuH4JPjNvt5p9kEBuRZSL+9HeEpjOMGjtBJ9VoBC2o5 h4FIDKnlwpmrs8V8+WhBhkIOziqHUHSFFoBbtq4VwEvAyJx1W1ximoV1vAwtvHFIJirk HAiUqe1IwHIRU/P6gyVyqRQiMim8Eo+oVydv3FoFcL5YMHP/1dVfuoQvFG5lrCS/mvnM N+0tj5FoEDLHEu9DloPOlGFFtt5DEQHMm+1CgL+Ul3YJdrqd6JFPjE7QmwKJG517Xu7t A12hCgHEsD+c5NwuFjz8P/Olk53VkNpr8/qZoiNqk0hz4R5KPuIgPYDM3Z4l8jj6hj7r 6rmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zsuHs8q2OPqCHBMokULd2KXAu5PDhngkMlqiRUWGhEQ=; b=0gDR6GYyndQPgypArZjcZRmQbEDugAdMexApBls+8Yg0FOmKij2lco42AzpQ8qfZW2 oCE4MnfoVQ3EObyTeJEuFjIpzfDf9hslwsHitNxO0AVnWEYOjaoH/6ANQy4CzOx81e6R Pl9wPeGSsH7Y6XInf1i9YSfpkEWDgJdCqqhqnNsVrvBRHTZLrLvkpCdV+snomvsL4k1Y jgJhy6cbtHlARin1/m+Sj6n3Jw2ZKPdCsNScfbwqEkRiIAEVbdE7z2kmeJ9U43E7qoAP 9ZY4bJYNUuOGy/wLSJA5jQBlfBg/amhtLZJaL37f+IpiebJETx7+E4e0LsIxODYoFF3m 2j6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F2TUxQY2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh2si2607254edb.430.2021.06.10.10.08.26; Thu, 10 Jun 2021 10:08:51 -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=@linaro.org header.s=google header.b=F2TUxQY2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbhFJRIX (ORCPT + 99 others); Thu, 10 Jun 2021 13:08:23 -0400 Received: from mail-pj1-f51.google.com ([209.85.216.51]:42766 "EHLO mail-pj1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbhFJRIW (ORCPT ); Thu, 10 Jun 2021 13:08:22 -0400 Received: by mail-pj1-f51.google.com with SMTP id md2-20020a17090b23c2b029016de4440381so4246940pjb.1 for ; Thu, 10 Jun 2021 10:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zsuHs8q2OPqCHBMokULd2KXAu5PDhngkMlqiRUWGhEQ=; b=F2TUxQY2snWw8ctmSasL8n8yd1F/8VJkGWADtJezydVUh0feZ2ggQESqkLle9qp1HM HvmpS7ERNGH6v5vjMBIcnp6UatHp8sjOPLrasDOQJo9y4hUB9QC6h290zuTr/sq6mRmA zFdQpBJ8yEny9GV6JXukn1KXu3DE12KljL1elMAFh2aaDATN/+ie62uhTdb+pLrZwaC9 gOz2ELUAr9QT5ixrEFveLybjpjZcKoUEKXp0k7MamWMLH4B5Dm8HtVfqRpCzM/Tb/qXg opEp6Gc5PFhHZyvPztLLkM/+vwrJJqeW5AFCwjiIl6S6N+xz2VAPdJlBet0cFlIP3kEK FMBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zsuHs8q2OPqCHBMokULd2KXAu5PDhngkMlqiRUWGhEQ=; b=szn6Zc3XMFUyb01TsRAaCH9sL8+eN0LutmdGYDTfwM2WbL+oEvVXGFVy5ArDE8DdQb Q+5Y+JrS2iVR5j0CfyfN4ED0obwcMdFiHmdkg5aJdEKXaQ7DmzSzZgEYPV5wVk41xKBm Neno1Vus2EH0ZaX9vZZ1cB/4qWFaqMLe5KvO9RexE0+NDVz8FNy6TiDaTkMmePpc44Qe plvYbwcpD5sfgj4MO6Pe+rJrUD20naVLCzV68CEa1yo0pWsKwFZjWT+SuO889enPe3Jr oSJI1vLSGgy9xreWezBS/E4AmmN5Fjfq6MUoHDnHOmH3UfMp+JAKvXbyKWHud6PLMEXr m0Fg== X-Gm-Message-State: AOAM530tyYPQrPD43RTqCUYzJzpiZdVSuRUluh1deeipYn7p6xB7kXa5 UOHAcG7fkP1CZ/CXT8mPoE6SWA== X-Received: by 2002:a17:902:bc81:b029:ef:3f99:9f76 with SMTP id bb1-20020a170902bc81b02900ef3f999f76mr5901515plb.33.1623344712906; Thu, 10 Jun 2021 10:05:12 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id r28sm3077053pgm.53.2021.06.10.10.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 10:05:11 -0700 (PDT) Date: Thu, 10 Jun 2021 11:05:09 -0600 From: Mathieu Poirier To: "Peng Fan (OSS)" Cc: ohad@wizery.com, bjorn.andersson@linaro.org, o.rempel@pengutronix.de, 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: Re: [PATCH 2/2] remoteproc: imx_rproc: support i.MX8ULP Message-ID: <20210610170509.GE34238@p14s> References: <20210604072311.9186-1-peng.fan@oss.nxp.com> <20210604072311.9186-3-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210604072311.9186-3-peng.fan@oss.nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 04, 2021 at 03:23:11PM +0800, Peng Fan (OSS) wrote: > 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(+) > Reviewed-by: Mathieu Poirier > 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 >