tty: serial/samsung: make register definitions global
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 Apr 2013 00:04:48 +0000 (02:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 20:14:36 +0000 (13:14 -0700)
commit9ee51f01eee84a108510ac2794b9a9dff8be6d3f
tree56a7520690660719fc2bc05da8a89d14fd28cbb1
parent17efd2b7867b5ee1076d3c9ae5a6c937907d9198
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>
arch/arm/mach-s3c24xx/clock-s3c2440.c
arch/arm/mach-s3c24xx/common.c
arch/arm/plat-samsung/include/plat/regs-serial.h
drivers/tty/serial/samsung.c
include/linux/serial_s3c.h [new file with mode: 0644]