diff options
author | Sudhakar Rajashekhara <sudhakar.raj@ti.com> | 2009-07-16 05:45:32 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-08-26 03:57:02 -0400 |
commit | c96b56c53fb76c540a1a8103c7594859db4351dd (patch) | |
tree | 45495df6f3b0c460d7745a62575f67c5b09f8c75 /arch/arm/mach-davinci/mux.c | |
parent | 2259bbd460c5c15567e2e311d0ab0fe763b40031 (diff) |
davinci: Rearrange the da830/omap-l137 macros and functions
Rearrange the PINMUX macros and pinmux_setup function which
are common between da830/omap-l137 and da850/omap-l138.
Also, replace the da830 string in function names to da8xx.
Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/mux.c')
-rw-r--r-- | arch/arm/mach-davinci/mux.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/mux.c b/arch/arm/mach-davinci/mux.c index d310f579aa85..898905e48946 100644 --- a/arch/arm/mach-davinci/mux.c +++ b/arch/arm/mach-davinci/mux.c | |||
@@ -91,3 +91,17 @@ int __init_or_module davinci_cfg_reg(const unsigned long index) | |||
91 | return 0; | 91 | return 0; |
92 | } | 92 | } |
93 | EXPORT_SYMBOL(davinci_cfg_reg); | 93 | EXPORT_SYMBOL(davinci_cfg_reg); |
94 | |||
95 | int da8xx_pinmux_setup(const short pins[]) | ||
96 | { | ||
97 | int i, error = -EINVAL; | ||
98 | |||
99 | if (pins) | ||
100 | for (i = 0; pins[i] >= 0; i++) { | ||
101 | error = davinci_cfg_reg(pins[i]); | ||
102 | if (error) | ||
103 | break; | ||
104 | } | ||
105 | |||
106 | return error; | ||
107 | } | ||