1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2005 Russell King.
4 * Data taken from include/asm-i386/serial.h
6 #include <linux/module.h>
7 #include <linux/init.h>
8 #include <linux/serial_8250.h>
10 #define HUB6(card, port) \
15 .iotype = UPIO_HUB6, \
16 .flags = UPF_BOOT_AUTOCONF, \
17 .hub6 = (card) << 6 | (port) << 3 | 1, \
20 static struct plat_serial8250_port hub6_data
[] = {
36 static struct platform_device hub6_device
= {
38 .id
= PLAT8250_DEV_HUB6
,
40 .platform_data
= hub6_data
,
44 static int __init
hub6_init(void)
46 return platform_device_register(&hub6_device
);
49 module_init(hub6_init
);
51 MODULE_AUTHOR("Russell King");
52 MODULE_DESCRIPTION("8250 serial probe module for Hub6 cards");
53 MODULE_LICENSE("GPL");