summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorNicholas Sudsgaard <devel+coreboot@nsudsgaard.com>2024-11-25 02:14:23 +0000
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-11-27 22:11:46 +0000
commit2a71a804cfdc36709ef2500bc265d0228f37e9b7 (patch)
treec518aba0a35502e9b33e496c51f411f687533860 /src/drivers
parent83fb3b70f0d16ff5d2f755ab875cc4d55992c1fa (diff)
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>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/pc80/pc/ps2_controller.asl1
-rw-r--r--src/drivers/pc80/pc/ps2_keyboard.asl29
-rw-r--r--src/drivers/pc80/pc/ps2_mouse.asl24
3 files changed, 29 insertions, 25 deletions
diff --git a/src/drivers/pc80/pc/ps2_controller.asl b/src/drivers/pc80/pc/ps2_controller.asl
index 28e337073e..d781973247 100644
--- a/src/drivers/pc80/pc/ps2_controller.asl
+++ b/src/drivers/pc80/pc/ps2_controller.asl
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+
#include "ps2_keyboard.asl"
#include "ps2_mouse.asl"
diff --git a/src/drivers/pc80/pc/ps2_keyboard.asl b/src/drivers/pc80/pc/ps2_keyboard.asl
index b3d5efada3..5bbc7932b2 100644
--- a/src/drivers/pc80/pc/ps2_keyboard.asl
+++ b/src/drivers/pc80/pc/ps2_keyboard.asl
@@ -1,18 +1,19 @@
/* SPDX-License-Identifier: GPL-2.0-only */
- Device (PS2K) // Keyboard
- {
- Name(_HID, EISAID(CONFIG_PS2K_EISAID))
- Name(_CID, EISAID("PNP030B"))
- Name(_CRS, ResourceTemplate()
- {
- IO (Decode16, 0x60, 0x60, 0x01, 0x01)
- IO (Decode16, 0x64, 0x64, 0x01, 0x01)
- IRQ (Edge, ActiveHigh, Exclusive) { 0x01 } // IRQ 1
- })
+Device (PS2K) // PS/2 Keyboard
+{
+ Name (_HID, EISAID (CONFIG_PS2K_EISAID))
+ Name (_CID, EISAID ("PNP030B"))
+
+ 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)
}
+}
diff --git a/src/drivers/pc80/pc/ps2_mouse.asl b/src/drivers/pc80/pc/ps2_mouse.asl
index f9ac4159b2..04d160522f 100644
--- a/src/drivers/pc80/pc/ps2_mouse.asl
+++ b/src/drivers/pc80/pc/ps2_mouse.asl
@@ -1,15 +1,17 @@
/* SPDX-License-Identifier: GPL-2.0-only */
- Device (PS2M) // Mouse
+
+Device (PS2M) // PS/2 Mouse
+{
+ Name (_HID, EISAID (CONFIG_PS2M_EISAID))
+ Name (_CID, EISAID ("PNP0F13"))
+
+ Name (_CRS, ResourceTemplate()
{
- Name(_HID, EISAID(CONFIG_PS2M_EISAID))
- Name(_CID, EISAID("PNP0F13"))
- Name(_CRS, ResourceTemplate()
- {
- IRQ (Edge, ActiveHigh, Exclusive) { 0x0c } // IRQ 12
- })
+ IRQ (Edge, ActiveHigh, Exclusive) { 0x0C } // IRQ 12
+ })
- Method(_STA, 0)
- {
- Return (0xf)
- }
+ Method (_STA, 0)
+ {
+ Return (0x0F)
}
+}