soc/intel/pantherlake: Remove soc_info.[hc] interface
[coreboot2.git] / src / superio / renesas / m3885x / superio.c
blob45bc7504fb75f702653aaae0a46ee650a9123757
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
4 #include <device/pnp.h>
5 #include <console/console.h>
6 #include <pc80/keyboard.h>
8 void m3885_configure_multikey(void);
10 static void m3885x_init(struct device *dev)
12 if (!dev->enabled)
13 return;
15 printk(BIOS_DEBUG, "Renesas M3885x: Initializing keyboard.\n");
16 set_kbc_ps2_mode();
17 pc_keyboard_init(NO_AUX_DEVICE);
18 m3885_configure_multikey();
21 static void m3885x_read_resources(struct device *dev)
23 /* Nothing, but this function avoids an error on serial console. */
26 static void m3885x_enable_resources(struct device *dev)
28 /* Nothing, but this function avoids an error on serial console. */
31 static struct device_operations ops = {
32 .init = m3885x_init,
33 .read_resources = m3885x_read_resources,
34 .enable_resources = m3885x_enable_resources
37 static struct pnp_info pnp_dev_info[] = {
38 { NULL, 0, 0, 0, }
41 static void enable_dev(struct device *dev)
43 pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
46 struct chip_operations superio_renesas_m3885x_ops = {
47 .name = "Renesas M3885x Super I/O",
48 .enable_dev = enable_dev,