summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/pc80/pc/ps2_controller.asl34
-rw-r--r--src/drivers/pc80/pc/ps2_keyboard.asl18
-rw-r--r--src/drivers/pc80/pc/ps2_mouse.asl15
3 files changed, 35 insertions, 32 deletions
diff --git a/src/drivers/pc80/pc/ps2_controller.asl b/src/drivers/pc80/pc/ps2_controller.asl
index 48ddeb4a5c..28e337073e 100644
--- a/src/drivers/pc80/pc/ps2_controller.asl
+++ b/src/drivers/pc80/pc/ps2_controller.asl
@@ -1,33 +1,3 @@
/* 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
- })
-
- Method (_STA, 0)
- {
- Return (0xf)
- }
- }
-
- 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)
- }
- }
+#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
new file mode 100644
index 0000000000..b3d5efada3
--- /dev/null
+++ b/src/drivers/pc80/pc/ps2_keyboard.asl
@@ -0,0 +1,18 @@
+/* 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
+ })
+
+ Method (_STA, 0)
+ {
+ Return (0xf)
+ }
+ }
diff --git a/src/drivers/pc80/pc/ps2_mouse.asl b/src/drivers/pc80/pc/ps2_mouse.asl
new file mode 100644
index 0000000000..f9ac4159b2
--- /dev/null
+++ b/src/drivers/pc80/pc/ps2_mouse.asl
@@ -0,0 +1,15 @@
+/* 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)
+ }
+ }