summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRudolf Marek <r.marek@assembler.cz>2014-05-13 16:07:00 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-23 20:07:37 +0200
commit290bed72589a36161c29debc67b7164dade5de3d (patch)
tree4f61af7e51b6e01ca8104751af2363640edccaef
parenta7d14a170e9e36d4b8a0c73c112e5516f378c23a (diff)
downloadcoreboot-290bed72589a36161c29debc67b7164dade5de3d.tar.xz
Implement proper IT8728F PNP ops
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 <r.marek@assembler.cz> Reviewed-on: http://review.coreboot.org/4498 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r--src/superio/ite/it8728f/superio.c18
1 files changed, 14 insertions, 4 deletions
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 <device/pnp.h>
#include <superio/conf_mode.h>
#include <console/console.h>
+#include <pc80/keyboard.h>
#include <stdlib.h>
#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)