From: John Sanpe <sanpeqf@gmail.com>
To: jagan@amarulasolutions.com, andre.przywara@arm.com
Cc: u-boot@lists.denx.de, John Sanpe <sanpeqf@gmail.com>
Subject: [PATCH] suniv: fix dramc autofresh freq calculation issue
Date: Mon, 20 Mar 2023 08:59:59 +0800 [thread overview]
Message-ID: <20230320005959.176726-1-sanpeqf@gmail.com> (raw)
External use mhz to express frequency, autofresh use hz,
no unit conversion is performed when calling, cause dram
instability at low frequency.
Incorporated xboot repair patch for this driver.
Signed-off-by: John Sanpe <sanpeqf@gmail.com>
---
arch/arm/mach-sunxi/dram_suniv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-sunxi/dram_suniv.c b/arch/arm/mach-sunxi/dram_suniv.c
index 3aa3ce7627..830fa7895d 100644
--- a/arch/arm/mach-sunxi/dram_suniv.c
+++ b/arch/arm/mach-sunxi/dram_suniv.c
@@ -310,7 +310,7 @@ static u32 dram_get_dram_size(struct dram_para *para)
para->size = 64;
else
para->size = 32;
- dram_set_autofresh_cycle(para->clk);
+ dram_set_autofresh_cycle(para->clk * 1000000);
para->access_mode = 0;
dram_para_setup(para);
--
2.39.2
next reply other threads:[~2023-03-20 12:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 0:59 John Sanpe [this message]
2023-04-20 23:41 ` [PATCH] suniv: fix dramc autofresh freq calculation issue Andre Przywara
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=20230320005959.176726-1-sanpeqf@gmail.com \
--to=sanpeqf@gmail.com \
--cc=andre.przywara@arm.com \
--cc=jagan@amarulasolutions.com \
--cc=u-boot@lists.denx.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