From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 11 Mar 2024 11:14:20 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rjcfk-000tBP-1L for lore@lore.pengutronix.de; Mon, 11 Mar 2024 11:14:20 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rjcff-0002Rs-RP for lore@pengutronix.de; Mon, 11 Mar 2024 11:14:20 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YU/h/q5RAB/j1xLPQebwK4ueZyrBsKuoBbe7kY46Oo0=; b=017UHPIh0n/p4DF2/NWyGZwF62 hSGqZDX/1HbZ+MhPJEdVK2A0RdXipGFUp9N1neq/HXfYexOn5947aN+AlKwUoTaVIHmMQczmlSuti h0D/kp1zX90h1X2GFanlICNmeZcubNIr3CiSskY2QTqnjqTgJR4hoO5WyuTkBXaiT/OfMN9wRfqjr DFSj0fwn2+Yo6/YGordpEcTNt1PpZAFlgUeYeOE4Drl4fOg+5e3FOUfmNNCpaxEq+/QLXnVgOoFRn 5ngkJaD0mKs4/r3HwONfrBpR9q9fzwXuseauf9u9nlecJEttCaAPJMwMrkdRthYc3P7Dl9wtWCQvf uUvg4I2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjcf2-000000012WV-0zVQ; Mon, 11 Mar 2024 10:13:36 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjcey-000000012U1-3nHo for barebox@lists.infradead.org; Mon, 11 Mar 2024 10:13:34 +0000 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rjcex-0001ry-66; Mon, 11 Mar 2024 11:13:31 +0100 Message-ID: Date: Mon, 11 Mar 2024 11:13:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Stefan Kerkmann , Sascha Hauer , BAREBOX References: <20240311-karo-imx8mp-som-board-upstreaming-v1-0-7c77f9ba02e5@pengutronix.de> <20240311-karo-imx8mp-som-board-upstreaming-v1-6-7c77f9ba02e5@pengutronix.de> From: Ahmad Fatoum In-Reply-To: <20240311-karo-imx8mp-som-board-upstreaming-v1-6-7c77f9ba02e5@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240311_031333_005586_DA7B7690 X-CRM114-Status: GOOD ( 18.98 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.6 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) Hello Stefan, On 11.03.24 10:10, Stefan Kerkmann wrote: > From: Marc Kleine-Budde > > The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This > commit adds support for the SOM on the QSBASE4 RDK. > > [1]: https://www.karo-electronics.de/qsxp > > Signed-off-by: Marc Kleine-Budde > Signed-off-by: Stefan Kerkmann > --- > arch/arm/boards/Makefile | 1 + > arch/arm/boards/karo-qsxp-ml81/Makefile | 4 + > arch/arm/boards/karo-qsxp-ml81/board.c | 35 + > .../flash-header-karo-qsxp-ml81.imxcfg | 9 + > arch/arm/boards/karo-qsxp-ml81/lowlevel.c | 102 ++ > arch/arm/boards/karo-qsxp-ml81/lowlevel.h | 8 + > arch/arm/boards/karo-qsxp-ml81/lpddr4-timing.c | 1597 ++++++++++++++++++++ If QSXP is the SoM name, rename the folder name to drop ml81. > + > + /* > + * If we are in EL3 we are running for the first time out of OCRAM, > + * we'll need to initialize the DRAM and run TF-A (BL31). The TF-A > + * will then jump to DRAM in EL2 > + */ > + if (current_el() == 3) { > + imx8mp_early_clock_init(); > + > + power_init_board(); > + > + imx8mp_ddr_init(&karo_qsxp_ml81_dram_timing, DRAM_TYPE_LPDDR4); > + > + imx8mp_load_and_start_image_via_tfa(); > + } > + > + /* Standard entry we hit once we initialized both DDR and ATF */ > + imx8mm_barebox_entry(__dtb_z_imx8mp_karo_qsxp_ml81_qsbase4_start); s/imx8mm/imx8mp/ > +/* ddr phy trained csr */ > +static struct dram_cfg_param ddr_ddrphy_trained_csr[] = { This is unused. See commit 975acf1bafba ("ARM: i.MX8M: delete unused per-board ddr_ddrphy_trained_csr array") Unless your value differ from the default, just drop this from here. > +static struct dram_fsp_msg ddr_dram_fsp_msg[] = { > + { > + /* P0 3200mts 1D */ > + .drate = 3200, > + .fw_type = FW_1D_IMAGE, > + .fsp_cfg = ddr_fsp0_cfg, > + .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_cfg), > + }, > + { > + /* P0 3200mts 2D */ > + .drate = 3200, > + .fw_type = FW_2D_IMAGE, > + .fsp_cfg = ddr_fsp0_2d_cfg, > + .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_2d_cfg), > + }, JFYI, if you want to dynamic frequency scaling for DDR, you'll need some more entries here. > +config MACH_KARO_QSXP_ML81 Please enable this in imx_v8_defconfig and multi_v8_defconfig for CI coverage. Cheers, Ahmad -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |