diff options
Diffstat (limited to 'drivers/ata/sata_svw.c')
-rw-r--r-- | drivers/ata/sata_svw.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/ata/sata_svw.c b/drivers/ata/sata_svw.c index bcb2cd8b063d..63fe99afd59f 100644 --- a/drivers/ata/sata_svw.c +++ b/drivers/ata/sata_svw.c | |||
@@ -107,7 +107,7 @@ static u32 k2_sata_scr_read (struct ata_port *ap, unsigned int sc_reg) | |||
107 | { | 107 | { |
108 | if (sc_reg > SCR_CONTROL) | 108 | if (sc_reg > SCR_CONTROL) |
109 | return 0xffffffffU; | 109 | return 0xffffffffU; |
110 | return readl((void __iomem *) ap->ioaddr.scr_addr + (sc_reg * 4)); | 110 | return readl(ap->ioaddr.scr_addr + (sc_reg * 4)); |
111 | } | 111 | } |
112 | 112 | ||
113 | 113 | ||
@@ -116,7 +116,7 @@ static void k2_sata_scr_write (struct ata_port *ap, unsigned int sc_reg, | |||
116 | { | 116 | { |
117 | if (sc_reg > SCR_CONTROL) | 117 | if (sc_reg > SCR_CONTROL) |
118 | return; | 118 | return; |
119 | writel(val, (void __iomem *) ap->ioaddr.scr_addr + (sc_reg * 4)); | 119 | writel(val, ap->ioaddr.scr_addr + (sc_reg * 4)); |
120 | } | 120 | } |
121 | 121 | ||
122 | 122 | ||
@@ -197,7 +197,8 @@ static void k2_bmdma_setup_mmio (struct ata_queued_cmd *qc) | |||
197 | struct ata_port *ap = qc->ap; | 197 | struct ata_port *ap = qc->ap; |
198 | unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); | 198 | unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); |
199 | u8 dmactl; | 199 | u8 dmactl; |
200 | void __iomem *mmio = (void __iomem *) ap->ioaddr.bmdma_addr; | 200 | void __iomem *mmio = ap->ioaddr.bmdma_addr; |
201 | |||
201 | /* load PRD table addr. */ | 202 | /* load PRD table addr. */ |
202 | mb(); /* make sure PRD table writes are visible to controller */ | 203 | mb(); /* make sure PRD table writes are visible to controller */ |
203 | writel(ap->prd_dma, mmio + ATA_DMA_TABLE_OFS); | 204 | writel(ap->prd_dma, mmio + ATA_DMA_TABLE_OFS); |
@@ -225,7 +226,7 @@ static void k2_bmdma_setup_mmio (struct ata_queued_cmd *qc) | |||
225 | static void k2_bmdma_start_mmio (struct ata_queued_cmd *qc) | 226 | static void k2_bmdma_start_mmio (struct ata_queued_cmd *qc) |
226 | { | 227 | { |
227 | struct ata_port *ap = qc->ap; | 228 | struct ata_port *ap = qc->ap; |
228 | void __iomem *mmio = (void __iomem *) ap->ioaddr.bmdma_addr; | 229 | void __iomem *mmio = ap->ioaddr.bmdma_addr; |
229 | u8 dmactl; | 230 | u8 dmactl; |
230 | 231 | ||
231 | /* start host DMA transaction */ | 232 | /* start host DMA transaction */ |
@@ -253,7 +254,7 @@ static void k2_bmdma_start_mmio (struct ata_queued_cmd *qc) | |||
253 | 254 | ||
254 | static u8 k2_stat_check_status(struct ata_port *ap) | 255 | static u8 k2_stat_check_status(struct ata_port *ap) |
255 | { | 256 | { |
256 | return readl((void __iomem *) ap->ioaddr.status_addr); | 257 | return readl(ap->ioaddr.status_addr); |
257 | } | 258 | } |
258 | 259 | ||
259 | #ifdef CONFIG_PPC_OF | 260 | #ifdef CONFIG_PPC_OF |
@@ -360,7 +361,7 @@ static const struct ata_port_info k2_port_info[] = { | |||
360 | ATA_FLAG_MMIO | K2_FLAG_NO_ATAPI_DMA, | 361 | ATA_FLAG_MMIO | K2_FLAG_NO_ATAPI_DMA, |
361 | .pio_mask = 0x1f, | 362 | .pio_mask = 0x1f, |
362 | .mwdma_mask = 0x07, | 363 | .mwdma_mask = 0x07, |
363 | .udma_mask = 0x7f, | 364 | .udma_mask = ATA_UDMA6, |
364 | .port_ops = &k2_sata_ops, | 365 | .port_ops = &k2_sata_ops, |
365 | }, | 366 | }, |
366 | /* board_svw8 */ | 367 | /* board_svw8 */ |
@@ -370,7 +371,7 @@ static const struct ata_port_info k2_port_info[] = { | |||
370 | K2_FLAG_SATA_8_PORTS, | 371 | K2_FLAG_SATA_8_PORTS, |
371 | .pio_mask = 0x1f, | 372 | .pio_mask = 0x1f, |
372 | .mwdma_mask = 0x07, | 373 | .mwdma_mask = 0x07, |
373 | .udma_mask = 0x7f, | 374 | .udma_mask = ATA_UDMA6, |
374 | .port_ops = &k2_sata_ops, | 375 | .port_ops = &k2_sata_ops, |
375 | }, | 376 | }, |
376 | }; | 377 | }; |