xref: /linux/drivers/tty/serial/8250/8250_boca.c (revision e3b3d0f549c1d19b94e6ac55c66643166ea649ef)
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  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 #include <linux/module.h>
11 #include <linux/init.h>
12 #include <linux/serial_8250.h>
13 
14 #include "8250.h"
15 
16 static struct plat_serial8250_port boca_data[] = {
17 	SERIAL8250_PORT(0x100, 12),
18 	SERIAL8250_PORT(0x108, 12),
19 	SERIAL8250_PORT(0x110, 12),
20 	SERIAL8250_PORT(0x118, 12),
21 	SERIAL8250_PORT(0x120, 12),
22 	SERIAL8250_PORT(0x128, 12),
23 	SERIAL8250_PORT(0x130, 12),
24 	SERIAL8250_PORT(0x138, 12),
25 	SERIAL8250_PORT(0x140, 12),
26 	SERIAL8250_PORT(0x148, 12),
27 	SERIAL8250_PORT(0x150, 12),
28 	SERIAL8250_PORT(0x158, 12),
29 	SERIAL8250_PORT(0x160, 12),
30 	SERIAL8250_PORT(0x168, 12),
31 	SERIAL8250_PORT(0x170, 12),
32 	SERIAL8250_PORT(0x178, 12),
33 	{ },
34 };
35 
36 static struct platform_device boca_device = {
37 	.name			= "serial8250",
38 	.id			= PLAT8250_DEV_BOCA,
39 	.dev			= {
40 		.platform_data	= boca_data,
41 	},
42 };
43 
44 static int __init boca_init(void)
45 {
46 	return platform_device_register(&boca_device);
47 }
48 
49 module_init(boca_init);
50 
51 MODULE_AUTHOR("Russell King");
52 MODULE_DESCRIPTION("8250 serial probe module for Boca cards");
53 MODULE_LICENSE("GPL");
54