Thinkpad: Enable Battery events

Enable the following events for battery objects on
Thinkpad X60/T60:

24: BAT0 critical
25: BAT1 critical
4A: BAT0 present
4B: BAT0 state change
4C: BAT1 present
4D: BAT1 state change

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Acked-by: Sven Schnelle <svens@stackframe.org>

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6549 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Sven Schnelle 2011-04-28 09:29:06 +00:00
parent 50270b822f
commit 95ebe66f7f
3 changed files with 38 additions and 0 deletions

View File

@ -294,3 +294,39 @@ Device (BAT1)
}
}
}
/* Battery 0 critical */
Method(_Q24, 0, NotSerialized)
{
Notify(BAT0, 0x80)
}
/* Battery 1 critical */
Method(_Q25, 0, NotSerialized)
{
Notify(BAT1, 0x80)
}
/* Battery 0 attach/detach */
Method(_Q4A, 0, NotSerialized)
{
Notify(BAT0, 0x81)
}
/* Battery 0 state change */
Method(_Q4B, 0, NotSerialized)
{
Notify(BAT0, 0x80)
}
/* Battery 1 attach/detach */
Method(_Q4C, 0, NotSerialized)
{
Notify(BAT1, 0x81)
}
/* Battery 1 state change */
Method(_Q4D, 0, NotSerialized)
{
Notify(BAT1, 0x80)
}

View File

@ -130,6 +130,7 @@ chip northbridge/intel/i945
register "event4_enable" = "0xf4"
register "event5_enable" = "0x3c"
register "event6_enable" = "0x80"
register "eventc_enable" = "0x3c"
register "wlan_enable" = "0x01"
register "trackpoint_enable" = "0x03"

View File

@ -107,6 +107,7 @@ chip northbridge/intel/i945
register "event3_enable" = "0xff"
register "event4_enable" = "0xf4"
register "event5_enable" = "0x3c"
register "eventc_enable" = "0x3c"
register "wlan_enable" = "0x01"
register "trackpoint_enable" = "0x03"