patch-2.3.99-pre6 linux/drivers/ide/cmd64x.c
Next file: linux/drivers/ide/cy82c693.c
Previous file: linux/drivers/ide/cmd640.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Thu Apr 13 22:54:26 2000
- Orig file:
v2.3.99-pre5/linux/drivers/ide/cmd64x.c
- Orig date:
Mon Mar 27 08:08:24 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/ide/cmd64x.c linux/drivers/ide/cmd64x.c
@@ -19,8 +19,10 @@
#include <linux/delay.h>
#include <linux/hdreg.h>
#include <linux/ide.h>
+#include <linux/init.h>
#include <asm/io.h>
+
#include "ide_modes.h"
#ifndef SPLIT_BYTE
@@ -271,7 +273,7 @@
int setup_time, active_time, recovery_time, clock_time, pio_mode, cycle_time;
byte recovery_count2, cycle_count;
int setup_count, active_count, recovery_count;
- int bus_speed = ide_system_bus_speed();
+ int bus_speed = system_bus_clock();
/*byte b;*/
ide_pio_data_t d;
@@ -645,6 +647,9 @@
#endif
(void) pci_write_config_byte(dev, DRWTIM23, 0x3f);
(void) pci_write_config_byte(dev, DRWTIM3, 0x3f);
+#ifdef CONFIG_PPC
+ (void) pci_write_config_byte(dev, UDIDETCR0, 0xf0);
+#endif /* CONFIG_PPC */
#if defined(DISPLAY_CMD64X_TIMINGS) && defined(CONFIG_PROC_FS)
if (!cmd64x_proc) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)