mb/amb/birman*/gpio: remove configuration for VDD_MEM_VID[0,1]
[coreboot2.git] / src / superio / nuvoton / wpcm450 / superio.c
blob7d79a3faf31d731c725f35ad9bdcd80c539f80e7
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <device/device.h>
4 #include <device/pnp.h>
5 #include <pc80/keyboard.h>
7 #include "wpcm450.h"
9 static void init(struct device *dev)
11 if (!dev->enabled)
12 return;
14 switch (dev->path.pnp.device) {
15 case WPCM450_KBCK:
16 pc_keyboard_init(NO_AUX_DEVICE);
17 break;
21 static struct device_operations ops = {
22 .read_resources = pnp_read_resources,
23 .set_resources = pnp_set_resources,
24 .enable_resources = pnp_enable_resources,
25 .enable = pnp_enable,
26 .init = init,
29 static struct pnp_info pnp_dev_info[] = {
30 { NULL, WPCM450_SP2, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1,
31 0x07f8, },
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,