aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ppc/pmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ppc/pmac.c')
-rw-r--r--drivers/ide/ppc/pmac.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c
index e68e33bb2c35..7c3a84f8fbed 100644
--- a/drivers/ide/ppc/pmac.c
+++ b/drivers/ide/ppc/pmac.c
@@ -495,6 +495,13 @@ static void pmac_outbsync(ide_hwif_t *hwif, u8 value, unsigned long port)
495 + IDE_TIMING_CONFIG)); 495 + IDE_TIMING_CONFIG));
496} 496}
497 497
498static void pmac_exec_command(ide_hwif_t *hwif, u8 cmd)
499{
500 writeb(cmd, (void __iomem *)hwif->io_ports.command_addr);
501 (void)readl((void __iomem *)(hwif->io_ports.data_addr
502 + IDE_TIMING_CONFIG));
503}
504
498/* 505/*
499 * Old tuning functions (called on hdparm -p), sets up drive PIO timings 506 * Old tuning functions (called on hdparm -p), sets up drive PIO timings
500 */ 507 */
@@ -1092,6 +1099,8 @@ static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif, hw_regs_t *hw)
1092 if (hwif == NULL) 1099 if (hwif == NULL)
1093 return -ENOENT; 1100 return -ENOENT;
1094 1101
1102 hwif->exec_command = pmac_exec_command;
1103
1095 /* Setup MMIO ops */ 1104 /* Setup MMIO ops */
1096 default_hwif_mmiops(hwif); 1105 default_hwif_mmiops(hwif);
1097 hwif->OUTBSYNC = pmac_outbsync; 1106 hwif->OUTBSYNC = pmac_outbsync;