From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 58556C433DF for ; Mon, 19 Oct 2020 18:00:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 B7A9A2225F for ; Mon, 19 Oct 2020 18:00:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ypJytZZ3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rp4gVOZ/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7A9A2225F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=k9YMyadgfQVy5ilz3I3NsEIYDXF4EJeM9jptAo8EsZ8=; b=ypJytZZ3wPS87453hLrJFO7Ms upmmuL1I46BoAlyuUiJS1PqntSXWXBC/u5ulwDOvGLqqR3f1Sr/M/7f2SPJRkqRnAp7Wn0lRmr81W UV6A1ZXAeVfc4swHvW33VPjjP1xyjiBtJMkRKXHLPIJbDjx4keDcP6pub4k/jsny297QbSssOOAN3 wqmvN9I8zPpPHmMNtUUkLhMkC3ZPCBvuiLGPFViHqXZcsFcZxRso7R2ILNTpuKru9rvXpVcDD8Tz+ pvbRKt8XzzAC2HIXjcswyszC6JHs/pNzGnkH2Pjzn2UJJee2oI6dH1f6lqpaRdUrV7mGppXdALCU+ dg6PHBOKQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUZRG-00081I-Nb; Mon, 19 Oct 2020 17:59:18 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUZRE-00080K-FV for linux-arm-kernel@lists.infradead.org; Mon, 19 Oct 2020 17:59:17 +0000 Received: by mail-pl1-x643.google.com with SMTP id o9so142075plx.10 for ; Mon, 19 Oct 2020 10:59:15 -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=hiVYdmseDgTcf3ogCK/hiyF3Du3HoHohHT9xW6cSjbU=; b=rp4gVOZ/0TZkEXcBRNNDAjMSBz4a4MMv1hG8aQjzCZR3BgEno0zsegcn5V8WeNuH/Z 1i7we6rQmvpbkHePnHpfcihRFHYNZgRbrVPe3Z/rqpB/mD9zGrMyPya+GgwQUsOYq/bq fYNdp/rvYi5nGYliKaFNwcUv6x1L7uYvrmGb6mo9sRhwVQgb7tD4k3CO2DR39xVhi6OK shS1MN90Zw7jlAFPTONwcElPD3Tm5bKXYtbIZYeRObmgXMoGMZCbP2m9aXVx1iDn6Eum mshRUdW3oDQLlS+TDe6CNEK95qTt+NVcEa9TGTdWyM2tD1L6xvIneU/pgNnjDilassea Zm0A== 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=hiVYdmseDgTcf3ogCK/hiyF3Du3HoHohHT9xW6cSjbU=; b=kRM6HNUwTE3zBK07C43oMSLNXih+YbTk+rPOv2+UaprfMcTuNfgmogRa1LoHWduxVl 1+t6GJDvDbZLicsDKSqnDpuA/w9c1ilv3yIk3CoHkr1ZgldE9EBvvkHABdz3abWKwuh4 /voptbzqRjNQunxWuNLMhwag4feeyYxclhP05BTcppLpNQtkEXo5Nk+wWTme4Ig/m/pq hz1V+niBXsIgbj4sx46lZzUdn88owuMkKtGDFjxc+jA/Jsndtfk26PLjDAgTD9hw+sCc gQWGwPmX6T/MpgWuYqeHKgjsG/oKanRHcaFXruOgkM6HJy3uyZyl7IgR1d9kMqkWWivh dTbA== X-Gm-Message-State: AOAM530wj1+Ye1r8icSeQAmN3tvNwVD7ppXlIkGfJmVcdL4yjUTomDmA 4nAnkqblBoIIOqR+kVYxY+LGxA== X-Google-Smtp-Source: ABdhPJylBSbG1cp6q7D7Bk4B6OIwKr2+3mjvnsHeP4/9U0stoa7Kf1nkb6X5JoMiVB6S1RxQH6Tlcw== X-Received: by 2002:a17:90b:17c4:: with SMTP id me4mr528341pjb.91.1603130353779; Mon, 19 Oct 2020 10:59:13 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id e2sm175304pjw.13.2020.10.19.10.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 10:59:13 -0700 (PDT) Date: Mon, 19 Oct 2020 11:59:11 -0600 From: Mathieu Poirier To: Peng Fan Subject: Re: [PATCH V2 6/7] remoteproc: imx_rproc: support i.MX8MQ/M Message-ID: <20201019175911.GD496175@xps15> References: <20200927064131.24101-1-peng.fan@nxp.com> <20200927064131.24101-7-peng.fan@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200927064131.24101-7-peng.fan@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201019_135916_605603_E88A0B54 X-CRM114-Status: GOOD ( 18.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Zhu , festevam@gmail.com, s.hauer@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Sep 27, 2020 at 02:41:30PM +0800, Peng Fan wrote: > Add i.MX8MQ dev/sys addr map and configuration data structure > i.MX8MM share i.MX8MQ settings. > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 40 ++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c > index bd3a42892b22..0f69f3f745ab 100644 > --- a/drivers/remoteproc/imx_rproc.c > +++ b/drivers/remoteproc/imx_rproc.c > @@ -90,6 +90,34 @@ struct imx_rproc { > struct clk *clk; > }; > > +static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { > + /* dev addr , sys addr , size , flags */ > + /* TCML - alias */ > + { 0x00000000, 0x007e0000, 0x00020000, 0 }, > + /* OCRAM_S */ > + { 0x00180000, 0x00180000, 0x00008000, 0 }, > + /* OCRAM */ > + { 0x00900000, 0x00900000, 0x00020000, 0 }, > + /* OCRAM */ > + { 0x00920000, 0x00920000, 0x00020000, 0 }, > + /* QSPI Code - alias */ > + { 0x08000000, 0x08000000, 0x08000000, 0 }, > + /* DDR (Code) - alias */ > + { 0x10000000, 0x80000000, 0x0FFE0000, 0 }, > + /* TCML */ > + { 0x1FFE0000, 0x007E0000, 0x00020000, ATT_OWN }, > + /* TCMU */ > + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, > + /* OCRAM_S */ > + { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, > + /* OCRAM */ > + { 0x20200000, 0x00900000, 0x00020000, ATT_OWN }, > + /* OCRAM */ > + { 0x20220000, 0x00920000, 0x00020000, ATT_OWN }, > + /* DDR (Data) */ > + { 0x40000000, 0x40000000, 0x80000000, 0 }, > +}; > + > static const struct imx_rproc_att imx_rproc_att_imx7d[] = { > /* dev addr , sys addr , size , flags */ > /* OCRAM_S (M4 Boot code) - alias */ > @@ -140,6 +168,16 @@ static const struct imx_rproc_att imx_rproc_att_imx6sx[] = { > { 0x80000000, 0x80000000, 0x60000000, 0 }, > }; > > +static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { > + .src_reg = IMX7D_SRC_SCR, > + .src_mask = IMX7D_M4_RST_MASK, > + .src_start = IMX7D_M4_START, > + .src_stop = IMX7D_M4_STOP, > + .att = imx_rproc_att_imx8mq, > + .att_size = ARRAY_SIZE(imx_rproc_att_imx8mq), > + .elf_mem_hook = true, > +}; > + > static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { > .src_reg = IMX7D_SRC_SCR, > .src_mask = IMX7D_M4_RST_MASK, > @@ -517,6 +555,8 @@ static int imx_rproc_remove(struct platform_device *pdev) > static const struct of_device_id imx_rproc_of_match[] = { > { .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d }, > { .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 }, Reviewed-by: Mathieu Poirier > {}, > }; > MODULE_DEVICE_TABLE(of, imx_rproc_of_match); > -- > 2.28.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel