Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  *  Copyright (C) 2005 Russell King.
0004  *  Data taken from include/asm-i386/serial.h
0005  */
0006 #include <linux/module.h>
0007 #include <linux/init.h>
0008 #include <linux/serial_8250.h>
0009 
0010 #include "8250.h"
0011 
0012 static struct plat_serial8250_port accent_data[] = {
0013     SERIAL8250_PORT(0x330, 4),
0014     SERIAL8250_PORT(0x338, 4),
0015     { },
0016 };
0017 
0018 static struct platform_device accent_device = {
0019     .name           = "serial8250",
0020     .id         = PLAT8250_DEV_ACCENT,
0021     .dev            = {
0022         .platform_data  = accent_data,
0023     },
0024 };
0025 
0026 static int __init accent_init(void)
0027 {
0028     return platform_device_register(&accent_device);
0029 }
0030 
0031 module_init(accent_init);
0032 
0033 MODULE_AUTHOR("Russell King");
0034 MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards");
0035 MODULE_LICENSE("GPL");