2 * This file is part of the coreboot project.
4 * Copyright (C) 2010 Marc Jones <marcj303@gmail.com>
5 * Copyright (C) 2008 Corey Osgood <corey.osgood@gmail.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
23 #include <device/device.h>
24 #include <device/pnp.h>
25 #include <superio/conf_mode.h>
26 #include <console/console.h>
30 static void f71859_init(struct device
*dev
)
35 /* TODO: Might potentially need code for HWM or FDC etc. */
38 static struct device_operations ops
= {
39 .read_resources
= pnp_read_resources
,
40 .set_resources
= pnp_set_resources
,
41 .enable_resources
= pnp_enable_resources
,
42 .enable
= pnp_alt_enable
,
44 .ops_pnp_mode
= &pnp_conf_mode_8787_aa
,
47 static struct pnp_info pnp_dev_info
[] = {
48 /* TODO: Some of the 0x07f8 etc. values may not be correct. */
49 { &ops
, F71859_SP1
, PNP_IO0
| PNP_IRQ0
, {0x07f8, 0}, },
52 static void enable_dev(struct device
*dev
)
54 pnp_enable_devices(dev
, &ops
, ARRAY_SIZE(pnp_dev_info
), pnp_dev_info
);
57 struct chip_operations superio_fintek_f71859_ops
= {
58 CHIP_NAME("Fintek F71859 Super I/O")
59 .enable_dev
= enable_dev