Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119507
b: refs/heads/master
c: 9f14786
h: refs/heads/master
i:
  119505: 28f29e8
  119503: 31dc5bf
v: v3
  • Loading branch information
Phil Sutter authored and Jeff Garzik committed Dec 1, 2008
1 parent 1b5cf68 commit c95f131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1eedb4a90c958d8d59e0e4f19c297b445df21cf9
refs/heads/master: 9f14786e27908a176f0568cf2132558efef71b31
11 changes: 7 additions & 4 deletions trunk/drivers/ata/pata_rb532_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@
#define RB500_CF_MAXPORTS 1
#define RB500_CF_IO_DELAY 400

#define RB500_CF_REG_CMD 0x0800
#define RB500_CF_REG_BASE 0x0800
#define RB500_CF_REG_ERR 0x080D
#define RB500_CF_REG_CTRL 0x080E
#define RB500_CF_REG_DATA 0x0C00
/* 32bit buffered data register offset */
#define RB500_CF_REG_DBUF32 0x0C00

struct rb532_cf_info {
void __iomem *iobase;
Expand Down Expand Up @@ -146,13 +148,14 @@ static void rb532_pata_setup_ports(struct ata_host *ah)
ap->pio_mask = 0x1f; /* PIO4 */
ap->flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO;

ap->ioaddr.cmd_addr = info->iobase + RB500_CF_REG_CMD;
ap->ioaddr.cmd_addr = info->iobase + RB500_CF_REG_BASE;
ap->ioaddr.ctl_addr = info->iobase + RB500_CF_REG_CTRL;
ap->ioaddr.altstatus_addr = info->iobase + RB500_CF_REG_CTRL;

ata_sff_std_ports(&ap->ioaddr);

ap->ioaddr.data_addr = info->iobase + RB500_CF_REG_DATA;
ap->ioaddr.data_addr = info->iobase + RB500_CF_REG_DBUF32;
ap->ioaddr.error_addr = info->iobase + RB500_CF_REG_ERR;
}

static __devinit int rb532_pata_driver_probe(struct platform_device *pdev)
Expand Down

0 comments on commit c95f131

Please sign in to comment.