]> err.no Git - linux-2.6/commit
powerpc/cell: Add support for power button of future IBM cell blades
authorChristian Krafft <krafft@de.ibm.com>
Tue, 15 Jul 2008 19:51:45 +0000 (05:51 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 22 Jul 2008 00:39:32 +0000 (10:39 +1000)
commit4795b7801b07e1b7286edb0d9321433fc0eac6cc
tree74ee09ea441a4ebb57cb2e35d2d8def1e63f98f6
parent70694a8bab22bd0cc98ff4ee5cc75fe9be30fcd0
powerpc/cell: Add support for power button of future IBM cell blades

This patch adds support for the power button on future IBM cell blades.
It actually doesn't shut down the machine. Instead it exposes an
input device /dev/input/event0 to userspace which sends KEY_POWER
if power button has been pressed.
haldaemon actually recognizes the button, so a plattform independent acpid
replacement should handle it correctly.

Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/Kconfig
arch/powerpc/platforms/cell/Makefile
arch/powerpc/platforms/cell/cbe_powerbutton.c [new file with mode: 0644]
include/asm-powerpc/pmi.h