1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <device/device.h>
4 #include <device/pnp.h>
5 #include <pc80/keyboard.h>
9 static void init(struct device
*dev
)
14 switch (dev
->path
.pnp
.device
) {
16 pc_keyboard_init(NO_AUX_DEVICE
);
21 static struct device_operations ops
= {
22 .read_resources
= pnp_read_resources
,
23 .set_resources
= pnp_set_resources
,
24 .enable_resources
= pnp_enable_resources
,
29 static struct pnp_info pnp_dev_info
[] = {
30 { NULL
, WPCM450_SP2
, PNP_IO0
| PNP_IRQ0
| PNP_DRQ0
| PNP_DRQ1
,
32 { NULL
, WPCM450_SP1
, PNP_IO0
| PNP_IRQ0
, 0x07f8, },
33 { NULL
, WPCM450_KBCK
, PNP_IO0
| PNP_IO1
| PNP_IRQ0
, 0x07ff, 0x07ff, },
36 static void enable_dev(struct device
*dev
)
38 pnp_enable_devices(dev
, &ops
, ARRAY_SIZE(pnp_dev_info
), pnp_dev_info
);
41 struct chip_operations superio_nuvoton_wpcm450_ops
= {
42 .name
= "Nuvoton WPCM450 Super I/O",
43 .enable_dev
= enable_dev
,