Title: [4128] branches/branch_R06R2/drivers/char/bfin_sport.c: bug[#3817]
TXSE and RXSE should be left-shifted 8 bits
- Revision
- 4128
- Author
- cliff
- Date
- 2008-01-21 19:20:21 -0600 (Mon, 21 Jan 2008)
Log Message
bug[#3817] TXSE and RXSE should be left-shifted 8 bits
Diffstat
bfin_sport.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified Paths
Diff
Modified: branches/branch_R06R2/drivers/char/bfin_sport.c (4127 => 4128)
--- branches/branch_R06R2/drivers/char/bfin_sport.c 2008-01-22 01:06:53 UTC (rev 4127)
+++ branches/branch_R06R2/drivers/char/bfin_sport.c 2008-01-22 01:20:21 UTC (rev 4128)
@@ -156,12 +156,14 @@
tcr1 |= (config->lsb_first << 4) | (config->fsync << 10) | \
(config->data_indep << 11) | (config->act_low << 12) | \
(config->late_fsync << 13) | (config->tckfe << 14) ;
- tcr2 |= config->sec_en;
+ if (config->sec_en)
+ tcr2 |= TXSE;
rcr1 |= (config->lsb_first << 4) | (config->fsync << 10) | \
(config->data_indep << 11) | (config->act_low << 12) | \
(config->late_fsync << 13) | (config->tckfe << 14) ;
- rcr2 |= config->sec_en;
+ if (config->sec_en)
+ rcr2 |= RXSE;
}
/* Using internal clock*/
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits