diff options
author | Yi Li <yi.li@analog.com> | 2009-01-07 10:14:39 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:39 -0500 |
commit | 6a01f230339321292cf065551f8cf55361052461 (patch) | |
tree | 7ac2ac8fc9f05a7315ef6a7f6f0a387433c62c14 /arch/blackfin/mach-bf527 | |
parent | 5105432a3201e3f0e6c219cd0a74feee1e5e262b (diff) |
Blackfin arch: merge adeos blackfin part to arch/blackfin/
[Mike Frysinger <vapier.adi@gmail.com>:
- handle bf531/bf532/bf534/bf536 variants in ipipe.h
- cleanup IPIPE logic for bfin_set_irq_handler()
- cleanup ipipe asm code a bit and add missing ENDPROC()
- simplify IPIPE code in trap_c
- unify some of the IPIPE code and fix style
- simplify DO_IRQ_L1 handling with ipipe code
- revert IRQ_SW_INT# addition from ipipe merge
- remove duplicate get_{c,s}clk() prototypes
]
Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf527')
-rw-r--r-- | arch/blackfin/mach-bf527/Kconfig | 34 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h | 8 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/include/mach/irq.h | 32 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/ints-priority.c | 16 |
4 files changed, 45 insertions, 45 deletions
diff --git a/arch/blackfin/mach-bf527/Kconfig b/arch/blackfin/mach-bf527/Kconfig index 3cde4beeb214..8438ec6d6679 100644 --- a/arch/blackfin/mach-bf527/Kconfig +++ b/arch/blackfin/mach-bf527/Kconfig | |||
@@ -168,29 +168,29 @@ config IRQ_MAC_TX | |||
168 | config IRQ_PORTH_INTB | 168 | config IRQ_PORTH_INTB |
169 | int "IRQ_PORTH_INTB" | 169 | int "IRQ_PORTH_INTB" |
170 | default 11 | 170 | default 11 |
171 | config IRQ_TMR0 | 171 | config IRQ_TIMER0 |
172 | int "IRQ_TMR0" | 172 | int "IRQ_TIMER0" |
173 | default 12 | 173 | default 8 |
174 | config IRQ_TMR1 | 174 | config IRQ_TIMER1 |
175 | int "IRQ_TMR1" | 175 | int "IRQ_TIMER1" |
176 | default 12 | 176 | default 12 |
177 | config IRQ_TMR2 | 177 | config IRQ_TIMER2 |
178 | int "IRQ_TMR2" | 178 | int "IRQ_TIMER2" |
179 | default 12 | 179 | default 12 |
180 | config IRQ_TMR3 | 180 | config IRQ_TIMER3 |
181 | int "IRQ_TMR3" | 181 | int "IRQ_TIMER3" |
182 | default 12 | 182 | default 12 |
183 | config IRQ_TMR4 | 183 | config IRQ_TIMER4 |
184 | int "IRQ_TMR4" | 184 | int "IRQ_TIMER4" |
185 | default 12 | 185 | default 12 |
186 | config IRQ_TMR5 | 186 | config IRQ_TIMER5 |
187 | int "IRQ_TMR5" | 187 | int "IRQ_TIMER5" |
188 | default 12 | 188 | default 12 |
189 | config IRQ_TMR6 | 189 | config IRQ_TIMER6 |
190 | int "IRQ_TMR6" | 190 | int "IRQ_TIMER6" |
191 | default 12 | 191 | default 12 |
192 | config IRQ_TMR7 | 192 | config IRQ_TIMER7 |
193 | int "IRQ_TMR7" | 193 | int "IRQ_TIMER7" |
194 | default 12 | 194 | default 12 |
195 | config IRQ_PORTG_INTA | 195 | config IRQ_PORTG_INTA |
196 | int "IRQ_PORTG_INTA" | 196 | int "IRQ_PORTG_INTA" |
diff --git a/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h b/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h index 8a374c358edf..1fe76d8e0403 100644 --- a/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h +++ b/arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h | |||
@@ -1163,7 +1163,7 @@ static __inline__ void bfin_write_PLL_CTL(unsigned int val) | |||
1163 | if (val == bfin_read_PLL_CTL()) | 1163 | if (val == bfin_read_PLL_CTL()) |
1164 | return; | 1164 | return; |
1165 | 1165 | ||
1166 | local_irq_save(flags); | 1166 | local_irq_save_hw(flags); |
1167 | /* Enable the PLL Wakeup bit in SIC IWR */ | 1167 | /* Enable the PLL Wakeup bit in SIC IWR */ |
1168 | iwr0 = bfin_read32(SIC_IWR0); | 1168 | iwr0 = bfin_read32(SIC_IWR0); |
1169 | iwr1 = bfin_read32(SIC_IWR1); | 1169 | iwr1 = bfin_read32(SIC_IWR1); |
@@ -1177,7 +1177,7 @@ static __inline__ void bfin_write_PLL_CTL(unsigned int val) | |||
1177 | 1177 | ||
1178 | bfin_write32(SIC_IWR0, iwr0); | 1178 | bfin_write32(SIC_IWR0, iwr0); |
1179 | bfin_write32(SIC_IWR1, iwr1); | 1179 | bfin_write32(SIC_IWR1, iwr1); |
1180 | local_irq_restore(flags); | 1180 | local_irq_restore_hw(flags); |
1181 | } | 1181 | } |
1182 | 1182 | ||
1183 | /* Writing to VR_CTL initiates a PLL relock sequence. */ | 1183 | /* Writing to VR_CTL initiates a PLL relock sequence. */ |
@@ -1188,7 +1188,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) | |||
1188 | if (val == bfin_read_VR_CTL()) | 1188 | if (val == bfin_read_VR_CTL()) |
1189 | return; | 1189 | return; |
1190 | 1190 | ||
1191 | local_irq_save(flags); | 1191 | local_irq_save_hw(flags); |
1192 | /* Enable the PLL Wakeup bit in SIC IWR */ | 1192 | /* Enable the PLL Wakeup bit in SIC IWR */ |
1193 | iwr0 = bfin_read32(SIC_IWR0); | 1193 | iwr0 = bfin_read32(SIC_IWR0); |
1194 | iwr1 = bfin_read32(SIC_IWR1); | 1194 | iwr1 = bfin_read32(SIC_IWR1); |
@@ -1202,7 +1202,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) | |||
1202 | 1202 | ||
1203 | bfin_write32(SIC_IWR0, iwr0); | 1203 | bfin_write32(SIC_IWR0, iwr0); |
1204 | bfin_write32(SIC_IWR1, iwr1); | 1204 | bfin_write32(SIC_IWR1, iwr1); |
1205 | local_irq_restore(flags); | 1205 | local_irq_restore_hw(flags); |
1206 | } | 1206 | } |
1207 | 1207 | ||
1208 | #endif /* _CDEF_BF52X_H */ | 1208 | #endif /* _CDEF_BF52X_H */ |
diff --git a/arch/blackfin/mach-bf527/include/mach/irq.h b/arch/blackfin/mach-bf527/include/mach/irq.h index 4e2b3f2020e5..8ea660d8151f 100644 --- a/arch/blackfin/mach-bf527/include/mach/irq.h +++ b/arch/blackfin/mach-bf527/include/mach/irq.h | |||
@@ -96,14 +96,14 @@ | |||
96 | #define IRQ_MAC_TX BFIN_IRQ(30) /* DMA2 Channel (MAC TX/NAND) */ | 96 | #define IRQ_MAC_TX BFIN_IRQ(30) /* DMA2 Channel (MAC TX/NAND) */ |
97 | #define IRQ_NFC BFIN_IRQ(30) /* DMA2 Channel (MAC TX/NAND) */ | 97 | #define IRQ_NFC BFIN_IRQ(30) /* DMA2 Channel (MAC TX/NAND) */ |
98 | #define IRQ_PORTH_INTB BFIN_IRQ(31) /* Port H Interrupt B */ | 98 | #define IRQ_PORTH_INTB BFIN_IRQ(31) /* Port H Interrupt B */ |
99 | #define IRQ_TMR0 BFIN_IRQ(32) /* Timer 0 */ | 99 | #define IRQ_TIMER0 BFIN_IRQ(32) /* Timer 0 */ |
100 | #define IRQ_TMR1 BFIN_IRQ(33) /* Timer 1 */ | 100 | #define IRQ_TIMER1 BFIN_IRQ(33) /* Timer 1 */ |
101 | #define IRQ_TMR2 BFIN_IRQ(34) /* Timer 2 */ | 101 | #define IRQ_TIMER2 BFIN_IRQ(34) /* Timer 2 */ |
102 | #define IRQ_TMR3 BFIN_IRQ(35) /* Timer 3 */ | 102 | #define IRQ_TIMER3 BFIN_IRQ(35) /* Timer 3 */ |
103 | #define IRQ_TMR4 BFIN_IRQ(36) /* Timer 4 */ | 103 | #define IRQ_TIMER4 BFIN_IRQ(36) /* Timer 4 */ |
104 | #define IRQ_TMR5 BFIN_IRQ(37) /* Timer 5 */ | 104 | #define IRQ_TIMER5 BFIN_IRQ(37) /* Timer 5 */ |
105 | #define IRQ_TMR6 BFIN_IRQ(38) /* Timer 6 */ | 105 | #define IRQ_TIMER6 BFIN_IRQ(38) /* Timer 6 */ |
106 | #define IRQ_TMR7 BFIN_IRQ(39) /* Timer 7 */ | 106 | #define IRQ_TIMER7 BFIN_IRQ(39) /* Timer 7 */ |
107 | #define IRQ_PORTG_INTA BFIN_IRQ(40) /* Port G Interrupt A */ | 107 | #define IRQ_PORTG_INTA BFIN_IRQ(40) /* Port G Interrupt A */ |
108 | #define IRQ_PORTG_INTB BFIN_IRQ(41) /* Port G Interrupt B */ | 108 | #define IRQ_PORTG_INTB BFIN_IRQ(41) /* Port G Interrupt B */ |
109 | #define IRQ_MEM_DMA0 BFIN_IRQ(42) /* MDMA Stream 0 */ | 109 | #define IRQ_MEM_DMA0 BFIN_IRQ(42) /* MDMA Stream 0 */ |
@@ -227,14 +227,14 @@ | |||
227 | #define IRQ_PORTH_INTB_POS 28 | 227 | #define IRQ_PORTH_INTB_POS 28 |
228 | 228 | ||
229 | /* IAR4 BIT FIELDS */ | 229 | /* IAR4 BIT FIELDS */ |
230 | #define IRQ_TMR0_POS 0 | 230 | #define IRQ_TIMER0_POS 0 |
231 | #define IRQ_TMR1_POS 4 | 231 | #define IRQ_TIMER1_POS 4 |
232 | #define IRQ_TMR2_POS 8 | 232 | #define IRQ_TIMER2_POS 8 |
233 | #define IRQ_TMR3_POS 12 | 233 | #define IRQ_TIMER3_POS 12 |
234 | #define IRQ_TMR4_POS 16 | 234 | #define IRQ_TIMER4_POS 16 |
235 | #define IRQ_TMR5_POS 20 | 235 | #define IRQ_TIMER5_POS 20 |
236 | #define IRQ_TMR6_POS 24 | 236 | #define IRQ_TIMER6_POS 24 |
237 | #define IRQ_TMR7_POS 28 | 237 | #define IRQ_TIMER7_POS 28 |
238 | 238 | ||
239 | /* IAR5 BIT FIELDS */ | 239 | /* IAR5 BIT FIELDS */ |
240 | #define IRQ_PORTG_INTA_POS 0 | 240 | #define IRQ_PORTG_INTA_POS 0 |
diff --git a/arch/blackfin/mach-bf527/ints-priority.c b/arch/blackfin/mach-bf527/ints-priority.c index 8a2367403d2b..f8c8acd73e30 100644 --- a/arch/blackfin/mach-bf527/ints-priority.c +++ b/arch/blackfin/mach-bf527/ints-priority.c | |||
@@ -69,14 +69,14 @@ void __init program_IAR(void) | |||
69 | ((CONFIG_IRQ_MAC_TX - 7) << IRQ_MAC_TX_POS) | | 69 | ((CONFIG_IRQ_MAC_TX - 7) << IRQ_MAC_TX_POS) | |
70 | ((CONFIG_IRQ_PORTH_INTB - 7) << IRQ_PORTH_INTB_POS)); | 70 | ((CONFIG_IRQ_PORTH_INTB - 7) << IRQ_PORTH_INTB_POS)); |
71 | 71 | ||
72 | bfin_write_SIC_IAR4(((CONFIG_IRQ_TMR0 - 7) << IRQ_TMR0_POS) | | 72 | bfin_write_SIC_IAR4(((CONFIG_IRQ_TIMER0 - 7) << IRQ_TIMER0_POS) | |
73 | ((CONFIG_IRQ_TMR1 - 7) << IRQ_TMR1_POS) | | 73 | ((CONFIG_IRQ_TIMER1 - 7) << IRQ_TIMER1_POS) | |
74 | ((CONFIG_IRQ_TMR2 - 7) << IRQ_TMR2_POS) | | 74 | ((CONFIG_IRQ_TIMER2 - 7) << IRQ_TIMER2_POS) | |
75 | ((CONFIG_IRQ_TMR3 - 7) << IRQ_TMR3_POS) | | 75 | ((CONFIG_IRQ_TIMER3 - 7) << IRQ_TIMER3_POS) | |
76 | ((CONFIG_IRQ_TMR4 - 7) << IRQ_TMR4_POS) | | 76 | ((CONFIG_IRQ_TIMER4 - 7) << IRQ_TIMER4_POS) | |
77 | ((CONFIG_IRQ_TMR5 - 7) << IRQ_TMR5_POS) | | 77 | ((CONFIG_IRQ_TIMER5 - 7) << IRQ_TIMER5_POS) | |
78 | ((CONFIG_IRQ_TMR6 - 7) << IRQ_TMR6_POS) | | 78 | ((CONFIG_IRQ_TIMER6 - 7) << IRQ_TIMER6_POS) | |
79 | ((CONFIG_IRQ_TMR7 - 7) << IRQ_TMR7_POS)); | 79 | ((CONFIG_IRQ_TIMER7 - 7) << IRQ_TIMER7_POS)); |
80 | 80 | ||
81 | bfin_write_SIC_IAR5(((CONFIG_IRQ_PORTG_INTA - 7) << IRQ_PORTG_INTA_POS) | | 81 | bfin_write_SIC_IAR5(((CONFIG_IRQ_PORTG_INTA - 7) << IRQ_PORTG_INTA_POS) | |
82 | ((CONFIG_IRQ_PORTG_INTB - 7) << IRQ_PORTG_INTB_POS) | | 82 | ((CONFIG_IRQ_PORTG_INTB - 7) << IRQ_PORTG_INTB_POS) | |