drivers/pc80/pc: Clean up formatting of PS/2 related ASL code
This change corrects the indentation and also does the following to have
the ASL code written in a more canonical style:
- Add space between the operator name and "(".
- Use uppercase for hexadecimal values.
Change-Id: Ib946599f8ab4d68b16867912743f4a7a5bc0307d
Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85281
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
parent
83fb3b70f0
commit
2a71a804cf
3 changed files with 29 additions and 25 deletions
|
|
@ -1,3 +1,4 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include "ps2_keyboard.asl"
|
||||
#include "ps2_mouse.asl"
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
Device (PS2K) // Keyboard
|
||||
|
||||
Device (PS2K) // PS/2 Keyboard
|
||||
{
|
||||
Name (_HID, EISAID (CONFIG_PS2K_EISAID))
|
||||
Name (_CID, EISAID ("PNP030B"))
|
||||
|
||||
Name (_CRS, ResourceTemplate()
|
||||
{
|
||||
Name(_HID, EISAID(CONFIG_PS2K_EISAID))
|
||||
Name(_CID, EISAID("PNP030B"))
|
||||
IO (Decode16, 0x60, 0x60, 0x01, 0x01)
|
||||
IO (Decode16, 0x64, 0x64, 0x01, 0x01)
|
||||
IRQ (Edge, ActiveHigh, Exclusive) { 0x01 } // IRQ 1
|
||||
})
|
||||
|
||||
Name(_CRS, ResourceTemplate()
|
||||
{
|
||||
IO (Decode16, 0x60, 0x60, 0x01, 0x01)
|
||||
IO (Decode16, 0x64, 0x64, 0x01, 0x01)
|
||||
IRQ (Edge, ActiveHigh, Exclusive) { 0x01 } // IRQ 1
|
||||
})
|
||||
|
||||
Method (_STA, 0)
|
||||
{
|
||||
Return (0xf)
|
||||
}
|
||||
Method (_STA, 0)
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
Device (PS2M) // Mouse
|
||||
{
|
||||
Name(_HID, EISAID(CONFIG_PS2M_EISAID))
|
||||
Name(_CID, EISAID("PNP0F13"))
|
||||
Name(_CRS, ResourceTemplate()
|
||||
{
|
||||
IRQ (Edge, ActiveHigh, Exclusive) { 0x0c } // IRQ 12
|
||||
})
|
||||
|
||||
Method(_STA, 0)
|
||||
{
|
||||
Return (0xf)
|
||||
}
|
||||
Device (PS2M) // PS/2 Mouse
|
||||
{
|
||||
Name (_HID, EISAID (CONFIG_PS2M_EISAID))
|
||||
Name (_CID, EISAID ("PNP0F13"))
|
||||
|
||||
Name (_CRS, ResourceTemplate()
|
||||
{
|
||||
IRQ (Edge, ActiveHigh, Exclusive) { 0x0C } // IRQ 12
|
||||
})
|
||||
|
||||
Method (_STA, 0)
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue