svn commit: r187463 - projects/mips/sys/mips/atheros

Oleksandr Tymoshenko gonzo at FreeBSD.org
Mon Jan 19 20:31:46 PST 2009


Author: gonzo
Date: Tue Jan 20 04:31:45 2009
New Revision: 187463
URL: http://svn.freebsd.org/changeset/base/187463

Log:
  - Fix platform_reset function

Modified:
  projects/mips/sys/mips/atheros/ar71xx_machdep.c

Modified: projects/mips/sys/mips/atheros/ar71xx_machdep.c
==============================================================================
--- projects/mips/sys/mips/atheros/ar71xx_machdep.c	Tue Jan 20 04:31:12 2009	(r187462)
+++ projects/mips/sys/mips/atheros/ar71xx_machdep.c	Tue Jan 20 04:31:45 2009	(r187463)
@@ -72,10 +72,14 @@ platform_identify(void)
 void
 platform_reset(void)
 {
-	volatile unsigned int * p = 
-	    (void *)MIPS_PHYS_TO_KSEG1(AR71XX_RST_RESET);
-
-	*p = RST_RESET_CPU_COLD_RESET;
+	volatile uint32_t * p = 
+	    (void *)MIPS_PHYS_TO_KSEG1(ATH_RST_RESET);
+	uint32_t reg = *p;
+
+	*p = reg | RST_RESET_FULL_CHIP_RESET;
+	/* Wait for reset */
+	while(1)
+		;
 }
 
 void


More information about the svn-src-projects mailing list