Tyan update to work with new CPU Config
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1693 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#define SIO_COM2_BASE 0x2F8
|
||||
#endif
|
||||
|
||||
extern struct chip_control superio_winbond_w83627hf_control;
|
||||
extern struct chip_operations superio_winbond_w83627hf_ops;
|
||||
|
||||
#include <pc80/keyboard.h>
|
||||
#include <uart8250.h>
|
||||
|
@@ -112,23 +112,23 @@ static void w83627hf_init(device_t dev)
|
||||
if (!dev->enabled) {
|
||||
return;
|
||||
}
|
||||
conf = dev->chip->chip_info;
|
||||
conf = dev->chip_info;
|
||||
switch(dev->path.u.pnp.device) {
|
||||
case W83627HF_SP1:
|
||||
res0 = get_resource(dev, PNP_IDX_IO0);
|
||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||
init_uart8250(res0->base, &conf->com1);
|
||||
break;
|
||||
case W83627HF_SP2:
|
||||
res0 = get_resource(dev, PNP_IDX_IO0);
|
||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||
init_uart8250(res0->base, &conf->com2);
|
||||
break;
|
||||
case W83627HF_KBC:
|
||||
res0 = get_resource(dev, PNP_IDX_IO0);
|
||||
res1 = get_resource(dev, PNP_IDX_IO1);
|
||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||
res1 = find_resource(dev, PNP_IDX_IO1);
|
||||
init_pc_keyboard(res0->base, res1->base, &conf->keyboard);
|
||||
break;
|
||||
case W83627HF_HWM:
|
||||
res0 = get_resource(dev, PNP_IDX_IO0);
|
||||
res0 = find_resource(dev, PNP_IDX_IO0);
|
||||
init_hwm(res0->base);
|
||||
break;
|
||||
}
|
||||
@@ -208,14 +208,14 @@ static struct pnp_info pnp_dev_info[] = {
|
||||
{ &ops, W83627HF_HWM, PNP_IO0 | PNP_IRQ0, { 0xff8, 0 } },
|
||||
};
|
||||
|
||||
static void enumerate(struct chip *chip)
|
||||
static void enable_dev(struct device *dev)
|
||||
{
|
||||
pnp_enumerate(chip, sizeof(pnp_dev_info)/sizeof(pnp_dev_info[0]),
|
||||
&pnp_ops, pnp_dev_info);
|
||||
pnp_enable_devices(dev, &pnp_ops,
|
||||
sizeof(pnp_dev_info)/sizeof(pnp_dev_info[0]), pnp_dev_info);
|
||||
}
|
||||
|
||||
struct chip_control superio_winbond_w83627hf_control = {
|
||||
.enumerate = enumerate,
|
||||
.name = "Winbond w83627hf"
|
||||
struct chip_operations superio_winbond_w83627hf_ops = {
|
||||
.name = "Winbond w83627hf",
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user