blob: 1691f1a57f899f587754aeadcfad097fa2318895 [file] [log] [blame]
Greg Kroah-Hartmane3b3d0f2017-11-06 18:11:51 +01001// SPDX-License-Identifier: GPL-2.0
Russell Kingec9f47c2005-06-27 11:12:54 +01002/*
Russell Kingec9f47c2005-06-27 11:12:54 +01003 * Copyright (C) 2005 Russell King.
4 * Data taken from include/asm-i386/serial.h
Russell Kingec9f47c2005-06-27 11:12:54 +01005 */
6#include <linux/module.h>
7#include <linux/init.h>
8#include <linux/serial_8250.h>
9
Anton Wuerfelb3bd6662016-01-14 16:08:24 +010010#include "8250.h"
Russell Kingec9f47c2005-06-27 11:12:54 +010011
12static struct plat_serial8250_port accent_data[] = {
Anton Wuerfelb3bd6662016-01-14 16:08:24 +010013 SERIAL8250_PORT(0x330, 4),
14 SERIAL8250_PORT(0x338, 4),
Russell Kingec9f47c2005-06-27 11:12:54 +010015 { },
16};
17
18static struct platform_device accent_device = {
19 .name = "serial8250",
Russell King6df29de2005-09-08 16:04:41 +010020 .id = PLAT8250_DEV_ACCENT,
Russell Kingec9f47c2005-06-27 11:12:54 +010021 .dev = {
22 .platform_data = accent_data,
23 },
24};
25
26static int __init accent_init(void)
27{
28 return platform_device_register(&accent_device);
29}
30
31module_init(accent_init);
32
33MODULE_AUTHOR("Russell King");
34MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards");
35MODULE_LICENSE("GPL");