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> |
9 | |
10 | #include "8250.h" |
11 | |
12 | static struct plat_serial8250_port accent_data[] = { |
13 | SERIAL8250_PORT(0x330, 4), |
14 | SERIAL8250_PORT(0x338, 4), |
15 | { }, |
16 | }; |
17 | |
18 | static struct platform_device accent_device = { |
19 | .name = "serial8250", |
20 | .id = PLAT8250_DEV_ACCENT, |
21 | .dev = { |
22 | .platform_data = accent_data, |
23 | }, |
24 | }; |
25 | |
26 | static int __init accent_init(void) |
27 | { |
28 | return platform_device_register(&accent_device); |
29 | } |
30 | |
31 | module_init(accent_init); |
32 | |
33 | MODULE_AUTHOR("Russell King"); |
34 | MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards"); |
35 | MODULE_LICENSE("GPL"); |
36 |