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 boca_data[] = { |
Anton Wuerfel | b3bd666 | 2016-01-14 16:08:24 +0100 | [diff] [blame] | 16 | SERIAL8250_PORT(0x100, 12), |
| 17 | SERIAL8250_PORT(0x108, 12), |
| 18 | SERIAL8250_PORT(0x110, 12), |
| 19 | SERIAL8250_PORT(0x118, 12), |
| 20 | SERIAL8250_PORT(0x120, 12), |
| 21 | SERIAL8250_PORT(0x128, 12), |
| 22 | SERIAL8250_PORT(0x130, 12), |
| 23 | SERIAL8250_PORT(0x138, 12), |
| 24 | SERIAL8250_PORT(0x140, 12), |
| 25 | SERIAL8250_PORT(0x148, 12), |
| 26 | SERIAL8250_PORT(0x150, 12), |
| 27 | SERIAL8250_PORT(0x158, 12), |
| 28 | SERIAL8250_PORT(0x160, 12), |
| 29 | SERIAL8250_PORT(0x168, 12), |
| 30 | SERIAL8250_PORT(0x170, 12), |
| 31 | SERIAL8250_PORT(0x178, 12), |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 32 | { }, |
| 33 | }; |
| 34 | |
| 35 | static struct platform_device boca_device = { |
| 36 | .name = "serial8250", |
Russell King | 6df29de | 2005-09-08 16:04:41 +0100 | [diff] [blame] | 37 | .id = PLAT8250_DEV_BOCA, |
Russell King | ec9f47c | 2005-06-27 11:12:54 +0100 | [diff] [blame] | 38 | .dev = { |
| 39 | .platform_data = boca_data, |
| 40 | }, |
| 41 | }; |
| 42 | |
| 43 | static int __init boca_init(void) |
| 44 | { |
| 45 | return platform_device_register(&boca_device); |
| 46 | } |
| 47 | |
| 48 | module_init(boca_init); |
| 49 | |
| 50 | MODULE_AUTHOR("Russell King"); |
| 51 | MODULE_DESCRIPTION("8250 serial probe module for Boca cards"); |
| 52 | MODULE_LICENSE("GPL"); |