From a23036c8d8649e237932e04e853d118628d57747 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Fri, 5 Dec 2014 22:46:02 +1100 Subject: mainboard/lenovo/g505s: Build in EC ASL support for KBD/AUX ports Rather than have Linux report: i8042: PNP: No PS/2 controller found. Probing directly. and go off probing PNP config space, build in EC ASL for the PS/2 keyboard and mouse. The ASL explicitly passes these resources to the Linux to avoid said probe. ASL Details: PS/2 keyboard (PNP0303 at 0x60,0x64 irq 1 ) PS/2 mouse (PNP0F13 at 0x60,0x64 irq 12) Change-Id: I0697fab65915907fbe2b3551182b3a1b0d665ddb Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/7651 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- src/mainboard/lenovo/g505s/acpi/superio.asl | 10 ++++++++++ src/mainboard/lenovo/g505s/mainboard.h | 3 +++ 2 files changed, 13 insertions(+) (limited to 'src/mainboard/lenovo/g505s') diff --git a/src/mainboard/lenovo/g505s/acpi/superio.asl b/src/mainboard/lenovo/g505s/acpi/superio.asl index e69de29bb2..e3bb6fbc6b 100644 --- a/src/mainboard/lenovo/g505s/acpi/superio.asl +++ b/src/mainboard/lenovo/g505s/acpi/superio.asl @@ -0,0 +1,10 @@ +/* + * Copyright (C) 2014 Edward O'Callaghan + * Subject to the GNU GPL v2, or (at your option) any later version. + */ + +/* Defines EC bits specific to the mainboard, needed by EC ASL */ +#include "mainboard.h" + +/* ACPI code for EC SuperIO functions */ +#include diff --git a/src/mainboard/lenovo/g505s/mainboard.h b/src/mainboard/lenovo/g505s/mainboard.h index 6131df2378..49aaedd2c8 100644 --- a/src/mainboard/lenovo/g505s/mainboard.h +++ b/src/mainboard/lenovo/g505s/mainboard.h @@ -22,4 +22,7 @@ #define PME_GPE 0x0b #define PCIE_GPE 0x18 +/* Enable PS/2 Keyboard and Mouse */ +#define SIO_EC_ENABLE_PS2K + #endif /* _MAINBOARD_LENOVO_G505S_MAINBOARD_H */ -- cgit v1.2.3