diff options
author | Meihui Fan <mhfan@hhcn.com> | 2008-04-22 20:53:15 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-04-22 20:53:15 -0400 |
commit | 6eceb0d4da10df9301e27bcec7a9b927e5047251 (patch) | |
tree | 16d5d592266f48b4e5abf0a30a833f98eca2331d /arch/blackfin | |
parent | a8a46a269e05190d18e4e36f51477d59bd0b29f6 (diff) |
[Blackfin] arch: add support for the rest of the gptimers on the BF54x
Signed-off-by: Meihui Fan <mhfan@hhcn.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/kernel/gptimers.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/arch/blackfin/kernel/gptimers.c b/arch/blackfin/kernel/gptimers.c index 1904d8b53328..e698554895a7 100644 --- a/arch/blackfin/kernel/gptimers.c +++ b/arch/blackfin/kernel/gptimers.c | |||
@@ -52,12 +52,14 @@ static volatile GPTIMER_timer_regs *const timer_regs[MAX_BLACKFIN_GPTIMERS] = | |||
52 | (GPTIMER_timer_regs *)TIMER5_CONFIG, | 52 | (GPTIMER_timer_regs *)TIMER5_CONFIG, |
53 | (GPTIMER_timer_regs *)TIMER6_CONFIG, | 53 | (GPTIMER_timer_regs *)TIMER6_CONFIG, |
54 | (GPTIMER_timer_regs *)TIMER7_CONFIG, | 54 | (GPTIMER_timer_regs *)TIMER7_CONFIG, |
55 | #endif | 55 | # if (MAX_BLACKFIN_GPTIMERS > 8) |
56 | #if (MAX_BLACKFIN_GPTIMERS > 8) | ||
57 | (GPTIMER_timer_regs *)TIMER8_CONFIG, | 56 | (GPTIMER_timer_regs *)TIMER8_CONFIG, |
58 | (GPTIMER_timer_regs *)TIMER9_CONFIG, | 57 | (GPTIMER_timer_regs *)TIMER9_CONFIG, |
59 | (GPTIMER_timer_regs *)TIMER10_CONFIG, | 58 | (GPTIMER_timer_regs *)TIMER10_CONFIG, |
59 | # if (MAX_BLACKFIN_GPTIMERS > 11) | ||
60 | (GPTIMER_timer_regs *)TIMER11_CONFIG, | 60 | (GPTIMER_timer_regs *)TIMER11_CONFIG, |
61 | # endif | ||
62 | # endif | ||
61 | #endif | 63 | #endif |
62 | }; | 64 | }; |
63 | 65 | ||
@@ -80,12 +82,14 @@ static uint32_t const trun_mask[MAX_BLACKFIN_GPTIMERS] = | |||
80 | TIMER_STATUS_TRUN5, | 82 | TIMER_STATUS_TRUN5, |
81 | TIMER_STATUS_TRUN6, | 83 | TIMER_STATUS_TRUN6, |
82 | TIMER_STATUS_TRUN7, | 84 | TIMER_STATUS_TRUN7, |
83 | #endif | 85 | # if (MAX_BLACKFIN_GPTIMERS > 8) |
84 | #if (MAX_BLACKFIN_GPTIMERS > 8) | ||
85 | TIMER_STATUS_TRUN8, | 86 | TIMER_STATUS_TRUN8, |
86 | TIMER_STATUS_TRUN9, | 87 | TIMER_STATUS_TRUN9, |
87 | TIMER_STATUS_TRUN10, | 88 | TIMER_STATUS_TRUN10, |
89 | # if (MAX_BLACKFIN_GPTIMERS > 11) | ||
88 | TIMER_STATUS_TRUN11, | 90 | TIMER_STATUS_TRUN11, |
91 | # endif | ||
92 | # endif | ||
89 | #endif | 93 | #endif |
90 | }; | 94 | }; |
91 | 95 | ||
@@ -100,12 +104,14 @@ static uint32_t const tovf_mask[MAX_BLACKFIN_GPTIMERS] = | |||
100 | TIMER_STATUS_TOVF5, | 104 | TIMER_STATUS_TOVF5, |
101 | TIMER_STATUS_TOVF6, | 105 | TIMER_STATUS_TOVF6, |
102 | TIMER_STATUS_TOVF7, | 106 | TIMER_STATUS_TOVF7, |
103 | #endif | 107 | # if (MAX_BLACKFIN_GPTIMERS > 8) |
104 | #if (MAX_BLACKFIN_GPTIMERS > 8) | ||
105 | TIMER_STATUS_TOVF8, | 108 | TIMER_STATUS_TOVF8, |
106 | TIMER_STATUS_TOVF9, | 109 | TIMER_STATUS_TOVF9, |
107 | TIMER_STATUS_TOVF10, | 110 | TIMER_STATUS_TOVF10, |
111 | # if (MAX_BLACKFIN_GPTIMERS > 11) | ||
108 | TIMER_STATUS_TOVF11, | 112 | TIMER_STATUS_TOVF11, |
113 | # endif | ||
114 | # endif | ||
109 | #endif | 115 | #endif |
110 | }; | 116 | }; |
111 | 117 | ||
@@ -120,12 +126,14 @@ static uint32_t const timil_mask[MAX_BLACKFIN_GPTIMERS] = | |||
120 | TIMER_STATUS_TIMIL5, | 126 | TIMER_STATUS_TIMIL5, |
121 | TIMER_STATUS_TIMIL6, | 127 | TIMER_STATUS_TIMIL6, |
122 | TIMER_STATUS_TIMIL7, | 128 | TIMER_STATUS_TIMIL7, |
123 | #endif | 129 | # if (MAX_BLACKFIN_GPTIMERS > 8) |
124 | #if (MAX_BLACKFIN_GPTIMERS > 8) | ||
125 | TIMER_STATUS_TIMIL8, | 130 | TIMER_STATUS_TIMIL8, |
126 | TIMER_STATUS_TIMIL9, | 131 | TIMER_STATUS_TIMIL9, |
127 | TIMER_STATUS_TIMIL10, | 132 | TIMER_STATUS_TIMIL10, |
133 | # if (MAX_BLACKFIN_GPTIMERS > 11) | ||
128 | TIMER_STATUS_TIMIL11, | 134 | TIMER_STATUS_TIMIL11, |
135 | # endif | ||
136 | # endif | ||
129 | #endif | 137 | #endif |
130 | }; | 138 | }; |
131 | 139 | ||