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-bf537 | |
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-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/Kconfig | 34 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/include/mach/cdefBF534.h | 8 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/include/mach/irq.h | 32 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/ints-priority.c | 16 |
4 files changed, 45 insertions, 45 deletions
diff --git a/arch/blackfin/mach-bf537/Kconfig b/arch/blackfin/mach-bf537/Kconfig index 8255374c04aa..bbc08fd4f122 100644 --- a/arch/blackfin/mach-bf537/Kconfig +++ b/arch/blackfin/mach-bf537/Kconfig | |||
@@ -64,29 +64,29 @@ config IRQ_MAC_RX | |||
64 | config IRQ_MAC_TX | 64 | config IRQ_MAC_TX |
65 | int "IRQ_MAC_TX" | 65 | int "IRQ_MAC_TX" |
66 | default 11 | 66 | default 11 |
67 | config IRQ_TMR0 | 67 | config IRQ_TIMER0 |
68 | int "IRQ_TMR0" | 68 | int "IRQ_TIMER0" |
69 | default 12 | 69 | default 8 |
70 | config IRQ_TMR1 | 70 | config IRQ_TIMER1 |
71 | int "IRQ_TMR1" | 71 | int "IRQ_TIMER1" |
72 | default 12 | 72 | default 12 |
73 | config IRQ_TMR2 | 73 | config IRQ_TIMER2 |
74 | int "IRQ_TMR2" | 74 | int "IRQ_TIMER2" |
75 | default 12 | 75 | default 12 |
76 | config IRQ_TMR3 | 76 | config IRQ_TIMER3 |
77 | int "IRQ_TMR3" | 77 | int "IRQ_TIMER3" |
78 | default 12 | 78 | default 12 |
79 | config IRQ_TMR4 | 79 | config IRQ_TIMER4 |
80 | int "IRQ_TMR4" | 80 | int "IRQ_TIMER4" |
81 | default 12 | 81 | default 12 |
82 | config IRQ_TMR5 | 82 | config IRQ_TIMER5 |
83 | int "IRQ_TMR5" | 83 | int "IRQ_TIMER5" |
84 | default 12 | 84 | default 12 |
85 | config IRQ_TMR6 | 85 | config IRQ_TIMER6 |
86 | int "IRQ_TMR6" | 86 | int "IRQ_TIMER6" |
87 | default 12 | 87 | default 12 |
88 | config IRQ_TMR7 | 88 | config IRQ_TIMER7 |
89 | int "IRQ_TMR7" | 89 | int "IRQ_TIMER7" |
90 | default 12 | 90 | default 12 |
91 | config IRQ_PROG_INTA | 91 | config IRQ_PROG_INTA |
92 | int "IRQ_PROG_INTA" | 92 | int "IRQ_PROG_INTA" |
diff --git a/arch/blackfin/mach-bf537/include/mach/cdefBF534.h b/arch/blackfin/mach-bf537/include/mach/cdefBF534.h index f3416923be69..5f8b5f845be6 100644 --- a/arch/blackfin/mach-bf537/include/mach/cdefBF534.h +++ b/arch/blackfin/mach-bf537/include/mach/cdefBF534.h | |||
@@ -1783,7 +1783,7 @@ static __inline__ void bfin_write_PLL_CTL(unsigned int val) | |||
1783 | if (val == bfin_read_PLL_CTL()) | 1783 | if (val == bfin_read_PLL_CTL()) |
1784 | return; | 1784 | return; |
1785 | 1785 | ||
1786 | local_irq_save(flags); | 1786 | local_irq_save_hw(flags); |
1787 | /* Enable the PLL Wakeup bit in SIC IWR */ | 1787 | /* Enable the PLL Wakeup bit in SIC IWR */ |
1788 | iwr = bfin_read32(SIC_IWR); | 1788 | iwr = bfin_read32(SIC_IWR); |
1789 | /* Only allow PPL Wakeup) */ | 1789 | /* Only allow PPL Wakeup) */ |
@@ -1794,7 +1794,7 @@ static __inline__ void bfin_write_PLL_CTL(unsigned int val) | |||
1794 | asm("IDLE;"); | 1794 | asm("IDLE;"); |
1795 | 1795 | ||
1796 | bfin_write32(SIC_IWR, iwr); | 1796 | bfin_write32(SIC_IWR, iwr); |
1797 | local_irq_restore(flags); | 1797 | local_irq_restore_hw(flags); |
1798 | } | 1798 | } |
1799 | 1799 | ||
1800 | /* Writing to VR_CTL initiates a PLL relock sequence. */ | 1800 | /* Writing to VR_CTL initiates a PLL relock sequence. */ |
@@ -1805,7 +1805,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) | |||
1805 | if (val == bfin_read_VR_CTL()) | 1805 | if (val == bfin_read_VR_CTL()) |
1806 | return; | 1806 | return; |
1807 | 1807 | ||
1808 | local_irq_save(flags); | 1808 | local_irq_save_hw(flags); |
1809 | /* Enable the PLL Wakeup bit in SIC IWR */ | 1809 | /* Enable the PLL Wakeup bit in SIC IWR */ |
1810 | iwr = bfin_read32(SIC_IWR); | 1810 | iwr = bfin_read32(SIC_IWR); |
1811 | /* Only allow PPL Wakeup) */ | 1811 | /* Only allow PPL Wakeup) */ |
@@ -1816,7 +1816,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) | |||
1816 | asm("IDLE;"); | 1816 | asm("IDLE;"); |
1817 | 1817 | ||
1818 | bfin_write32(SIC_IWR, iwr); | 1818 | bfin_write32(SIC_IWR, iwr); |
1819 | local_irq_restore(flags); | 1819 | local_irq_restore_hw(flags); |
1820 | } | 1820 | } |
1821 | 1821 | ||
1822 | #endif /* _CDEF_BF534_H */ | 1822 | #endif /* _CDEF_BF534_H */ |
diff --git a/arch/blackfin/mach-bf537/include/mach/irq.h b/arch/blackfin/mach-bf537/include/mach/irq.h index 2e68a8a1e730..b2a71d5d4e5f 100644 --- a/arch/blackfin/mach-bf537/include/mach/irq.h +++ b/arch/blackfin/mach-bf537/include/mach/irq.h | |||
@@ -82,14 +82,14 @@ | |||
82 | #define IRQ_CAN_TX 23 /*CAN Transmit Interrupt */ | 82 | #define IRQ_CAN_TX 23 /*CAN Transmit Interrupt */ |
83 | #define IRQ_MAC_RX 24 /*DMA1 (Ethernet RX) Interrupt */ | 83 | #define IRQ_MAC_RX 24 /*DMA1 (Ethernet RX) Interrupt */ |
84 | #define IRQ_MAC_TX 25 /*DMA2 (Ethernet TX) Interrupt */ | 84 | #define IRQ_MAC_TX 25 /*DMA2 (Ethernet TX) Interrupt */ |
85 | #define IRQ_TMR0 26 /*Timer 0 */ | 85 | #define IRQ_TIMER0 26 /*Timer 0 */ |
86 | #define IRQ_TMR1 27 /*Timer 1 */ | 86 | #define IRQ_TIMER1 27 /*Timer 1 */ |
87 | #define IRQ_TMR2 28 /*Timer 2 */ | 87 | #define IRQ_TIMER2 28 /*Timer 2 */ |
88 | #define IRQ_TMR3 29 /*Timer 3 */ | 88 | #define IRQ_TIMER3 29 /*Timer 3 */ |
89 | #define IRQ_TMR4 30 /*Timer 4 */ | 89 | #define IRQ_TIMER4 30 /*Timer 4 */ |
90 | #define IRQ_TMR5 31 /*Timer 5 */ | 90 | #define IRQ_TIMER5 31 /*Timer 5 */ |
91 | #define IRQ_TMR6 32 /*Timer 6 */ | 91 | #define IRQ_TIMER6 32 /*Timer 6 */ |
92 | #define IRQ_TMR7 33 /*Timer 7 */ | 92 | #define IRQ_TIMER7 33 /*Timer 7 */ |
93 | #define IRQ_PROG_INTA 34 /* PF Ports F&G (PF15:0) Interrupt A */ | 93 | #define IRQ_PROG_INTA 34 /* PF Ports F&G (PF15:0) Interrupt A */ |
94 | #define IRQ_PORTG_INTB 35 /* PF Port G (PF15:0) Interrupt B */ | 94 | #define IRQ_PORTG_INTB 35 /* PF Port G (PF15:0) Interrupt B */ |
95 | #define IRQ_MEM_DMA0 36 /*(Memory DMA Stream 0) */ | 95 | #define IRQ_MEM_DMA0 36 /*(Memory DMA Stream 0) */ |
@@ -195,16 +195,16 @@ | |||
195 | #define IRQ_CAN_TX_POS 0 | 195 | #define IRQ_CAN_TX_POS 0 |
196 | #define IRQ_MAC_RX_POS 4 | 196 | #define IRQ_MAC_RX_POS 4 |
197 | #define IRQ_MAC_TX_POS 8 | 197 | #define IRQ_MAC_TX_POS 8 |
198 | #define IRQ_TMR0_POS 12 | 198 | #define IRQ_TIMER0_POS 12 |
199 | #define IRQ_TMR1_POS 16 | 199 | #define IRQ_TIMER1_POS 16 |
200 | #define IRQ_TMR2_POS 20 | 200 | #define IRQ_TIMER2_POS 20 |
201 | #define IRQ_TMR3_POS 24 | 201 | #define IRQ_TIMER3_POS 24 |
202 | #define IRQ_TMR4_POS 28 | 202 | #define IRQ_TIMER4_POS 28 |
203 | 203 | ||
204 | /* IAR3 BIT FIELDS*/ | 204 | /* IAR3 BIT FIELDS*/ |
205 | #define IRQ_TMR5_POS 0 | 205 | #define IRQ_TIMER5_POS 0 |
206 | #define IRQ_TMR6_POS 4 | 206 | #define IRQ_TIMER6_POS 4 |
207 | #define IRQ_TMR7_POS 8 | 207 | #define IRQ_TIMER7_POS 8 |
208 | #define IRQ_PROG_INTA_POS 12 | 208 | #define IRQ_PROG_INTA_POS 12 |
209 | #define IRQ_PORTG_INTB_POS 16 | 209 | #define IRQ_PORTG_INTB_POS 16 |
210 | #define IRQ_MEM_DMA0_POS 20 | 210 | #define IRQ_MEM_DMA0_POS 20 |
diff --git a/arch/blackfin/mach-bf537/ints-priority.c b/arch/blackfin/mach-bf537/ints-priority.c index b1300b3f1812..51c48087e03b 100644 --- a/arch/blackfin/mach-bf537/ints-priority.c +++ b/arch/blackfin/mach-bf537/ints-priority.c | |||
@@ -55,15 +55,15 @@ void __init program_IAR(void) | |||
55 | bfin_write_SIC_IAR2(((CONFIG_IRQ_CAN_TX - 7) << IRQ_CAN_TX_POS) | | 55 | bfin_write_SIC_IAR2(((CONFIG_IRQ_CAN_TX - 7) << IRQ_CAN_TX_POS) | |
56 | ((CONFIG_IRQ_MAC_RX - 7) << IRQ_MAC_RX_POS) | | 56 | ((CONFIG_IRQ_MAC_RX - 7) << IRQ_MAC_RX_POS) | |
57 | ((CONFIG_IRQ_MAC_TX - 7) << IRQ_MAC_TX_POS) | | 57 | ((CONFIG_IRQ_MAC_TX - 7) << IRQ_MAC_TX_POS) | |
58 | ((CONFIG_IRQ_TMR0 - 7) << IRQ_TMR0_POS) | | 58 | ((CONFIG_IRQ_TIMER0 - 7) << IRQ_TIMER0_POS) | |
59 | ((CONFIG_IRQ_TMR1 - 7) << IRQ_TMR1_POS) | | 59 | ((CONFIG_IRQ_TIMER1 - 7) << IRQ_TIMER1_POS) | |
60 | ((CONFIG_IRQ_TMR2 - 7) << IRQ_TMR2_POS) | | 60 | ((CONFIG_IRQ_TIMER2 - 7) << IRQ_TIMER2_POS) | |
61 | ((CONFIG_IRQ_TMR3 - 7) << IRQ_TMR3_POS) | | 61 | ((CONFIG_IRQ_TIMER3 - 7) << IRQ_TIMER3_POS) | |
62 | ((CONFIG_IRQ_TMR4 - 7) << IRQ_TMR4_POS)); | 62 | ((CONFIG_IRQ_TIMER4 - 7) << IRQ_TIMER4_POS)); |
63 | 63 | ||
64 | bfin_write_SIC_IAR3(((CONFIG_IRQ_TMR5 - 7) << IRQ_TMR5_POS) | | 64 | bfin_write_SIC_IAR3(((CONFIG_IRQ_TIMER5 - 7) << IRQ_TIMER5_POS) | |
65 | ((CONFIG_IRQ_TMR6 - 7) << IRQ_TMR6_POS) | | 65 | ((CONFIG_IRQ_TIMER6 - 7) << IRQ_TIMER6_POS) | |
66 | ((CONFIG_IRQ_TMR7 - 7) << IRQ_TMR7_POS) | | 66 | ((CONFIG_IRQ_TIMER7 - 7) << IRQ_TIMER7_POS) | |
67 | ((CONFIG_IRQ_PROG_INTA - 7) << IRQ_PROG_INTA_POS) | | 67 | ((CONFIG_IRQ_PROG_INTA - 7) << IRQ_PROG_INTA_POS) | |
68 | ((CONFIG_IRQ_PORTG_INTB - 7) << IRQ_PORTG_INTB_POS) | | 68 | ((CONFIG_IRQ_PORTG_INTB - 7) << IRQ_PORTG_INTB_POS) | |
69 | ((CONFIG_IRQ_MEM_DMA0 - 7) << IRQ_MEM_DMA0_POS) | | 69 | ((CONFIG_IRQ_MEM_DMA0 - 7) << IRQ_MEM_DMA0_POS) | |