aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-04-24 15:03:03 -0400
committerBryan Wu <cooloney@kernel.org>2008-04-24 15:03:03 -0400
commit50e2e15afaac59c955f43d78d0a1e53cf8a76370 (patch)
tree6c72090bf5028eff1364ae87fa1382140580ccfd /drivers/serial
parent2ade972996feb8f81d7cf2deaf8321e33770c91a (diff)
Blackfin Serial Driver: the uart break anomaly has been given its own number, so switch to it
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/bfin_5xx.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index 8dab6644297c..47ca7b0267df 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -194,7 +194,7 @@ int kgdb_get_debug_char(void)
194} 194}
195#endif 195#endif
196 196
197#if ANOMALY_05000230 && defined(CONFIG_SERIAL_BFIN_PIO) 197#if ANOMALY_05000363 && defined(CONFIG_SERIAL_BFIN_PIO)
198# define UART_GET_ANOMALY_THRESHOLD(uart) ((uart)->anomaly_threshold) 198# define UART_GET_ANOMALY_THRESHOLD(uart) ((uart)->anomaly_threshold)
199# define UART_SET_ANOMALY_THRESHOLD(uart, v) ((uart)->anomaly_threshold = (v)) 199# define UART_SET_ANOMALY_THRESHOLD(uart, v) ((uart)->anomaly_threshold = (v))
200#else 200#else
@@ -239,7 +239,7 @@ static void bfin_serial_rx_chars(struct bfin_serial_port *uart)
239 } 239 }
240#endif 240#endif
241 241
242 if (ANOMALY_05000230) { 242 if (ANOMALY_05000363) {
243 /* The BF533 (and BF561) family of processors have a nice anomaly 243 /* The BF533 (and BF561) family of processors have a nice anomaly
244 * where they continuously generate characters for a "single" break. 244 * where they continuously generate characters for a "single" break.
245 * We have to basically ignore this flood until the "next" valid 245 * We have to basically ignore this flood until the "next" valid
@@ -251,9 +251,6 @@ static void bfin_serial_rx_chars(struct bfin_serial_port *uart)
251 * timeout was picked as it must absolutely be larger than 1 251 * timeout was picked as it must absolutely be larger than 1
252 * character time +/- some percent. So 1.5 sounds good. All other 252 * character time +/- some percent. So 1.5 sounds good. All other
253 * Blackfin families operate properly. Woo. 253 * Blackfin families operate properly. Woo.
254 * Note: While Anomaly 05000230 does not directly address this,
255 * the changes that went in for it also fixed this issue.
256 * That anomaly was fixed in 0.5+ silicon. I like bunnies.
257 */ 254 */
258 if (anomaly_start.tv_sec) { 255 if (anomaly_start.tv_sec) {
259 struct timeval curr; 256 struct timeval curr;
@@ -287,7 +284,7 @@ static void bfin_serial_rx_chars(struct bfin_serial_port *uart)
287 } 284 }
288 285
289 if (status & BI) { 286 if (status & BI) {
290 if (ANOMALY_05000230) 287 if (ANOMALY_05000363)
291 if (bfin_revid() < 5) 288 if (bfin_revid() < 5)
292 do_gettimeofday(&anomaly_start); 289 do_gettimeofday(&anomaly_start);
293 uart->port.icount.brk++; 290 uart->port.icount.brk++;