PowerPC4xx Watchdog

Takeharu KATO kato.takeharu at jp.fujitsu.com
Tue Mar 1 00:20:28 EST 2005


Dear Matt and all:

This is PowerPC e500 part.

Signed-off-by: Takeharu KATO <kato.takeharu at jp.fujitsu.com>

--- linux-2.6.11-rc5.orig/arch/ppc/platforms/85xx/mpc8540_ads.c	2005-02-27 15:27:54.000000000 +0900
+++ linux-2.6.11-rc5/arch/ppc/platforms/85xx/mpc8540_ads.c	2005-02-28 20:51:45.000000000 +0900
@@ -54,6 +54,7 @@

  #include <syslib/ppc85xx_setup.h>

+
  /* ************************************************************************
   *
   * Setup the architecture
@@ -187,6 +188,14 @@ platform_init(unsigned long r3, unsigned
  		strcpy(cmd_line, (char *) (r6 + KERNELBASE));
  	}

+#ifdef CONFIG_PPC4xx_WATCHDOG
+	{
+	  extern void ppc4xx_wdt_setup_options(char *cmd_line);
+
+	  ppc4xx_wdt_setup_options(cmd_line);
+	}
+#endif  /*  CONFIG_PPC4xx_WATCHDOG  */
+
  	identify_ppc_sys_by_id(mfspr(SVR));

  	/* setup the PowerPC module struct */
--- linux-2.6.11-rc5.orig/arch/ppc/platforms/85xx/mpc8560_ads.c	2005-02-27 15:31:26.000000000 +0900
+++ linux-2.6.11-rc5/arch/ppc/platforms/85xx/mpc8560_ads.c	2005-02-28 20:51:45.000000000 +0900
@@ -197,6 +197,14 @@ platform_init(unsigned long r3, unsigned
  		strcpy(cmd_line, (char *) (r6 + KERNELBASE));
  	}

+#ifdef CONFIG_PPC4xx_WATCHDOG
+	{
+	  extern void ppc4xx_wdt_setup_options(char *cmd_line);
+
+	  ppc4xx_wdt_setup_options(cmd_line);
+	}
+#endif  /*  CONFIG_PPC4xx_WATCHDOG  */
+
  	identify_ppc_sys_by_id(mfspr(SVR));

  	/* setup the PowerPC module struct */
--- linux-2.6.11-rc5.orig/arch/ppc/platforms/85xx/mpc85xx_cds_common.c	2005-02-27 15:30:26.000000000 
+0900
+++ linux-2.6.11-rc5/arch/ppc/platforms/85xx/mpc85xx_cds_common.c	2005-02-28 20:51:45.000000000 +0900
@@ -437,6 +437,14 @@ platform_init(unsigned long r3, unsigned
                  strcpy(cmd_line, (char *) (r6 + KERNELBASE));
          }

+#ifdef CONFIG_PPC4xx_WATCHDOG
+	{
+	  extern void ppc4xx_wdt_setup_options(char *cmd_line);
+
+	  ppc4xx_wdt_setup_options(cmd_line);
+	}
+#endif  /*  CONFIG_PPC4xx_WATCHDOG  */
+
  	identify_ppc_sys_by_id(mfspr(SVR));

          /* setup the PowerPC module struct */
--- linux-2.6.11-rc5.orig/arch/ppc/platforms/85xx/sbc8560.c	2005-02-27 15:31:09.000000000 +0900
+++ linux-2.6.11-rc5/arch/ppc/platforms/85xx/sbc8560.c	2005-02-28 20:51:45.000000000 +0900
@@ -198,6 +198,14 @@ platform_init(unsigned long r3, unsigned
  		strcpy(cmd_line, (char *) (r6 + KERNELBASE));
  	}

+#ifdef CONFIG_PPC4xx_WATCHDOG
+	{
+	  extern void ppc4xx_wdt_setup_options(char *cmd_line);
+
+	  ppc4xx_wdt_setup_options(cmd_line);
+	}
+#endif  /*  CONFIG_PPC4xx_WATCHDOG  */
+
  	identify_ppc_sys_by_id(mfspr(SVR));

  	/* setup the PowerPC module struct */
--- linux-2.6.11-rc5.orig/arch/ppc/platforms/85xx/stx_gp3.c	2005-02-27 15:28:44.000000000 +0900
+++ linux-2.6.11-rc5/arch/ppc/platforms/85xx/stx_gp3.c	2005-02-28 20:51:45.000000000 +0900
@@ -68,6 +68,7 @@ unsigned long isa_mem_base = 0;
  unsigned long pci_dram_offset = 0;
  #endif

+
  /* Internal interrupts are all Level Sensitive, and Positive Polarity */
  static u8 gp3_openpic_initsenses[] __initdata = {
  	(IRQ_SENSE_LEVEL | IRQ_POLARITY_POSITIVE),	/* Internal  0: L2 Cache */
@@ -357,6 +358,14 @@ platform_init(unsigned long r3, unsigned
  		strcpy(cmd_line, (char *) (r6 + KERNELBASE));
  	}

+#ifdef CONFIG_PPC4xx_WATCHDOG
+	{
+	  extern void ppc4xx_wdt_setup_options(char *cmd_line);
+
+	  ppc4xx_wdt_setup_options(cmd_line);
+	}
+#endif  /*  CONFIG_PPC4xx_WATCHDOG  */
+
  	identify_ppc_sys_by_id(mfspr(SVR));

  	/* setup the PowerPC module struct */





More information about the Linuxppc-embedded mailing list