From: Takeharu KATO <kato.takeharu@jp.fujitsu.com>
To: linuxppc-embedded@ozlabs.org, galak@freescale.com,
mporter@kernel.crashing.org
Subject: [PATCH] WDT Driver for Book-E [3/3] get rid of PVR. access.
Date: Fri, 01 Apr 2005 13:27:10 +0900 [thread overview]
Message-ID: <424CCD9E.2010907@jp.fujitsu.com> (raw)
Hi,
I fixed the device driver codes for BOOK-E Architecture which I posted before.
This patch get rid of PVR register access in the driver according to
recent fashion.
This patch is written to apply after applying two patches I sent before.
Please apply.
P.S. Kumar, have you tested this driver?
Please notify if there are some problems with the driver.
Regards,
Signed-off-by: Takeharu KATO <kato.takeharu@jp.fujitsu.com>
diff -Naur linux-2.6.11.6.orig/drivers/char/watchdog/booke_wdt.c linux-2.6.11.6/drivers/char/watchdog/booke_wdt.c
--- linux-2.6.11.6.orig/drivers/char/watchdog/booke_wdt.c 2005-04-01 02:55:48.000000000 +0900
+++ linux-2.6.11.6/drivers/char/watchdog/booke_wdt.c 2005-04-01 02:35:00.000000000 +0900
@@ -37,6 +37,7 @@
#include <asm/reg.h>
#include <asm/uaccess.h>
#include <asm/system.h>
+#include <asm/cputable.h>
#include "booke_wdt.h"
/* micro seconds per one milli-second(used to calculatewatchdog
@@ -345,7 +346,7 @@
/* Hardware WDT provided by the processor.
* So, we set firmware version as processor version number.
*/
- ident.firmware_version=mfspr(PVR);
+ ident.firmware_version=cpu_specs[0].pvr_value;
__booke_wdt_setup_val(WDT_WP,WRC_NONE);
}
/**
reply other threads:[~2005-04-01 4:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=424CCD9E.2010907@jp.fujitsu.com \
--to=kato.takeharu@jp.fujitsu.com \
--cc=galak@freescale.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=mporter@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.