mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Changes to get this wrapped up and compiling.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@897 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
2240ea82be
commit
338db28929
1 changed files with 10 additions and 7 deletions
|
@ -38,7 +38,7 @@ static void pnp_enter_ext_func_mode(struct device * dev)
|
||||||
outb(0x01, dev->path.pnp.port);
|
outb(0x01, dev->path.pnp.port);
|
||||||
outb(0x55, dev->path.pnp.port);
|
outb(0x55, dev->path.pnp.port);
|
||||||
|
|
||||||
if (dev->dev->path.pnp.port == 0x4e) {
|
if (dev->path.pnp.port == 0x4e) {
|
||||||
outb(0xaa, dev->path.pnp.port);
|
outb(0xaa, dev->path.pnp.port);
|
||||||
} else {
|
} else {
|
||||||
outb(0x55, dev->path.pnp.port);
|
outb(0x55, dev->path.pnp.port);
|
||||||
|
@ -59,18 +59,19 @@ static void it8712f_init(struct device * dev)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
conf = dev->chip_info;
|
conf = dev->device_configuration;
|
||||||
|
|
||||||
switch (dev->path.u.pnp.device) {
|
switch (dev->path.pnp.device) {
|
||||||
case IT8712F_FDC: /* TODO. */
|
case IT8712F_FDC: /* TODO. */
|
||||||
break;
|
break;
|
||||||
case IT8712F_SP1:
|
case IT8712F_SP1:
|
||||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||||
init_uart8250(res0->base, &conf->com1);
|
#warning no init_uart8250 yet
|
||||||
|
// init_uart8250(res0->base, &conf->com1);
|
||||||
break;
|
break;
|
||||||
case IT8712F_SP2:
|
case IT8712F_SP2:
|
||||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||||
init_uart8250(res0->base, &conf->com2);
|
// init_uart8250(res0->base, &conf->com2);
|
||||||
break;
|
break;
|
||||||
case IT8712F_PP: /* TODO. */
|
case IT8712F_PP: /* TODO. */
|
||||||
break;
|
break;
|
||||||
|
@ -79,8 +80,9 @@ static void it8712f_init(struct device * dev)
|
||||||
case IT8712F_KBCK:
|
case IT8712F_KBCK:
|
||||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||||
res1 = find_resource(dev, PNP_IDX_IO1);
|
res1 = find_resource(dev, PNP_IDX_IO1);
|
||||||
set_kbc_ps2_mode();
|
#warning no set_kbc_ps2_mode yet
|
||||||
init_pc_keyboard(res0->base, res1->base, &conf->keyboard);
|
// set_kbc_ps2_mode();
|
||||||
|
// init_pc_keyboard(res0->base, res1->base, &conf->keyboard);
|
||||||
break;
|
break;
|
||||||
case IT8712F_KBCM: /* TODO. */
|
case IT8712F_KBCM: /* TODO. */
|
||||||
break;
|
break;
|
||||||
|
@ -115,6 +117,7 @@ static void it8712f_pnp_enable(struct device * dev)
|
||||||
pnp_exit_ext_func_mode(dev);
|
pnp_exit_ext_func_mode(dev);
|
||||||
}
|
}
|
||||||
static void it8712f_setup_scan_bus(struct device *dev);
|
static void it8712f_setup_scan_bus(struct device *dev);
|
||||||
|
|
||||||
struct device_operations it8712f_ops = {
|
struct device_operations it8712f_ops = {
|
||||||
.phase2_setup_scan_bus = it8712f_setup_scan_bus,
|
.phase2_setup_scan_bus = it8712f_setup_scan_bus,
|
||||||
.phase4_read_resources = pnp_read_resources,
|
.phase4_read_resources = pnp_read_resources,
|
||||||
|
|
Loading…
Add table
Reference in a new issue