aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/s3c2410.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/s3c2410.c')
-rw-r--r--drivers/tty/serial/s3c2410.c74
1 files changed, 0 insertions, 74 deletions
diff --git a/drivers/tty/serial/s3c2410.c b/drivers/tty/serial/s3c2410.c
deleted file mode 100644
index 1491c32d1436..000000000000
--- a/drivers/tty/serial/s3c2410.c
+++ /dev/null
@@ -1,74 +0,0 @@
1/*
2 * Driver for Samsung S3C2410 SoC onboard UARTs.
3 *
4 * Ben Dooks, Copyright (c) 2003-2008 Simtec Electronics
5 * http://armlinux.simtec.co.uk/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10*/
11
12#include <linux/module.h>
13#include <linux/ioport.h>
14#include <linux/io.h>
15#include <linux/platform_device.h>
16#include <linux/init.h>
17#include <linux/serial_core.h>
18#include <linux/serial.h>
19
20#include <asm/irq.h>
21#include <mach/hardware.h>
22
23#include <plat/regs-serial.h>
24#include <mach/regs-gpio.h>
25
26#include "samsung.h"
27
28static struct s3c24xx_uart_info s3c2410_uart_inf = {
29 .name = "Samsung S3C2410 UART",
30 .type = PORT_S3C2410,
31 .fifosize = 16,
32 .rx_fifomask = S3C2410_UFSTAT_RXMASK,
33 .rx_fifoshift = S3C2410_UFSTAT_RXSHIFT,
34 .rx_fifofull = S3C2410_UFSTAT_RXFULL,
35 .tx_fifofull = S3C2410_UFSTAT_TXFULL,
36 .tx_fifomask = S3C2410_UFSTAT_TXMASK,
37 .tx_fifoshift = S3C2410_UFSTAT_TXSHIFT,
38 .def_clk_sel = S3C2410_UCON_CLKSEL0,
39 .num_clks = 2,
40 .clksel_mask = S3C2410_UCON_CLKMASK,
41 .clksel_shift = S3C2410_UCON_CLKSHIFT,
42};
43
44static int s3c2410_serial_probe(struct platform_device *dev)
45{
46 return s3c24xx_serial_probe(dev, &s3c2410_uart_inf);
47}
48
49static struct platform_driver s3c2410_serial_driver = {
50 .probe = s3c2410_serial_probe,
51 .remove = __devexit_p(s3c24xx_serial_remove),
52 .driver = {
53 .name = "s3c2410-uart",
54 .owner = THIS_MODULE,
55 },
56};
57
58static int __init s3c2410_serial_init(void)
59{
60 return s3c24xx_serial_init(&s3c2410_serial_driver, &s3c2410_uart_inf);
61}
62
63static void __exit s3c2410_serial_exit(void)
64{
65 platform_driver_unregister(&s3c2410_serial_driver);
66}
67
68module_init(s3c2410_serial_init);
69module_exit(s3c2410_serial_exit);
70
71MODULE_LICENSE("GPL v2");
72MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
73MODULE_DESCRIPTION("Samsung S3C2410 SoC Serial port driver");
74MODULE_ALIAS("platform:s3c2410-uart");