From 290bed72589a36161c29debc67b7164dade5de3d Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Tue, 13 May 2014 16:07:00 +0200 Subject: Implement proper IT8728F PNP ops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Asus F2A85-M has IT8306E which is a stripped down version of this SIO. Implement the PNP operations of the SIO. Change-Id: Ibc4f3fafc3ffb1cd799948e63be01e6924b45d6c Signed-off-by: Rudolf Marek Reviewed-on: http://review.coreboot.org/4498 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Stefan Reinauer --- src/superio/ite/it8728f/superio.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/superio') diff --git a/src/superio/ite/it8728f/superio.c b/src/superio/ite/it8728f/superio.c index ac08f724d7..e689b4c51f 100644 --- a/src/superio/ite/it8728f/superio.c +++ b/src/superio/ite/it8728f/superio.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "chip.h" @@ -31,16 +32,18 @@ static void it8728f_init(device_t dev) { - struct superio_ite_it8728f_config *conf = dev->chip_info; - if (!dev->enabled) return; switch(dev->path.pnp.device) { /* TODO: Might potentially need code for HWM or FDC etc. */ - case IT8728F_EC: + case IT8728F_EC: it8728f_hwm_ec_init(dev); break; + case IT8728F_KBCK: + set_kbc_ps2_mode(); + pc_keyboard_init(); + break; } } @@ -53,9 +56,16 @@ static struct device_operations ops = { .ops_pnp_mode = &pnp_conf_mode_870155_aa, }; -/* TODO: incomplete */ static struct pnp_info pnp_dev_info[] = { + { &ops, IT8728F_FDC, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, {0x0ff8, 0}, }, + { &ops, IT8728F_SP1, PNP_IO0 | PNP_IRQ0, {0x0ff8, 0}, }, + { &ops, IT8728F_SP2, PNP_IO0 | PNP_IRQ0, {0x0ff8, 0}, }, + { &ops, IT8728F_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, {0x0ffc, 0}, }, { &ops, IT8728F_EC, PNP_IO0 | PNP_IO1 | PNP_IRQ0, {0x0ff8, 0}, {0x0ff8, 4}, }, + { &ops, IT8728F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, {0x0fff, 0}, {0x0fff, 4}, }, + { &ops, IT8728F_KBCM, PNP_IRQ0, }, + { &ops, IT8728F_GPIO, PNP_IO0 | PNP_IO1 | PNP_IO2 | PNP_IRQ0, {0x0fff, 0}, {0x0ff8, 0}, {0x0ff8, 0}, }, + { &ops, IT8728F_IR, PNP_IO0 | PNP_IRQ0, {0x0ff8, 0}, }, }; static void enable_dev(device_t dev) -- cgit v1.2.3