mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Freimut Diener <f.diener@pengutronix.de>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	"open list:BAREBOX" <barebox@lists.infradead.org>
Subject: Re: [PATCH 1/5] ARM: nxp-imx93-frdm: name the existing DDR timings for 1CS
Date: Fri, 27 Nov 2026 11:37:21 +0100	[thread overview]
Message-ID: <f8473cb3-f488-4c2a-a179-a107006e6d84@pengutronix.de> (raw)
In-Reply-To: <20261127-imx93-frdm-2cs-ddr-v1-1-64f5a99b3e4b@pengutronix.de>

On 11/27/26 10:41, Freimut Diener wrote:
> Make room for a second timing table by adding a 1CS infix to the
> existing LPDDR4 timing filename and exported symbol. Update the build
> and board references without changing any timing values.
> 
> Signed-off-by: Freimut Diener <f.diener@pengutronix.de>

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

> ---
>  arch/arm/boards/nxp-imx93-frdm/Makefile                               | 2 +-
>  arch/arm/boards/nxp-imx93-frdm/lowlevel.c                             | 4 ++--
>  .../nxp-imx93-frdm/{lpddr4x_2gb_timing.c => lpddr4x_1cs_2gb_timing.c} | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/boards/nxp-imx93-frdm/Makefile b/arch/arm/boards/nxp-imx93-frdm/Makefile
> index ac419ef7c2..82e7bbc821 100644
> --- a/arch/arm/boards/nxp-imx93-frdm/Makefile
> +++ b/arch/arm/boards/nxp-imx93-frdm/Makefile
> @@ -1,2 +1,2 @@
> -lwl-y += lowlevel.o lpddr4x_2gb_timing.o
> +lwl-y += lowlevel.o lpddr4x_1cs_2gb_timing.o
>  obj-y += board.o
> diff --git a/arch/arm/boards/nxp-imx93-frdm/lowlevel.c b/arch/arm/boards/nxp-imx93-frdm/lowlevel.c
> index bc48160431..d797b3b215 100644
> --- a/arch/arm/boards/nxp-imx93-frdm/lowlevel.c
> +++ b/arch/arm/boards/nxp-imx93-frdm/lowlevel.c
> @@ -12,7 +12,7 @@
>  #include <mach/imx/esdctl.h>
>  
>  extern char __dtb_z_imx93_frdm_start[];
> -extern struct dram_timing_info frdm_imx93_dram_timing;
> +extern struct dram_timing_info frdm_imx93_dram_timing_1cs;
>  
>  static noinline void frdm_imx93_continue(void)
>  {
> @@ -27,7 +27,7 @@ static noinline void frdm_imx93_continue(void)
>  	putchar('>');
>  
>  	if (current_el() == 3) {
> -		imx93_ddr_init(&frdm_imx93_dram_timing, DRAM_TYPE_LPDDR4);
> +		imx93_ddr_init(&frdm_imx93_dram_timing_1cs, DRAM_TYPE_LPDDR4);
>  		imx93_load_and_start_image_via_tfa();
>  	}
>  
> diff --git a/arch/arm/boards/nxp-imx93-frdm/lpddr4x_2gb_timing.c b/arch/arm/boards/nxp-imx93-frdm/lpddr4x_1cs_2gb_timing.c
> similarity index 99%
> rename from arch/arm/boards/nxp-imx93-frdm/lpddr4x_2gb_timing.c
> rename to arch/arm/boards/nxp-imx93-frdm/lpddr4x_1cs_2gb_timing.c
> index 84164094d8..083e85c899 100644
> --- a/arch/arm/boards/nxp-imx93-frdm/lpddr4x_2gb_timing.c
> +++ b/arch/arm/boards/nxp-imx93-frdm/lpddr4x_1cs_2gb_timing.c
> @@ -1890,7 +1890,7 @@ static struct dram_fsp_msg ddr_dram_fsp_msg[] = {
>  };
>  
>  /* ddr timing config params */
> -struct dram_timing_info frdm_imx93_dram_timing = {
> +struct dram_timing_info frdm_imx93_dram_timing_1cs = {
>  	.ddrc_cfg = ddr_ddrc_cfg,
>  	.ddrc_cfg_num = ARRAY_SIZE(ddr_ddrc_cfg),
>  	.ddrphy_cfg = ddr_ddrphy_cfg,
> 


-- 
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 |



  reply	other threads:[~2026-11-27 10:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  9:41 [PATCH 0/5] ARM: nxp-imx93-frdm: support both 2 GiB LPDDR4 Freimut Diener
2026-11-27  9:41 ` [PATCH 1/5] ARM: nxp-imx93-frdm: name the existing DDR timings for 1CS Freimut Diener
2026-11-27 10:37   ` Ahmad Fatoum [this message]
2026-11-27  9:42 ` [PATCH 2/5] ARM: nxp-imx93-frdm: import 2CS DDR timings from U-Boot Freimut Diener
2026-11-27  9:42 ` [PATCH 3/5] ARM: nxp-imx93-frdm: adapt the 2CS DDR timings for barebox Freimut Diener
2026-11-27  9:42 ` [PATCH 4/5] ddr: imx9: allow DDR PHY training errors to propagate Freimut Diener
2026-11-27  9:42 ` [PATCH 5/5] ARM: nxp-imx93-frdm: select DDR timings at boot Freimut Diener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8473cb3-f488-4c2a-a179-a107006e6d84@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=f.diener@pengutronix.de \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox