From: yegorslists@googlemail.com
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] arm: baltos: prolong global reset
Date: Fri, 9 Dec 2016 15:17:15 +0100 [thread overview]
Message-ID: <1481293035-28916-2-git-send-email-yegorslists@googlemail.com> (raw)
In-Reply-To: <1481293035-28916-1-git-send-email-yegorslists@googlemail.com>
From: Yegor Yefremov <yegorslists@googlemail.com>
Prolong global reset to the max. value of 0xff. Such a long reset
is required for some peripherals found on Baltos devices.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
arch/arm/boards/vscom-baltos/lowlevel.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boards/vscom-baltos/lowlevel.c b/arch/arm/boards/vscom-baltos/lowlevel.c
index 87f2a74..9f829b9 100644
--- a/arch/arm/boards/vscom-baltos/lowlevel.c
+++ b/arch/arm/boards/vscom-baltos/lowlevel.c
@@ -126,6 +126,12 @@ ENTRY_FUNCTION(start_am33xx_baltos_sdram, r0, r1, r2)
{
void *fdt;
+ /*
+ * Prolong global reset duration to the max. value (0xff)
+ * and leave power domain reset to its default value (0x10).
+ */
+ __raw_writel(0x000010ff, AM33XX_PRM_RSTTIME);
+
fdt = __dtb_am335x_baltos_minimal_start;
fdt -= get_runtime_offset();
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2016-12-09 14:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 14:17 [PATCH 1/2] arm: am33xx: add reset duration control register address definition yegorslists
2016-12-09 14:17 ` yegorslists [this message]
2017-01-09 12:55 ` 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=1481293035-28916-2-git-send-email-yegorslists@googlemail.com \
--to=yegorslists@googlemail.com \
--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