Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61914 )
Change subject: mb/asus/f2a85-m/acpi: Reformat code ......................................................................
mb/asus/f2a85-m/acpi: Reformat code
Change-Id: I6a6a25857087c23e4b9a73ad8412d800e4c39c74 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/mainboard/asus/f2a85-m/acpi/gpe.asl M src/mainboard/asus/f2a85-m/acpi/sleep.asl M src/mainboard/asus/f2a85-m/acpi/usb_oc.asl 3 files changed, 40 insertions(+), 41 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/61914/1
diff --git a/src/mainboard/asus/f2a85-m/acpi/gpe.asl b/src/mainboard/asus/f2a85-m/acpi/gpe.asl index 30d10ce..c938866 100644 --- a/src/mainboard/asus/f2a85-m/acpi/gpe.asl +++ b/src/mainboard/asus/f2a85-m/acpi/gpe.asl @@ -1,24 +1,24 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-Scope(_GPE) { /* Start Scope GPE */ +Scope(_GPE) { /* Start Scope GPE */
- /* General event 3 */ + /* General event 3 */ Method(_L03) { /* DBGO("\_GPE\_L00\n") */ }
- /* Legacy PM event */ + /* Legacy PM event */ Method(_L08) { /* DBGO("\_GPE\_L08\n") */ }
- /* Temp warning (TWarn) event */ + /* Temp warning (TWarn) event */ Method(_L09) { /* DBGO("\_GPE\_L09\n") */ /* Notify (_TZ.TZ00, 0x80) */ }
- /* USB controller PME# */ + /* USB controller PME# */ Method(_L0B) { /* DBGO("\_GPE\_L0B\n") */ Notify(_SB.PCI0.UOH1, 0x02) /* NOTIFY_DEVICE_WAKE */ @@ -30,26 +30,25 @@ Notify(_SB.PCI0.UEH1, 0x02) /* NOTIFY_DEVICE_WAKE */ }
- /* ExtEvent0 SCI event */ + /* ExtEvent0 SCI event */ Method(_L10) { /* DBGO("\_GPE\_L10\n") */ }
- - /* ExtEvent1 SCI event */ + /* ExtEvent1 SCI event */ Method(_L11) { /* DBGO("\_GPE\_L11\n") */ }
- /* GPIO0 or GEvent8 event */ + /* GPIO0 or GEvent8 event */ Method(_L18) { /* DBGO("\_GPE\_L18\n") */ Notify(_SB.PCI0.PBR4, 0x02) /* NOTIFY_DEVICE_WAKE */ }
- /* Azalia SCI event */ + /* Azalia SCI event */ Method(_L1B) { /* DBGO("\_GPE\_L1B\n") */ Notify(_SB.PCI0.AZHD, 0x02) /* NOTIFY_DEVICE_WAKE */ } -} /* End Scope GPE */ +} /* End Scope GPE */ diff --git a/src/mainboard/asus/f2a85-m/acpi/sleep.asl b/src/mainboard/asus/f2a85-m/acpi/sleep.asl index 07f6419..b44010d 100644 --- a/src/mainboard/asus/f2a85-m/acpi/sleep.asl +++ b/src/mainboard/asus/f2a85-m/acpi/sleep.asl @@ -4,21 +4,21 @@ Name(WKST,Package(){Zero, Zero})
/* -* _PTS - Prepare to Sleep method -* -* Entry: -* Arg0=The value of the sleeping state S1=1, S2=2, etc -* -* Exit: -* -none- -* -* The _PTS control method is executed at the beginning of the sleep process -* for S1-S5. The sleeping value is passed to the _PTS control method. This -* control method may be executed a relatively long time before entering the -* sleep state and the OS may abort the operation without notification to -* the ACPI driver. This method cannot modify the configuration or power -* state of any device in the system. -*/ + * _PTS - Prepare to Sleep method + * + * Entry: + * Arg0=The value of the sleeping state S1=1, S2=2, etc + * + * Exit: + * -none- + * + * The _PTS control method is executed at the beginning of the sleep process + * for S1-S5. The sleeping value is passed to the _PTS control method. This + * control method may be executed a relatively long time before entering the + * sleep state and the OS may abort the operation without notification to + * the ACPI driver. This method cannot modify the configuration or power + * state of any device in the system. + */ Method(_PTS, 1) { /* DBGO("\_PTS\n") */ /* DBGO("From S0 to S") */ @@ -43,20 +43,20 @@ } /* End Method(_PTS) */
/* -* _WAK System Wake method -* -* Entry: -* Arg0=The value of the sleeping state S1=1, S2=2 -* -* Exit: -* Return package of 2 DWords -* Dword 1 - Status -* 0x00000000 wake succeeded -* 0x00000001 Wake was signaled but failed due to lack of power -* 0x00000002 Wake was signaled but failed due to thermal condition -* Dword 2 - Power Supply state -* if non-zero the effective S-state the power supply entered -*/ + * _WAK System Wake method + * + * Entry: + * Arg0=The value of the sleeping state S1=1, S2=2 + * + * Exit: + * Return package of 2 DWords + * Dword 1 - Status + * 0x00000000 wake succeeded + * 0x00000001 Wake was signaled but failed due to lack of power + * 0x00000002 Wake was signaled but failed due to thermal condition + * Dword 2 - Power Supply state + * if non-zero the effective S-state the power supply entered + */ Method(_WAK, 1) { /* DBGO("\_WAK\n") */ /* DBGO("From S") */ diff --git a/src/mainboard/asus/f2a85-m/acpi/usb_oc.asl b/src/mainboard/asus/f2a85-m/acpi/usb_oc.asl index a5846fe..d90fffd 100644 --- a/src/mainboard/asus/f2a85-m/acpi/usb_oc.asl +++ b/src/mainboard/asus/f2a85-m/acpi/usb_oc.asl @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-/* USB overcurrent mapping pins. */ +/* USB overcurrent mapping pins. */ Name(UOM0, 0) Name(UOM1, 2) Name(UOM2, 0)