diff options
author | Mark A. Greer <mgreer@mvista.com> | 2009-04-15 15:39:48 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-26 11:17:16 -0400 |
commit | 0e585952ac6a06b3c77d6b8eadb9c359766a700d (patch) | |
tree | d8216964e80d9cd3d86b5aa9cb25f035efa26bef /arch/arm/mach-davinci/dm644x.c | |
parent | d81d188cafecbc9e01df51527ac4c84a5b19e033 (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/dm644x.c')
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 7b15faba56ed..b7c17dd6795b 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -346,6 +346,7 @@ static struct platform_device dm644x_emac_device = { | |||
346 | * reg offset mask mode | 346 | * reg offset mask mode |
347 | */ | 347 | */ |
348 | static const struct mux_config dm644x_pins[] = { | 348 | static const struct mux_config dm644x_pins[] = { |
349 | #ifdef CONFIG_DAVINCI_MUX | ||
349 | MUX_CFG(DM644X, HDIREN, 0, 16, 1, 1, true) | 350 | MUX_CFG(DM644X, HDIREN, 0, 16, 1, 1, true) |
350 | MUX_CFG(DM644X, ATAEN, 0, 17, 1, 1, true) | 351 | MUX_CFG(DM644X, ATAEN, 0, 17, 1, 1, true) |
351 | MUX_CFG(DM644X, ATAEN_DISABLE, 0, 17, 1, 0, true) | 352 | MUX_CFG(DM644X, ATAEN_DISABLE, 0, 17, 1, 0, true) |
@@ -386,6 +387,7 @@ MUX_CFG(DM644X, RGB666, 0, 22, 1, 1, true) | |||
386 | 387 | ||
387 | MUX_CFG(DM644X, LOEEN, 0, 24, 1, 1, true) | 388 | MUX_CFG(DM644X, LOEEN, 0, 24, 1, 1, true) |
388 | MUX_CFG(DM644X, LFLDEN, 0, 25, 1, 1, false) | 389 | MUX_CFG(DM644X, LFLDEN, 0, 25, 1, 1, false) |
390 | #endif | ||
389 | }; | 391 | }; |
390 | 392 | ||
391 | /*----------------------------------------------------------------------*/ | 393 | /*----------------------------------------------------------------------*/ |
@@ -498,12 +500,14 @@ static struct davinci_soc_info davinci_soc_info_dm644x = { | |||
498 | .cpu_clks = dm644x_clks, | 500 | .cpu_clks = dm644x_clks, |
499 | .psc_bases = dm644x_psc_bases, | 501 | .psc_bases = dm644x_psc_bases, |
500 | .psc_bases_num = ARRAY_SIZE(dm644x_psc_bases), | 502 | .psc_bases_num = ARRAY_SIZE(dm644x_psc_bases), |
503 | .pinmux_base = IO_ADDRESS(DAVINCI_SYSTEM_MODULE_BASE), | ||
504 | .pinmux_pins = dm644x_pins, | ||
505 | .pinmux_pins_num = ARRAY_SIZE(dm644x_pins), | ||
501 | }; | 506 | }; |
502 | 507 | ||
503 | void __init dm644x_init(void) | 508 | void __init dm644x_init(void) |
504 | { | 509 | { |
505 | davinci_common_init(&davinci_soc_info_dm644x); | 510 | davinci_common_init(&davinci_soc_info_dm644x); |
506 | davinci_mux_register(dm644x_pins, ARRAY_SIZE(dm644x_pins)); | ||
507 | } | 511 | } |
508 | 512 | ||
509 | static int __init dm644x_init_devices(void) | 513 | static int __init dm644x_init_devices(void) |