aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <michael.frysinger@analog.com>2007-07-24 23:57:42 -0400
committerBryan Wu <bryan.wu@analog.com>2007-07-24 23:57:42 -0400
commitd5148ffa600e6a655b458bedc593020e0574f967 (patch)
treee53d7e8c7e18eef3d4fe3077b3f68005d16f9bf0
parent60e9356d770ca3622fe5e84680b78fc376e53fbf (diff)
Blackfin arch: use the [CS]SYNC() macros which include anomaly workarounds rather than __builtin_bfin_[cs]sync()
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
-rw-r--r--arch/blackfin/oprofile/op_blackfin.h8
-rw-r--r--drivers/serial/bfin_5xx.c14
-rw-r--r--include/asm-blackfin/mach-bf533/cdefBF532.h2
-rw-r--r--include/asm-blackfin/mach-bf537/cdefBF534.h2
-rw-r--r--include/asm-blackfin/mach-bf548/cdefBF54x_base.h2
-rw-r--r--include/asm-blackfin/mach-bf561/cdefBF561.h2
6 files changed, 15 insertions, 15 deletions
diff --git a/arch/blackfin/oprofile/op_blackfin.h b/arch/blackfin/oprofile/op_blackfin.h
index f88f446c814f..05dd08c9d154 100644
--- a/arch/blackfin/oprofile/op_blackfin.h
+++ b/arch/blackfin/oprofile/op_blackfin.h
@@ -68,7 +68,7 @@ static inline unsigned int ctr_read(void)
68 unsigned int tmp; 68 unsigned int tmp;
69 69
70 tmp = bfin_read_PFCTL(); 70 tmp = bfin_read_PFCTL();
71 __builtin_bfin_csync(); 71 CSYNC();
72 72
73 return tmp; 73 return tmp;
74} 74}
@@ -76,21 +76,21 @@ static inline unsigned int ctr_read(void)
76static inline void ctr_write(unsigned int val) 76static inline void ctr_write(unsigned int val)
77{ 77{
78 bfin_write_PFCTL(val); 78 bfin_write_PFCTL(val);
79 __builtin_bfin_csync(); 79 CSYNC();
80} 80}
81 81
82static inline void count_read(unsigned int *count) 82static inline void count_read(unsigned int *count)
83{ 83{
84 count[0] = bfin_read_PFCNTR0(); 84 count[0] = bfin_read_PFCNTR0();
85 count[1] = bfin_read_PFCNTR1(); 85 count[1] = bfin_read_PFCNTR1();
86 __builtin_bfin_csync(); 86 CSYNC();
87} 87}
88 88
89static inline void count_write(unsigned int *count) 89static inline void count_write(unsigned int *count)
90{ 90{
91 bfin_write_PFCNTR0(count[0]); 91 bfin_write_PFCNTR0(count[0]);
92 bfin_write_PFCNTR1(count[1]); 92 bfin_write_PFCNTR1(count[1]);
93 __builtin_bfin_csync(); 93 CSYNC();
94} 94}
95 95
96extern int pm_overflow_handler(int irq, struct pt_regs *regs); 96extern int pm_overflow_handler(int irq, struct pt_regs *regs);
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index 66c92bc36f3d..1e79ee605d93 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -173,12 +173,12 @@ void kgdb_put_debug_char(int chr)
173 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; 173 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT];
174 174
175 while (!(UART_GET_LSR(uart) & THRE)) { 175 while (!(UART_GET_LSR(uart) & THRE)) {
176 __builtin_bfin_ssync(); 176 SSYNC();
177 } 177 }
178 UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB)); 178 UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB));
179 __builtin_bfin_ssync(); 179 SSYNC();
180 UART_PUT_CHAR(uart, (unsigned char)chr); 180 UART_PUT_CHAR(uart, (unsigned char)chr);
181 __builtin_bfin_ssync(); 181 SSYNC();
182} 182}
183 183
184int kgdb_get_debug_char(void) 184int kgdb_get_debug_char(void)
@@ -192,12 +192,12 @@ int kgdb_get_debug_char(void)
192 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; 192 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT];
193 193
194 while(!(UART_GET_LSR(uart) & DR)) { 194 while(!(UART_GET_LSR(uart) & DR)) {
195 __builtin_bfin_ssync(); 195 SSYNC();
196 } 196 }
197 UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB)); 197 UART_PUT_LCR(uart, UART_GET_LCR(uart)&(~DLAB));
198 __builtin_bfin_ssync(); 198 SSYNC();
199 chr = UART_GET_CHAR(uart); 199 chr = UART_GET_CHAR(uart);
200 __builtin_bfin_ssync(); 200 SSYNC();
201 201
202 return chr; 202 return chr;
203} 203}
@@ -1203,7 +1203,7 @@ static int __init bfin_serial_init(void)
1203 IRQF_DISABLED, "BFIN_UART_RX", uart); 1203 IRQF_DISABLED, "BFIN_UART_RX", uart);
1204 pr_info("Request irq for kgdb uart port\n"); 1204 pr_info("Request irq for kgdb uart port\n");
1205 UART_PUT_IER(uart, UART_GET_IER(uart) | ERBFI); 1205 UART_PUT_IER(uart, UART_GET_IER(uart) | ERBFI);
1206 __builtin_bfin_ssync(); 1206 SSYNC();
1207 t.c_cflag = CS8|B57600; 1207 t.c_cflag = CS8|B57600;
1208 t.c_iflag = 0; 1208 t.c_iflag = 0;
1209 t.c_oflag = 0; 1209 t.c_oflag = 0;
diff --git a/include/asm-blackfin/mach-bf533/cdefBF532.h b/include/asm-blackfin/mach-bf533/cdefBF532.h
index 74f967b235e2..67a6dc49c521 100644
--- a/include/asm-blackfin/mach-bf533/cdefBF532.h
+++ b/include/asm-blackfin/mach-bf533/cdefBF532.h
@@ -65,7 +65,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val)
65 bfin_write32(SIC_IWR, IWR_ENABLE(0)); 65 bfin_write32(SIC_IWR, IWR_ENABLE(0));
66 66
67 bfin_write16(VR_CTL, val); 67 bfin_write16(VR_CTL, val);
68 __builtin_bfin_ssync(); 68 SSYNC();
69 69
70 local_irq_save(flags); 70 local_irq_save(flags);
71 asm("IDLE;"); 71 asm("IDLE;");
diff --git a/include/asm-blackfin/mach-bf537/cdefBF534.h b/include/asm-blackfin/mach-bf537/cdefBF534.h
index 84e58fa73dce..5dab41fb9c75 100644
--- a/include/asm-blackfin/mach-bf537/cdefBF534.h
+++ b/include/asm-blackfin/mach-bf537/cdefBF534.h
@@ -57,7 +57,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val)
57 bfin_write32(SIC_IWR, IWR_ENABLE(0)); 57 bfin_write32(SIC_IWR, IWR_ENABLE(0));
58 58
59 bfin_write16(VR_CTL, val); 59 bfin_write16(VR_CTL, val);
60 __builtin_bfin_ssync(); 60 SSYNC();
61 61
62 local_irq_save(flags); 62 local_irq_save(flags);
63 asm("IDLE;"); 63 asm("IDLE;");
diff --git a/include/asm-blackfin/mach-bf548/cdefBF54x_base.h b/include/asm-blackfin/mach-bf548/cdefBF54x_base.h
index cdf29e75ea59..10475bbfc7dd 100644
--- a/include/asm-blackfin/mach-bf548/cdefBF54x_base.h
+++ b/include/asm-blackfin/mach-bf548/cdefBF54x_base.h
@@ -60,7 +60,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val)
60 bfin_write32(SIC_IWR2, 0); 60 bfin_write32(SIC_IWR2, 0);
61 61
62 bfin_write16(VR_CTL, val); 62 bfin_write16(VR_CTL, val);
63 __builtin_bfin_ssync(); 63 SSYNC();
64 64
65 local_irq_save(flags); 65 local_irq_save(flags);
66 asm("IDLE;"); 66 asm("IDLE;");
diff --git a/include/asm-blackfin/mach-bf561/cdefBF561.h b/include/asm-blackfin/mach-bf561/cdefBF561.h
index 73d4d65249cd..2efcd2c663ab 100644
--- a/include/asm-blackfin/mach-bf561/cdefBF561.h
+++ b/include/asm-blackfin/mach-bf561/cdefBF561.h
@@ -67,7 +67,7 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val)
67 bfin_write32(SICA_IWR1, 0); 67 bfin_write32(SICA_IWR1, 0);
68 68
69 bfin_write16(VR_CTL, val); 69 bfin_write16(VR_CTL, val);
70 __builtin_bfin_ssync(); 70 SSYNC();
71 71
72 local_irq_save(flags); 72 local_irq_save(flags);
73 asm("IDLE;"); 73 asm("IDLE;");