All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] WDT Driver for Book-E [3/3] get rid of PVR. access.
@ 2005-04-01  4:27 Takeharu KATO
  0 siblings, 0 replies; only message in thread
From: Takeharu KATO @ 2005-04-01  4:27 UTC (permalink / raw)
  To: linuxppc-embedded, galak, mporter

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);
 }
 /**

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-01  4:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-01  4:27 [PATCH] WDT Driver for Book-E [3/3] get rid of PVR. access Takeharu KATO

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.