| 1 |
|
| 2 |
|
| 3 |
#include <device/device.h> |
| 4 |
#include <device/pnp.h> |
| 5 |
#include <console/console.h> |
| 6 |
#include <pc80/keyboard.h> |
| 7 |
|
| 8 |
void m3885_configure_multikey(void); |
| 9 |
|
| 10 |
static void m3885x_init(struct device *dev) |
| 11 |
{ |
| 12 |
if (!dev->enabled) |
| 13 |
return; |
| 14 |
|
| 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(); |
| 19 |
} |
| 20 |
|
| 21 |
static void m3885x_read_resources(struct device *dev) |
| 22 |
{ |
| 23 |
|
| 24 |
} |
| 25 |
|
| 26 |
static void m3885x_enable_resources(struct device *dev) |
| 27 |
{ |
| 28 |
|
| 29 |
} |
| 30 |
|
| 31 |
static struct device_operations ops = { |
| 32 |
.init = m3885x_init, |
| 33 |
.read_resources = m3885x_read_resources, |
| 34 |
.enable_resources = m3885x_enable_resources |
| 35 |
}; |
| 36 |
|
| 37 |
static struct pnp_info pnp_dev_info[] = { |
| 38 |
{ NULL, 0, 0, 0, } |
| 39 |
}; |
| 40 |
|
| 41 |
static void enable_dev(struct device *dev) |
| 42 |
{ |
| 43 |
pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info); |
| 44 |
} |
| 45 |
|
| 46 |
struct chip_operations superio_renesas_m3885x_ops = { |
| 47 |
.name = "Renesas M3885x Super I/O", |
| 48 |
.enable_dev = enable_dev, |
| 49 |
}; |