From 852014cf003efa142e1992b45b2a4a627426a5df Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 27 May 2015 08:30:47 +0200 Subject: lenovo: Move pc_keyboard_init to h8 init. PS/2 emulation is part of H8, so should be inited in relevant files. Change-Id: Ie873ea7f6f88f68f622351799462d0b000d17585 Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/10348 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Edward O'Callaghan Reviewed-by: Alexander Couzens --- src/ec/lenovo/h8/h8.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ec/lenovo/h8') diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index 70424a1f41..46480f4174 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "h8.h" #include "chip.h" @@ -176,8 +177,14 @@ static void h8_smbios_strings(struct device *dev, struct smbios_type11 *t) t->count = smbios_add_string(t->eos, tpec); } +static void h8_init(device_t dev) +{ + pc_keyboard_init(); +} + struct device_operations h8_dev_ops = { - .get_smbios_strings = h8_smbios_strings + .get_smbios_strings = h8_smbios_strings, + .init = h8_init, }; static void h8_enable(struct device *dev) -- cgit v1.2.3