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>
This commit is contained in:
parent
a7d14a170e
commit
290bed7258
@ -23,6 +23,7 @@
|
|||||||
#include <device/pnp.h>
|
#include <device/pnp.h>
|
||||||
#include <superio/conf_mode.h>
|
#include <superio/conf_mode.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
#include <pc80/keyboard.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
@ -31,16 +32,18 @@
|
|||||||
|
|
||||||
static void it8728f_init(device_t dev)
|
static void it8728f_init(device_t dev)
|
||||||
{
|
{
|
||||||
struct superio_ite_it8728f_config *conf = dev->chip_info;
|
|
||||||
|
|
||||||
if (!dev->enabled)
|
if (!dev->enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switch(dev->path.pnp.device) {
|
switch(dev->path.pnp.device) {
|
||||||
/* TODO: Might potentially need code for HWM or FDC etc. */
|
/* TODO: Might potentially need code for HWM or FDC etc. */
|
||||||
case IT8728F_EC:
|
case IT8728F_EC:
|
||||||
it8728f_hwm_ec_init(dev);
|
it8728f_hwm_ec_init(dev);
|
||||||
break;
|
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,
|
.ops_pnp_mode = &pnp_conf_mode_870155_aa,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* TODO: incomplete */
|
|
||||||
static struct pnp_info pnp_dev_info[] = {
|
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_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)
|
static void enable_dev(device_t dev)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user