svn commit: r260872 - head/sys/powerpc/powermac

Justin Hibbits jhibbits at FreeBSD.org
Sun Jan 19 00:24:00 UTC 2014


Author: jhibbits
Date: Sun Jan 19 00:23:59 2014
New Revision: 260872
URL: http://svnweb.freebsd.org/changeset/base/260872

Log:
  There's actually no data in the PMU_GET_VERSION command.  Don't send any.
  This change now allows the PMU to be used on PowerBook5,8.
  
  MFC after:	1 week

Modified:
  head/sys/powerpc/powermac/pmu.c

Modified: head/sys/powerpc/powermac/pmu.c
==============================================================================
--- head/sys/powerpc/powermac/pmu.c	Sat Jan 18 23:48:20 2014	(r260871)
+++ head/sys/powerpc/powermac/pmu.c	Sun Jan 19 00:23:59 2014	(r260872)
@@ -378,7 +378,7 @@ pmu_attach(device_t dev)
 	pmu_write_reg(sc, vIER, 0x94); /* make sure VIA interrupts are on */
 
 	pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp);
-	pmu_send(sc, PMU_GET_VERSION, 1, cmd, 16, resp);
+	pmu_send(sc, PMU_GET_VERSION, 0, cmd, 16, resp);
 
 	/* Initialize child buses (ADB) */
 	node = ofw_bus_get_node(dev);


More information about the svn-src-all mailing list