Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 04:31:46 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r187463 - projects/mips/sys/mips/atheros
Message-ID:  <200901200431.n0K4VkbI032654@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901200431.n0K4VkbI032654>