diff options
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/Kconfig | 7 | ||||
-rw-r--r-- | drivers/tty/serial/Makefile | 1 | ||||
-rw-r--r-- | drivers/tty/serial/s3c24a0.c | 117 |
3 files changed, 0 insertions, 125 deletions
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 636144cea932..65ccbce816d4 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig | |||
@@ -519,13 +519,6 @@ config SERIAL_S3C2440 | |||
519 | help | 519 | help |
520 | Serial port support for the Samsung S3C2440, S3C2416 and S3C2442 SoC | 520 | Serial port support for the Samsung S3C2440, S3C2416 and S3C2442 SoC |
521 | 521 | ||
522 | config SERIAL_S3C24A0 | ||
523 | tristate "Samsung S3C24A0 Serial port support" | ||
524 | depends on SERIAL_SAMSUNG && CPU_S3C24A0 | ||
525 | default y if CPU_S3C24A0 | ||
526 | help | ||
527 | Serial port support for the Samsung S3C24A0 SoC | ||
528 | |||
529 | config SERIAL_S3C6400 | 522 | config SERIAL_S3C6400 |
530 | tristate "Samsung S3C6400/S3C6410/S5P6440/S5P6450/S5PC100 Serial port support" | 523 | tristate "Samsung S3C6400/S3C6410/S5P6440/S5P6450/S5PC100 Serial port support" |
531 | depends on SERIAL_SAMSUNG && (CPU_S3C6400 || CPU_S3C6410 || CPU_S5P6440 || CPU_S5P6450 || CPU_S5PC100) | 524 | depends on SERIAL_SAMSUNG && (CPU_S3C6400 || CPU_S3C6410 || CPU_S5P6440 || CPU_S5P6450 || CPU_S5PC100) |
diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile index cb2628fee4c7..ee0df586756c 100644 --- a/drivers/tty/serial/Makefile +++ b/drivers/tty/serial/Makefile | |||
@@ -42,7 +42,6 @@ obj-$(CONFIG_SERIAL_S3C2400) += s3c2400.o | |||
42 | obj-$(CONFIG_SERIAL_S3C2410) += s3c2410.o | 42 | obj-$(CONFIG_SERIAL_S3C2410) += s3c2410.o |
43 | obj-$(CONFIG_SERIAL_S3C2412) += s3c2412.o | 43 | obj-$(CONFIG_SERIAL_S3C2412) += s3c2412.o |
44 | obj-$(CONFIG_SERIAL_S3C2440) += s3c2440.o | 44 | obj-$(CONFIG_SERIAL_S3C2440) += s3c2440.o |
45 | obj-$(CONFIG_SERIAL_S3C24A0) += s3c24a0.o | ||
46 | obj-$(CONFIG_SERIAL_S3C6400) += s3c6400.o | 45 | obj-$(CONFIG_SERIAL_S3C6400) += s3c6400.o |
47 | obj-$(CONFIG_SERIAL_S5PV210) += s5pv210.o | 46 | obj-$(CONFIG_SERIAL_S5PV210) += s5pv210.o |
48 | obj-$(CONFIG_SERIAL_MAX3100) += max3100.o | 47 | obj-$(CONFIG_SERIAL_MAX3100) += max3100.o |
diff --git a/drivers/tty/serial/s3c24a0.c b/drivers/tty/serial/s3c24a0.c deleted file mode 100644 index 914eff22e499..000000000000 --- a/drivers/tty/serial/s3c24a0.c +++ /dev/null | |||
@@ -1,117 +0,0 @@ | |||
1 | /* | ||
2 | * Driver for Samsung S3C24A0 SoC onboard UARTs. | ||
3 | * | ||
4 | * Based on drivers/serial/s3c2410.c | ||
5 | * | ||
6 | * Author: Sandeep Patil <sandeep.patil@azingo.com> | ||
7 | * | ||
8 | * Ben Dooks, Copyright (c) 2003-2008 Simtec Electronics | ||
9 | * http://armlinux.simtec.co.uk/ | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License version 2 as | ||
13 | * published by the Free Software Foundation. | ||
14 | */ | ||
15 | |||
16 | #include <linux/module.h> | ||
17 | #include <linux/ioport.h> | ||
18 | #include <linux/platform_device.h> | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/serial_core.h> | ||
21 | #include <linux/serial.h> | ||
22 | #include <linux/io.h> | ||
23 | #include <linux/irq.h> | ||
24 | |||
25 | #include <mach/hardware.h> | ||
26 | |||
27 | #include <plat/regs-serial.h> | ||
28 | #include <mach/regs-gpio.h> | ||
29 | |||
30 | #include "samsung.h" | ||
31 | |||
32 | static int s3c24a0_serial_setsource(struct uart_port *port, | ||
33 | struct s3c24xx_uart_clksrc *clk) | ||
34 | { | ||
35 | unsigned long ucon = rd_regl(port, S3C2410_UCON); | ||
36 | |||
37 | if (strcmp(clk->name, "uclk") == 0) | ||
38 | ucon |= S3C2410_UCON_UCLK; | ||
39 | else | ||
40 | ucon &= ~S3C2410_UCON_UCLK; | ||
41 | |||
42 | wr_regl(port, S3C2410_UCON, ucon); | ||
43 | return 0; | ||
44 | } | ||
45 | |||
46 | static int s3c24a0_serial_getsource(struct uart_port *port, | ||
47 | struct s3c24xx_uart_clksrc *clk) | ||
48 | { | ||
49 | unsigned long ucon = rd_regl(port, S3C2410_UCON); | ||
50 | |||
51 | clk->divisor = 1; | ||
52 | clk->name = (ucon & S3C2410_UCON_UCLK) ? "uclk" : "pclk"; | ||
53 | |||
54 | return 0; | ||
55 | } | ||
56 | |||
57 | static int s3c24a0_serial_resetport(struct uart_port *port, | ||
58 | struct s3c2410_uartcfg *cfg) | ||
59 | { | ||
60 | dbg("s3c24a0_serial_resetport: port=%p (%08lx), cfg=%p\n", | ||
61 | port, port->mapbase, cfg); | ||
62 | |||
63 | wr_regl(port, S3C2410_UCON, cfg->ucon); | ||
64 | wr_regl(port, S3C2410_ULCON, cfg->ulcon); | ||
65 | |||
66 | /* reset both fifos */ | ||
67 | |||
68 | wr_regl(port, S3C2410_UFCON, cfg->ufcon | S3C2410_UFCON_RESETBOTH); | ||
69 | wr_regl(port, S3C2410_UFCON, cfg->ufcon); | ||
70 | |||
71 | return 0; | ||
72 | } | ||
73 | |||
74 | static struct s3c24xx_uart_info s3c24a0_uart_inf = { | ||
75 | .name = "Samsung S3C24A0 UART", | ||
76 | .type = PORT_S3C2410, | ||
77 | .fifosize = 16, | ||
78 | .rx_fifomask = S3C24A0_UFSTAT_RXMASK, | ||
79 | .rx_fifoshift = S3C24A0_UFSTAT_RXSHIFT, | ||
80 | .rx_fifofull = S3C24A0_UFSTAT_RXFULL, | ||
81 | .tx_fifofull = S3C24A0_UFSTAT_TXFULL, | ||
82 | .tx_fifomask = S3C24A0_UFSTAT_TXMASK, | ||
83 | .tx_fifoshift = S3C24A0_UFSTAT_TXSHIFT, | ||
84 | .get_clksrc = s3c24a0_serial_getsource, | ||
85 | .set_clksrc = s3c24a0_serial_setsource, | ||
86 | .reset_port = s3c24a0_serial_resetport, | ||
87 | }; | ||
88 | |||
89 | static int s3c24a0_serial_probe(struct platform_device *dev) | ||
90 | { | ||
91 | return s3c24xx_serial_probe(dev, &s3c24a0_uart_inf); | ||
92 | } | ||
93 | |||
94 | static struct platform_driver s3c24a0_serial_driver = { | ||
95 | .probe = s3c24a0_serial_probe, | ||
96 | .remove = __devexit_p(s3c24xx_serial_remove), | ||
97 | .driver = { | ||
98 | .name = "s3c24a0-uart", | ||
99 | .owner = THIS_MODULE, | ||
100 | }, | ||
101 | }; | ||
102 | |||
103 | s3c24xx_console_init(&s3c24a0_serial_driver, &s3c24a0_uart_inf); | ||
104 | |||
105 | static int __init s3c24a0_serial_init(void) | ||
106 | { | ||
107 | return s3c24xx_serial_init(&s3c24a0_serial_driver, &s3c24a0_uart_inf); | ||
108 | } | ||
109 | |||
110 | static void __exit s3c24a0_serial_exit(void) | ||
111 | { | ||
112 | platform_driver_unregister(&s3c24a0_serial_driver); | ||
113 | } | ||
114 | |||
115 | module_init(s3c24a0_serial_init); | ||
116 | module_exit(s3c24a0_serial_exit); | ||
117 | |||