aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/cmd640.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-27 09:38:29 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-27 09:38:29 -0400
commitebae41a5a0583fb732c41445df4ac2c41016df74 (patch)
tree0896acda21576aabf92ff7e7b4b99fac26d9f007 /drivers/ide/pci/cmd640.c
parent10569713c78f3c499745651aebc90b0d1c454c28 (diff)
ide: add "vlb|pci_clock=" parameter
* Add "vlb_clock=" parameter for specifying VLB clock frequency (in MHz). * Add "pci_clock=" parameter for specifying PCI bus clock frequency (in MHz). While at it: * qd65xx.c: rename {active,recovery}_cycle variables to {act,rec}_cyc. Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cmd640.c')
-rw-r--r--drivers/ide/pci/cmd640.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/ide/pci/cmd640.c b/drivers/ide/pci/cmd640.c
index 0f6f11e69807..6e7a6faa480e 100644
--- a/drivers/ide/pci/cmd640.c
+++ b/drivers/ide/pci/cmd640.c
@@ -552,7 +552,14 @@ static void cmd640_set_mode(ide_drive_t *drive, unsigned int index,
552{ 552{
553 int setup_time, active_time, recovery_time, clock_time; 553 int setup_time, active_time, recovery_time, clock_time;
554 u8 setup_count, active_count, recovery_count, recovery_count2, cycle_count; 554 u8 setup_count, active_count, recovery_count, recovery_count2, cycle_count;
555 int bus_speed = system_bus_clock(); 555 int bus_speed;
556
557 if (cmd640_vlb && ide_vlb_clk)
558 bus_speed = ide_vlb_clk;
559 else if (!cmd640_vlb && ide_pci_clk)
560 bus_speed = ide_pci_clk;
561 else
562 bus_speed = system_bus_clock();
556 563
557 if (pio_mode > 5) 564 if (pio_mode > 5)
558 pio_mode = 5; 565 pio_mode = 5;