Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Power button on G5 mac



Hey folks,

the power button on my G5 (pmac7,3) machine does not cause sysmon/powerd
events and I wonder how to fix that.

The OF tree has a lot of power gpios (I guess for enabling power on various
subsystems) and power sensors (most of them probably already handled
in the adadc0 and adadc1 envsys data).

The most interesting entries are:

--------------------------------------------------------------------------------
            

ff98dfc0: /ht@0,f2000000/pci@1800,0,0/mac-io@7/gpio@50/pmu-interrupt@9

built-in
compatible              706d752d 696e7465 72727570 7400....   "pmu-interrupt"
            000e:       6770696f 303100.. ........ ........   "gpio01"
device_type             6770696f 00...... ........ ........   "gpio"
interrupt-parent        ff98d7f0 ........ ........ ........   ....
interrupts              0000002f 00000001 ........ ........   .../....
name                    706d752d 696e7465 72727570 7400....   "pmu-interrupt"
reg                     00000009 ........ ........ ........   ....
            
--------------------------------------------------------------------------------
            

ff98e178: /ht@0,f2000000/pci@1800,0,0/mac-io@7/gpio@50/programmer-switch@11

built-in
compatible              70726f67 72616d6d 65722d73 77697463   "programmer-switc
            0010:       6800.... ........ ........ ........   h"
            0012:       6770696f 303900.. ........ ........   "gpio09"
device_type             6770696f 00...... ........ ........   "gpio"
interrupt-parent        ff98d7f0 ........ ........ ........   ....
interrupts              00000037 00000000 ........ ........   ...7....
name                    70726f67 72616d6d 65722d73 77697463   "programmer-switc
            0010:       6800.... ........ ........ ........   h"
reg                     00000011 ........ ........ ........   ....
            
--------------------------------------------------------------------------------


I didn't even know this machine has a "programmer-switch" (where could I find
that physically?).

The other looks like a good candidate for what I am looking for - anyone
know more details? What would be a good driver to clone?

Martin


Home | Main Index | Thread Index | Old Index