summaryrefslogtreecommitdiff
path: root/src/ec/lenovo
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2015-05-27 08:30:47 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2015-05-29 07:45:55 +0200
commit852014cf003efa142e1992b45b2a4a627426a5df (patch)
tree8228c62dde92183866fbaaf9c00613ac1bdc0792 /src/ec/lenovo
parentfaa46e0cb697371535fef1b806101f1fd57c354e (diff)
downloadcoreboot-852014cf003efa142e1992b45b2a4a627426a5df.tar.xz
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 <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/10348 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com> Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'src/ec/lenovo')
-rw-r--r--src/ec/lenovo/h8/h8.c9
1 files changed, 8 insertions, 1 deletions
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 <string.h>
#include <smbios.h>
#include <pc80/mc146818rtc.h>
+#include <pc80/keyboard.h>
#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)