Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 1 | /* |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 2 | * Copyright (C) 2005 Russell King. |
| 3 | * Data taken from include/asm-i386/serial.h |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | */ |
| 9 | #include <linux/module.h> |
| 10 | #include <linux/init.h> |
| 11 | #include <linux/serial_8250.h> |
| 12 | |
Anton Wuerfel | b3bd666 | 2016-01-14 16:08:24 +0100 | [diff] [blame^] | 13 | #include "8250.h" |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 14 | |
| 15 | static struct plat_serial8250_port accent_data[] = { |
Anton Wuerfel | b3bd666 | 2016-01-14 16:08:24 +0100 | [diff] [blame^] | 16 | SERIAL8250_PORT(0x330, 4), |
| 17 | SERIAL8250_PORT(0x338, 4), |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 18 | { }, |
| 19 | }; |
| 20 | |
| 21 | static struct platform_device accent_device = { |
| 22 | .name = "serial8250", |
Russell King | 6df29de | 2005-09-08 16:04:41 +0100 | [diff] [blame] | 23 | .id = PLAT8250_DEV_ACCENT, |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 24 | .dev = { |
| 25 | .platform_data = accent_data, |
| 26 | }, |
| 27 | }; |
| 28 | |
| 29 | static int __init accent_init(void) |
| 30 | { |
| 31 | return platform_device_register(&accent_device); |
| 32 | } |
| 33 | |
| 34 | module_init(accent_init); |
| 35 | |
| 36 | MODULE_AUTHOR("Russell King"); |
| 37 | MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards"); |
| 38 | MODULE_LICENSE("GPL"); |