ec/quanta/ene_kb3940q/acpi: Use Printf() for debug prints

Change-Id: I4b829a54bbbb8e7442e59feaf2e7dbf8556b590d
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60390
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Felix Singer 2021-12-27 07:17:19 +01:00
parent dcebf6c791
commit 58e6789e5f
1 changed files with 12 additions and 14 deletions

View File

@ -135,13 +135,11 @@ Device (EC0)
// Find and program number of P-States // Find and program number of P-States
Store (SizeOf (\_SB.CP00._PSS), MPST) Store (SizeOf (\_SB.CP00._PSS), MPST)
Store ("Programming number of P-states: ", Debug) Printf ("Programming number of P-states: %o", MPST)
Store (MPST, Debug)
// Find and program the current P-State // Find and program the current P-State
Store(\_SB.CP00._PPC, NPST) Store(\_SB.CP00._PPC, NPST)
Store ("Programming Current P-state: ", Debug) Printf ("Programming Current P-state: %o", NPST)
Store (NPST, Debug)
} }
/* /*
@ -163,20 +161,20 @@ Device (EC0)
// Wifi Button Event // Wifi Button Event
Method (_Q07) Method (_Q07)
{ {
Store ("Wifi Button Event 0x07", Debug) Printf ("Wifi Button Event 0x07")
} }
// Thermal Event // Thermal Event
Method (_Q08) Method (_Q08)
{ {
Store ("Thermal Event 0x08", Debug) Printf ("Thermal Event 0x08")
Notify(\_TZ.THRM, 0x80) Notify(\_TZ.THRM, 0x80)
} }
// Pstate Down // Pstate Down
Method (_Q0E) Method (_Q0E)
{ {
Store ("Pstate Event 0x0E", Debug) Printf ("Pstate Event 0x0E")
Store(\_SB.CP00._PPC, Local0) Store(\_SB.CP00._PPC, Local0)
Subtract(PPCM, 0x01, Local1) Subtract(PPCM, 0x01, Local1)
@ -192,7 +190,7 @@ Device (EC0)
// Pstate Up // Pstate Up
Method (_Q0F) Method (_Q0F)
{ {
Store ("Pstate Event 0x0F", Debug) Printf ("Pstate Event 0x0F")
Store(\_SB.CP00._PPC, Local0) Store(\_SB.CP00._PPC, Local0)
If(Local0) { If(Local0) {
@ -206,7 +204,7 @@ Device (EC0)
// AC Power Connected // AC Power Connected
Method (_Q10, 0, NotSerialized) Method (_Q10, 0, NotSerialized)
{ {
Store ("AC Insertion Event 0x10", Debug) Printf ("AC Insertion Event 0x10")
Store (One, \PWRS) Store (One, \PWRS)
Notify (AC, 0x80) Notify (AC, 0x80)
Notify (BATX, 0x80) Notify (BATX, 0x80)
@ -216,7 +214,7 @@ Device (EC0)
// AC Power Removed // AC Power Removed
Method (_Q11, 0, NotSerialized) Method (_Q11, 0, NotSerialized)
{ {
Store ("AC Detach Event 0x11", Debug) Printf ("AC Detach Event 0x11")
Store (Zero, \PWRS) Store (Zero, \PWRS)
Notify (AC, 0x80) Notify (AC, 0x80)
Notify (BATX, 0x80) Notify (BATX, 0x80)
@ -226,7 +224,7 @@ Device (EC0)
// Battery State Change - Attach Event // Battery State Change - Attach Event
Method (_Q12, 0, NotSerialized) Method (_Q12, 0, NotSerialized)
{ {
Store ("Battery Insertion Event 0x12", Debug) Printf ("Battery Insertion Event 0x12")
Notify (BATX, 0x81) Notify (BATX, 0x81)
Notify (BATX, 0x80) Notify (BATX, 0x80)
@ -236,7 +234,7 @@ Device (EC0)
// Battery State Change - Detach Event // Battery State Change - Detach Event
Method (_Q13, 0, NotSerialized) Method (_Q13, 0, NotSerialized)
{ {
Store ("Battery Detach Event 0x13", Debug) Printf ("Battery Detach Event 0x13")
Notify (BATX, 0x81) Notify (BATX, 0x81)
Notify (BATX, 0x80) Notify (BATX, 0x80)
@ -247,7 +245,7 @@ Device (EC0)
// Battery State Change Event // Battery State Change Event
Method (_Q14, 0, NotSerialized) Method (_Q14, 0, NotSerialized)
{ {
Store ("Battery State Change Event 0x14", Debug) Printf ("Battery State Change Event 0x14")
Notify (BATX, 0x80) Notify (BATX, 0x80)
} }
@ -255,7 +253,7 @@ Device (EC0)
// Lid Switch Event // Lid Switch Event
Method (_Q06) Method (_Q06)
{ {
Store ("Lid Switch Event 0x06", Debug) Printf ("Lid Switch Event 0x06")
sleep(20) sleep(20)
Store (LIDF, \LIDS) Store (LIDF, \LIDS)
Notify (\_SB.LID0, 0x80) Notify (\_SB.LID0, 0x80)