From 4b37326e9fc7eb2312afbd6e26f94d4684503a85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Niew=C3=B6hner?= <foss@mniewoehner.de>
Date: Fri, 18 Sep 2020 01:37:13 +0200
Subject: mb/clevo/l140cu: set PS/2 timeout for SeaBIOS
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The keyboard only works randomly, because SeaBIOS initializes PS/2
before the EC is ready.

Set the PS/2 timeout for SeaBIOS to 500 ms, to wait for the EC before
initializing the keyboard.

Test: keyboard works fine.

Change-Id: I2be75961035f04a7ffa6f7e1dbaabb1243b857f9
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45959
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by:  Felix Singer <felixsinger@posteo.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
 src/mainboard/clevo/cml-u/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/mainboard/clevo')

diff --git a/src/mainboard/clevo/cml-u/Kconfig b/src/mainboard/clevo/cml-u/Kconfig
index ae797944c1..082bf624c1 100644
--- a/src/mainboard/clevo/cml-u/Kconfig
+++ b/src/mainboard/clevo/cml-u/Kconfig
@@ -81,4 +81,9 @@ config VARIANT_DIR
 	string
 	default "l140cu" if BOARD_CLEVO_L140CU
 
+config SEABIOS_PS2_TIMEOUT
+	int
+	depends on PAYLOAD_SEABIOS
+	default 500
+
 endif
-- 
cgit v1.2.3