2 * Copyright (C) 2005 Russell King.
3 * Data taken from include/asm-i386/serial.h
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.
9 #include <linux/module.h>
10 #include <linux/init.h>
11 #include <linux/serial_8250.h>
13 #define HUB6(card,port) \
18 .iotype = UPIO_HUB6, \
19 .flags = UPF_BOOT_AUTOCONF, \
20 .hub6 = (card) << 6 | (port) << 3 | 1, \
23 static struct plat_serial8250_port hub6_data
[] = {
39 static struct platform_device hub6_device
= {
41 .id
= PLAT8250_DEV_HUB6
,
43 .platform_data
= hub6_data
,
47 static int __init
hub6_init(void)
49 return platform_device_register(&hub6_device
);
52 module_init(hub6_init
);
54 MODULE_AUTHOR("Russell King");
55 MODULE_DESCRIPTION("8250 serial probe module for Hub6 cards");
56 MODULE_LICENSE("GPL");