Set proper ATA UDMA mode for bf548 according to system clock.
authorsonic zhang <sonic.adi@gmail.com>
Tue, 27 Nov 2007 04:47:39 +0000 (12:47 +0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Dec 2007 22:35:58 +0000 (17:35 -0500)
commitf88c480dac88a754f84e943cb5539d59cda3c089
tree5c2485dcab759849ecfda80d2f6b0fdc93c983b1
parent92d499d991ec4f5cbd00d6f33967eab9d3ee8d6c
Set proper ATA UDMA mode for bf548 according to system clock.

UDMA Mode - Frequency compatibility

UDMA5 - 100 MB/s   - SCLK  = 133 MHz
UDMA4 - 66 MB/s    - SCLK >=  80 MHz
UDMA3 - 44.4 MB/s  - SCLK >=  50 MHz
UDMA2 - 33 MB/s    - SCLK >=  40 MHz

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_bf54x.c