Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93562
b: refs/heads/master
c: b81c226
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent 817adc6 commit 0ddeea3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f6f33c131b34a5eca6350c2bd8a254e55550e92
refs/heads/master: b81c2266e36f6bdf0c7186d21b375e32d8929df8
10 changes: 10 additions & 0 deletions trunk/drivers/ide/arm/bast-ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <asm/arch/bast-map.h>
#include <asm/arch/bast-irq.h>

#define DRV_NAME "bast-ide"

static int __init bastide_register(unsigned int base, unsigned int aux, int irq)
{
ide_hwif_t *hwif;
Expand Down Expand Up @@ -53,6 +55,7 @@ static int __init bastide_register(unsigned int base, unsigned int aux, int irq)
ide_init_port_data(hwif, i);

ide_init_port_hw(hwif, &hw);
hwif->mmio = 1;
hwif->quirkproc = NULL;

idx[0] = i;
Expand All @@ -64,13 +67,20 @@ static int __init bastide_register(unsigned int base, unsigned int aux, int irq)

static int __init bastide_init(void)
{
unsigned long base = BAST_VA_IDEPRI + BAST_IDE_CS;

/* we can treat the VR1000 and the BAST the same */

if (!(machine_is_bast() || machine_is_vr1000()))
return 0;

printk("BAST: IDE driver, (c) 2003-2004 Simtec Electronics\n");

if (!request_mem_region(base, 0x400000, DRV_NAME)) {
printk(KERN_ERR "%s: resources busy\n", DRV_NAME);
return -EBUSY;
}

bastide_register(BAST_VA_IDEPRI, BAST_VA_IDEPRIAUX, IRQ_IDE0);
bastide_register(BAST_VA_IDESEC, BAST_VA_IDESECAUX, IRQ_IDE1);

Expand Down

0 comments on commit 0ddeea3

Please sign in to comment.