svn commit: r211480 - head/sys/mips/atheros

Adrian Chadd adrian at FreeBSD.org
Thu Aug 19 02:12:05 UTC 2010


Author: adrian
Date: Thu Aug 19 02:12:04 2010
New Revision: 211480
URL: http://svn.freebsd.org/changeset/base/211480

Log:
  Migrate the CPU reset path to use the new cpuops.

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

Modified: head/sys/mips/atheros/ar71xx_machdep.c
==============================================================================
--- head/sys/mips/atheros/ar71xx_machdep.c	Thu Aug 19 02:10:05 2010	(r211479)
+++ head/sys/mips/atheros/ar71xx_machdep.c	Thu Aug 19 02:12:04 2010	(r211480)
@@ -121,9 +121,7 @@ platform_identify(void)
 void
 platform_reset(void)
 {
-	uint32_t reg = ATH_READ_REG(AR71XX_RST_RESET);
-
-	ATH_WRITE_REG(AR71XX_RST_RESET, reg | RST_RESET_FULL_CHIP);
+	ar71xx_device_stop(RST_RESET_FULL_CHIP);
 	/* Wait for reset */
 	while(1)
 		;


More information about the svn-src-head mailing list