Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / tty / serial / 8250 / 8250_accent.c
blob1691f1a57f899f587754aeadcfad097fa2318895
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2005 Russell King.
4 * Data taken from include/asm-i386/serial.h
5 */
6 #include <linux/module.h>
7 #include <linux/init.h>
8 #include <linux/serial_8250.h>
10 #include "8250.h"
12 static struct plat_serial8250_port accent_data[] = {
13 SERIAL8250_PORT(0x330, 4),
14 SERIAL8250_PORT(0x338, 4),
15 { },
18 static struct platform_device accent_device = {
19 .name = "serial8250",
20 .id = PLAT8250_DEV_ACCENT,
21 .dev = {
22 .platform_data = accent_data,
26 static int __init accent_init(void)
28 return platform_device_register(&accent_device);
31 module_init(accent_init);
33 MODULE_AUTHOR("Russell King");
34 MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards");
35 MODULE_LICENSE("GPL");