From: Sascha Hauer <sha@pengutronix.de>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v2 1/2] ddr: imx8m: add support for 3720 MHz DDR rate
Date: Fri, 10 Feb 2023 10:44:35 +0100 [thread overview]
Message-ID: <20230210094435.GS10447@pengutronix.de> (raw)
In-Reply-To: <20230208133519.1114700-1-l.stach@pengutronix.de>
On Wed, Feb 08, 2023 at 02:35:18PM +0100, Lucas Stach wrote:
> From: Ahmad Fatoum <a.fatoum@pengutronix.de>
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> drivers/ddr/imx8m/ddrphy_utils.c | 3 +++
> 1 file changed, 3 insertions(+)
Applied, thanks
Sascha
>
> diff --git a/drivers/ddr/imx8m/ddrphy_utils.c b/drivers/ddr/imx8m/ddrphy_utils.c
> index 98e6ae648aed..7f863a1736c6 100644
> --- a/drivers/ddr/imx8m/ddrphy_utils.c
> +++ b/drivers/ddr/imx8m/ddrphy_utils.c
> @@ -17,6 +17,7 @@
> * clock / 2, which is therefor transfer rate / 4. */
> enum ddr_rate {
> DDR_4000,
> + DDR_3720,
> DDR_3200,
> DDR_3000,
> DDR_2600, /* Unused */
> @@ -52,6 +53,7 @@ static const struct imx8mm_fracpll_config {
> bool valid;
> } imx8mm_fracpll_table[DDR_NUM_RATES] = {
> [DDR_4000] = { .valid = true, .r1 = MDIV(250) | PDIV(3) | SDIV(1), .r2 = 0 },
> + [DDR_3720] = { .valid = true, .r1 = MDIV(310) | PDIV(2) | SDIV(2), .r2 = 0 },
> [DDR_3200] = { .valid = true, .r1 = MDIV(300) | PDIV(9) | SDIV(0), .r2 = 0 },
> [DDR_3000] = { .valid = true, .r1 = MDIV(250) | PDIV(8) | SDIV(0), .r2 = 0 },
> [DDR_2600] = { .valid = true, .r1 = MDIV(325) | PDIV(3) | SDIV(2), .r2 = 0 },
> @@ -335,6 +337,7 @@ void ddrphy_init_set_dfi_clk(unsigned int drate_mhz, enum ddrc_type type)
>
> switch (drate_mhz) {
> case 4000: drate = DDR_4000; break;
> + case 3720: drate = DDR_3720; break;
> case 3200: drate = DDR_3200; break;
> case 3000: drate = DDR_3000; break;
> case 2400: drate = DDR_2400; break;
> --
> 2.39.1
>
>
>
--
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 |
prev parent reply other threads:[~2023-02-10 9:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 13:35 Lucas Stach
2023-02-08 13:35 ` [PATCH v2 2/2] ARM: i.MX8MP: add initial Polyhex DEBIX Model A support Lucas Stach
2023-02-10 9:45 ` Sascha Hauer
2023-02-10 9:44 ` Sascha Hauer [this message]
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=20230210094435.GS10447@pengutronix.de \
--to=sha@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=l.stach@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