Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3777639pxu; Mon, 19 Oct 2020 23:25:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrnl32oPvm0maDn6DLn8JnmOCnVfY3PAzALa1sLmT3SQZ0egmPBlSgBuDOI/zQmff3fNNV X-Received: by 2002:a50:d4dc:: with SMTP id e28mr1228627edj.137.1603175157538; Mon, 19 Oct 2020 23:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603175157; cv=none; d=google.com; s=arc-20160816; b=hUO9UUEnZoVQbFBdZX1GqoKJrx84C3gZFi82MZ4az2A8FsLG/YzCOCWs/s0FX6PJzh NjSyD3H4GmB6oqcL/QR1NcsWJ2nfM6aFf5OqOfId6eU6gr7EWLBq/S/GqluFexP10NGu vQQbbDYqbgWfWaWHFgII4Yh+yrvEO7Rgjl5yJzbs7wV2xYhBR+qOmyryVSY1sFSIbOei ONuk3XSAeZgsq7Lv/Kb1xA327Bq7yS8hjRC2Glm7PbthdUEb+HMLG/2h+kMs4iLl5lY7 qrpzOssuWqSucKbzWG3g49cmc+YyUlUeW7AQxrGfgkPxTq/GOYn79jzhr+7Q8uu+SuxC sVKw== 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=hiVYdmseDgTcf3ogCK/hiyF3Du3HoHohHT9xW6cSjbU=; b=zy5iCbbPy0bIlyUSsrtqu53SfBOIHcg6oA+lwlCeb3q9yhMAhsLJv8GO90ZknOdwQ3 hC0KLTX40WEGlq18IPPzRy4SkCSfbom3vbVxT08Gj+XqI6iWLUXvNy4eTS5sZoO3R6p+ MMa2U09CC7OHcLfQFJ+s6tW5dboOfEfFnWPOoAE/q3MjcmmEHOy/oZhSw8bKNvILzAQk sjRpXXcWOmjVjH2csJi94NtJwKig5QAMLVlozx+yjP/jIJG+OY3EyeCubEw2D3IFivBQ QwViqRUre8Whb027vKedfcu9bTchUMsvjD+sxZbeDaMp6lB3T54qkn4sHzN+kh8xJ9ma +rAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rp4gVOZ/"; 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 h7si594610ejc.443.2020.10.19.23.25.34; Mon, 19 Oct 2020 23:25:57 -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="rp4gVOZ/"; 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 S1730287AbgJSR7O (ORCPT + 99 others); Mon, 19 Oct 2020 13:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729556AbgJSR7O (ORCPT ); Mon, 19 Oct 2020 13:59:14 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61495C0613D0 for ; Mon, 19 Oct 2020 10:59:14 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id az3so181702pjb.4 for ; Mon, 19 Oct 2020 10:59:14 -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=aqYXP2q8NXKlEyS8ff/2DJlPX5eO14teOdFuK+Yd9FjGR+jMIV7zi+9tWSj+DCaMmK 0vRDnUTqxokYFYnMaqtORfxpJ4lzPBfKKPMNh6o5yT125pfkK4fUGlbEpnn2cb9NKwZo t8BXyvREP+0vKjjMYYxBMesfWOgPUsL1I28QJG5LmzBOslwQxv5xQbZNOSo8/CoXzpU6 zYrtz9pSJdJRfCHtqxOYcAeYDXxQHGrNa9cLah+PBfB8x2pM6aObVPx1D3nuIUExQTS6 iARq7i7i+/nM000G7EXmar8LSIr0ZsTVL3PnATupdqCCIMYxH+la9I3zDx27IQEFrJOW zPYw== X-Gm-Message-State: AOAM533RjEq62vmA0v8aauKutDNTBsF8aiwRrXJ8KCTUSOeWhpMsPwr/ ZmQxBvMg37YDccmkeTMIkBdHcw== 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 Cc: bjorn.andersson@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Richard Zhu 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200927064131.24101-7-peng.fan@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >