sio-enable, because the init is not called. Without the init_keyboard,
authorStefan Reinauer <stepan@openbios.org>
Thu, 25 Mar 2004 17:35:13 +0000 (17:35 +0000)
committerStefan Reinauer <stepan@openbios.org>
Thu, 25 Mar 2004 17:35:13 +0000 (17:35 +0000)
the keyboard will not work under kernel 2.6.3 or later.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1477 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/superio/winbond/w83627hf/superio.c

index 49abb2517b5171e6e42d8c00ff09b6e64f43abc8..4f5fd989ee0e3b19ba8212e058de4aa758f8994d 100644 (file)
@@ -72,8 +72,24 @@ static void enumerate(struct chip *chip)
        pnp_enumerate(chip, sizeof(pnp_dev_info)/sizeof(pnp_dev_info[0]), 
                &pnp_ops, pnp_dev_info);
 }
+static void sio_enable(struct chip *chip, enum chip_pass pass)
+{
+
+        struct superio_winbond_w83627hf_config *conf = (struct superio_winbond_w83627hf_config *)chip->chip_info;
+
+        switch (pass) {
+        case CONF_PASS_PRE_CONSOLE:
+                init_pc_keyboard(0x60, 0x64, &conf->keyboard);
+                break;
+        default:
+                /* nothing yet */
+                break;
+        }
+}
+
 
 struct chip_control superio_winbond_w83627hf_control = {
+       .enable    = sio_enable,
        .enumerate = enumerate,
        .name      = "Winbond w83627hf"
 };