diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-04-10 20:04:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-11 16:14:36 -0400 |
commit | 9ee51f01eee84a108510ac2794b9a9dff8be6d3f (patch) | |
tree | 56a7520690660719fc2bc05da8a89d14fd28cbb1 /drivers/tty/serial/samsung.c | |
parent | 17efd2b7867b5ee1076d3c9ae5a6c937907d9198 (diff) |
tty: serial/samsung: make register definitions global
The registers for the Samsung S3C serial port are currently defined in
the platform specific arch/arm/plat-samsung/include/plat/regs-serial.h
file, which is not visible to multiplatform capable drivers.
Unfortunately, it is not possible to move the file into a more local
place as we should normally try to, because the same registers
may be used in one of four places:
* In the driver itself
* In platform-independent ARM code for early debug output
* In platform_data definitions
* In the Samsung platform power management code
I have also found no way to logically split out a platform_data
file, other than possibly move everything into
include/linux/platform_data, which also felt wrong. The only
part of this file that makes sense to keep specific to the s3c24xx
platform are the virtual and physical addresses defined here,
which are needed in no other location.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/samsung.c')
-rw-r--r-- | drivers/tty/serial/samsung.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index e91378b40d58..6a3695681fa5 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <linux/tty_flip.h> | 39 | #include <linux/tty_flip.h> |
40 | #include <linux/serial_core.h> | 40 | #include <linux/serial_core.h> |
41 | #include <linux/serial.h> | 41 | #include <linux/serial.h> |
42 | #include <linux/serial_s3c.h> | ||
42 | #include <linux/delay.h> | 43 | #include <linux/delay.h> |
43 | #include <linux/clk.h> | 44 | #include <linux/clk.h> |
44 | #include <linux/cpufreq.h> | 45 | #include <linux/cpufreq.h> |
@@ -46,10 +47,9 @@ | |||
46 | 47 | ||
47 | #include <asm/irq.h> | 48 | #include <asm/irq.h> |
48 | 49 | ||
49 | #include <mach/hardware.h> | 50 | #ifdef CONFIG_SAMSUNG_CLOCK |
50 | |||
51 | #include <plat/regs-serial.h> | ||
52 | #include <plat/clock.h> | 51 | #include <plat/clock.h> |
52 | #endif | ||
53 | 53 | ||
54 | #include "samsung.h" | 54 | #include "samsung.h" |
55 | 55 | ||