From: Jochen Friedrich <jochen@scram.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] sa1100 change get_timer(base) to return time since base
Date: Sun, 16 May 2010 19:35:18 +0200 [thread overview]
Message-ID: <1274031318-22876-1-git-send-email-jochen@scram.de> (raw)
similar to 274737e5eb25b2bcd3af3a96da923effd543284f
This patch changes get_timer() for sa1100 to return the time since
'base' instead of the time since the counter was at zero.
Symptom seen is flash timeout errors when erasing or programming a
sector using the common cfi flash code.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
---
arch/arm/cpu/sa1100/timer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/cpu/sa1100/timer.c b/arch/arm/cpu/sa1100/timer.c
index 0207501..aea90ab 100644
--- a/arch/arm/cpu/sa1100/timer.c
+++ b/arch/arm/cpu/sa1100/timer.c
@@ -41,7 +41,7 @@ void reset_timer (void)
ulong get_timer (ulong base)
{
- return get_timer_masked ();
+ return get_timer_masked () - base;
}
void set_timer (ulong t)
--
1.7.1
next reply other threads:[~2010-05-16 17:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-16 17:35 Jochen Friedrich [this message]
2010-06-01 14:53 ` [U-Boot] [PATCH] sa1100 change get_timer(base) to return time since base Kristoffer Ericson
2010-06-02 10:34 ` Jochen Friedrich
2010-06-02 12:35 ` Kristoffer Ericson
2010-06-15 20:07 ` Kristoffer Ericson
2010-06-22 21:29 ` Wolfgang Denk
2010-06-22 22:09 ` Andrew Dyer
2010-06-22 22:34 ` Wolfgang Denk
2010-06-28 19:41 ` Jochen Friedrich
-- strict thread matches above, loose matches on Subject: below --
2010-04-02 16:23 Jochen Friedrich
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=1274031318-22876-1-git-send-email-jochen@scram.de \
--to=jochen@scram.de \
--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