davinci: Move serial platform_device into SoC-specific files
authorMark A. Greer <mgreer@mvista.com>
Wed, 18 Mar 2009 17:36:08 +0000 (12:36 -0500)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 28 May 2009 22:17:41 +0000 (15:17 -0700)
commit65e866a9741126c678e6dcd5d4fa8c9eca18e945
tree069a15d3baed6c34b59e8504f1d5e3f73477f349
parenta994955cc091a8a51b7d7412174d9cf6de04d26b
davinci: Move serial platform_device into SoC-specific files

Currently, there is one set of platform_device and platform_data
structures for all DaVinci SoCs.  The differences in the data
between the various SoCs is handled by davinci_serial_init()
by checking the SoC type.  However, as new SoCs appear, this
routine will become more & more cluttered.

To clean up the routine and make it easier to add support for new
SoCs, move the platform_device and platform_data structures into the
SoC-specific code and use the SoC infrastructure to provide access
to the data.

In the process, fix a bug where the wrong irq is used for uart2
of the dm646x.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/dm355.c
arch/arm/mach-davinci/dm644x.c
arch/arm/mach-davinci/dm646x.c
arch/arm/mach-davinci/include/mach/common.h
arch/arm/mach-davinci/include/mach/serial.h
arch/arm/mach-davinci/serial.c