From: Bob Zhang <zhanglinbao@gmail.com>
To: <linux-kernel@vger.kernel.org>
Subject: About watch dog timer limit of CPU (Xscale ->IXP425) How can I set more long time ?
Date: Tue, 5 Dec 2006 11:32:30 +0800 [thread overview]
Message-ID: <2006125113230.203524@9BobZhang1> (raw)
Hello all ,
My embeded board hardware configuration is like this :
# cat /proc/cpuinfo
Processor : XScale-IXP425/IXC1100 rev 1 (v5b)
BogoMIPS : 266.24
Features : swp half thumb fastmult edsp
Hardware : Intel IXDP425 Development Platform
Revision : 0000
Serial : 0000000000000000
Through reading datasheet of ixp4xx ,I know it has own watchdog functions ,
please see attchment :15 Timer
I find a driver by goole ,
see attachment .
Watchdog timer counter is 32 bit register , its max value is 2<<32 -1
#define TIMER_FREQ 66000000 /* 66 MHZ timer */
#define TIMER_KEY 0x482e
#define TIMER_MARGIN 60 /* (secs) Default is 1 minute */
//I want to modify it ,I find its max value is 65
static int ixp425_margin = TIMER_MARGIN; /* in seconds */
static int ixp425wdt_users;
//static int pre_margin; //IXP425 CPU 's watch dog timer is 32 bit ,
//so I define it to be unsigned int --bob
static unsigned int pre_margin;
pre_margin = TIMER_FREQ * TIMER_MARGIN
*IXP425_OSWT = pre_margin;
if I need one minutes ,
*IXP425_OSWT = 66000000 * 60 = 396000000 ,not overflow
if I need two minutes ,
*IXP425_OSWT = 66000000 * 120 = 792000000 ( which has been > 2<<32-1 , overflow
So I compute the max time I can set :
T_max = 2<<32-1 / 66000000 = 65 seconds ¡£
--------------------
My question:
if need more seconds ( for example , 5 minutes ) ,what should I do ?
I have a method based on datasheet (ixp4xx) ,but I don't know if it will successed when system crash
How can I do to break the limit of hardware ?
Thanks ahead !
--
Best Regards
bob
next reply other threads:[~2006-12-05 3:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-05 3:32 Bob Zhang [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-04 9:18 zhang bob
2006-12-04 5:41 Bob Zhang
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=2006125113230.203524@9BobZhang1 \
--to=zhanglinbao@gmail.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®