2 * This file is part of the coreboot project.
4 * Copyright (C) 2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #include <device/device.h>
22 #include <device/pnp.h>
23 #include <console/console.h>
24 #include <device/smbus.h>
32 void set_kbc_ps2_mode(void);
33 void m3885_configure_multikey(void);
35 static void m3885x_init(device_t dev)
37 struct superio_renesas_m3885x_config *conf = dev->chip_info;
42 printk_debug("Renesas M3885x: Initializing keyboard.\n");
44 pc_keyboard_init(&conf->keyboard);
45 m3885_configure_multikey();
49 static void m3885x_read_resources(device_t dev)
51 // nothing, but this function avoids an error on serial console.
54 static void m3885x_enable_resources(device_t dev)
56 // nothing, but this function avoids an error on serial console.
59 static struct device_operations ops = {
61 .read_resources = m3885x_read_resources,
62 .enable_resources = m3885x_enable_resources
65 static struct pnp_info pnp_dev_info[] = {
66 { &ops, 0, 0, { 0, 0 }, }
69 static void enable_dev(device_t dev)
71 pnp_enable_devices(dev, &pnp_ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
74 struct chip_operations superio_renesas_m3885x_ops = {
75 CHIP_NAME("Renesas M3885x Super I/O")
76 .enable_dev = enable_dev,