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/da830.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/da830.c')
-rw-r--r-- | arch/arm/mach-davinci/da830.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index 999f69c9372b..3a9b6346c310 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c | |||
@@ -428,27 +428,6 @@ static struct davinci_clk da830_clks[] = { | |||
428 | CLK(NULL, NULL, NULL), | 428 | CLK(NULL, NULL, NULL), |
429 | }; | 429 | }; |
430 | 430 | ||
431 | #define PINMUX0 0x00 | ||
432 | #define PINMUX1 0x04 | ||
433 | #define PINMUX2 0x08 | ||
434 | #define PINMUX3 0x0c | ||
435 | #define PINMUX4 0x10 | ||
436 | #define PINMUX5 0x14 | ||
437 | #define PINMUX6 0x18 | ||
438 | #define PINMUX7 0x1c | ||
439 | #define PINMUX8 0x20 | ||
440 | #define PINMUX9 0x24 | ||
441 | #define PINMUX10 0x28 | ||
442 | #define PINMUX11 0x2c | ||
443 | #define PINMUX12 0x30 | ||
444 | #define PINMUX13 0x34 | ||
445 | #define PINMUX14 0x38 | ||
446 | #define PINMUX15 0x3c | ||
447 | #define PINMUX16 0x40 | ||
448 | #define PINMUX17 0x44 | ||
449 | #define PINMUX18 0x48 | ||
450 | #define PINMUX19 0x4c | ||
451 | |||
452 | /* | 431 | /* |
453 | * Device specific mux setup | 432 | * Device specific mux setup |
454 | * | 433 | * |
@@ -1036,20 +1015,6 @@ const short da830_eqep1_pins[] __initdata = { | |||
1036 | -1 | 1015 | -1 |
1037 | }; | 1016 | }; |
1038 | 1017 | ||
1039 | int da830_pinmux_setup(const short pins[]) | ||
1040 | { | ||
1041 | int i, error = -EINVAL; | ||
1042 | |||
1043 | if (pins) | ||
1044 | for (i = 0; pins[i] >= 0; i++) { | ||
1045 | error = davinci_cfg_reg(pins[i]); | ||
1046 | if (error) | ||
1047 | break; | ||
1048 | } | ||
1049 | |||
1050 | return error; | ||
1051 | } | ||
1052 | |||
1053 | /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ | 1018 | /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ |
1054 | static u8 da830_default_priorities[DA830_N_CP_INTC_IRQ] = { | 1019 | static u8 da830_default_priorities[DA830_N_CP_INTC_IRQ] = { |
1055 | [IRQ_DA8XX_COMMTX] = 7, | 1020 | [IRQ_DA8XX_COMMTX] = 7, |