aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/dm646x.c
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2009-04-15 15:39:48 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-05-26 11:17:16 -0400
commit0e585952ac6a06b3c77d6b8eadb9c359766a700d (patch)
treed8216964e80d9cd3d86b5aa9cb25f035efa26bef /arch/arm/mach-davinci/dm646x.c
parentd81d188cafecbc9e01df51527ac4c84a5b19e033 (diff)
davinci: Move pinmux setup info to SoC infrastructure
The pinmux register base and setup can be different for different SoCs so move the pinmux reg base, pinmux table (and its size) to the SoC infrastructure. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm646x.c')
-rw-r--r--arch/arm/mach-davinci/dm646x.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c
index 3c61543c7cfa..299d8d9d26e0 100644
--- a/arch/arm/mach-davinci/dm646x.c
+++ b/arch/arm/mach-davinci/dm646x.c
@@ -327,6 +327,7 @@ static struct platform_device dm646x_emac_device = {
327 * reg offset mask mode 327 * reg offset mask mode
328 */ 328 */
329static const struct mux_config dm646x_pins[] = { 329static const struct mux_config dm646x_pins[] = {
330#ifdef CONFIG_DAVINCI_MUX
330MUX_CFG(DM646X, ATAEN, 0, 0, 1, 1, true) 331MUX_CFG(DM646X, ATAEN, 0, 0, 1, 1, true)
331 332
332MUX_CFG(DM646X, AUDCK1, 0, 29, 1, 0, false) 333MUX_CFG(DM646X, AUDCK1, 0, 29, 1, 0, false)
@@ -354,6 +355,7 @@ MUX_CFG(DM646X, PTSIMUX_PARALLEL, 0, 16, 3, 2, true)
354MUX_CFG(DM646X, PTSOMUX_SERIAL, 0, 18, 3, 3, true) 355MUX_CFG(DM646X, PTSOMUX_SERIAL, 0, 18, 3, 3, true)
355 356
356MUX_CFG(DM646X, PTSIMUX_SERIAL, 0, 16, 3, 3, true) 357MUX_CFG(DM646X, PTSIMUX_SERIAL, 0, 16, 3, 3, true)
358#endif
357}; 359};
358 360
359/*----------------------------------------------------------------------*/ 361/*----------------------------------------------------------------------*/
@@ -478,12 +480,14 @@ static struct davinci_soc_info davinci_soc_info_dm646x = {
478 .cpu_clks = dm646x_clks, 480 .cpu_clks = dm646x_clks,
479 .psc_bases = dm646x_psc_bases, 481 .psc_bases = dm646x_psc_bases,
480 .psc_bases_num = ARRAY_SIZE(dm646x_psc_bases), 482 .psc_bases_num = ARRAY_SIZE(dm646x_psc_bases),
483 .pinmux_base = IO_ADDRESS(DAVINCI_SYSTEM_MODULE_BASE),
484 .pinmux_pins = dm646x_pins,
485 .pinmux_pins_num = ARRAY_SIZE(dm646x_pins),
481}; 486};
482 487
483void __init dm646x_init(void) 488void __init dm646x_init(void)
484{ 489{
485 davinci_common_init(&davinci_soc_info_dm646x); 490 davinci_common_init(&davinci_soc_info_dm646x);
486 davinci_mux_register(dm646x_pins, ARRAY_SIZE(dm646x_pins));
487} 491}
488 492
489static int __init dm646x_init_devices(void) 493static int __init dm646x_init_devices(void)