Greg Kroah-Hartman | e3b3d0f | 2017-11-06 18:11:51 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 2 | /* |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 3 | * Copyright (C) 2005 Russell King. |
| 4 | * Data taken from include/asm-i386/serial.h |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 5 | */ |
| 6 | #include <linux/module.h> |
| 7 | #include <linux/init.h> |
| 8 | #include <linux/serial_8250.h> |
| 9 | |
Anton Wuerfel | b3bd666 | 2016-01-14 16:08:24 +0100 | [diff] [blame] | 10 | #include "8250.h" |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 11 | |
| 12 | static struct plat_serial8250_port accent_data[] = { |
Anton Wuerfel | b3bd666 | 2016-01-14 16:08:24 +0100 | [diff] [blame] | 13 | SERIAL8250_PORT(0x330, 4), |
| 14 | SERIAL8250_PORT(0x338, 4), |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 15 | { }, |
| 16 | }; |
| 17 | |
| 18 | static struct platform_device accent_device = { |
| 19 | .name = "serial8250", |
Russell King | 6df29de | 2005-09-08 16:04:41 +0100 | [diff] [blame] | 20 | .id = PLAT8250_DEV_ACCENT, |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 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"); |