From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] ARM: beagleplay: Add missing DRAM frequencies
Date: Mon, 20 Jan 2025 07:50:41 +0100 [thread overview]
Message-ID: <20250120065041.2558346-1-s.hauer@pengutronix.de> (raw)
The DDR driver needs the frequencies initialized, otherwise it fails
with a division by zero error.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/beagleplay/ddr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boards/beagleplay/ddr.c b/arch/arm/boards/beagleplay/ddr.c
index 3f8b36026a..027fc407fb 100644
--- a/arch/arm/boards/beagleplay/ddr.c
+++ b/arch/arm/boards/beagleplay/ddr.c
@@ -578,6 +578,9 @@ static struct k3_ddr_initdata initdata = {
.ctl_regs = &ctl_regs,
.pi_regs = &pi_regs,
.phy_regs = &phy_regs,
+ .freq0 = 25000000,
+ .freq1 = 400000000,
+ .freq2 = 400000000,
};
void beagleplay_ddr_init(void)
--
2.39.5
next reply other threads:[~2025-01-20 6:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 6:50 Sascha Hauer [this message]
2025-01-21 8:07 ` Sascha Hauer
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=20250120065041.2558346-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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