Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137098
b: refs/heads/master
c: 2c8beb2
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Mar 28, 2009
1 parent 32f8ca1 commit 9a9cc02
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 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: 714e76d71d99f00734217e642ba64204df3bdf35
refs/heads/master: 2c8beb2cbef632a3683950aab8bcd9735a0a0270
23 changes: 22 additions & 1 deletion trunk/arch/blackfin/mach-bf537/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,11 @@ static struct platform_device bfin_sport1_uart_device = {
#endif

#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
#define PATA_INT IRQ_PF5
#define CF_IDE_NAND_CARD_USE_HDD_INTERFACE
/* #define CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE */

#ifdef CF_IDE_NAND_CARD_USE_HDD_INTERFACE
#define PATA_INT IRQ_PF5
static struct pata_platform_info bfin_pata_platform_data = {
.ioport_shift = 1,
.irq_flags = IRQF_TRIGGER_HIGH | IRQF_DISABLED,
Expand All @@ -1144,6 +1147,24 @@ static struct resource bfin_pata_resources[] = {
.flags = IORESOURCE_IRQ,
},
};
#elif defined(CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE)
static struct pata_platform_info bfin_pata_platform_data = {
.ioport_shift = 0,
};

static struct resource bfin_pata_resources[] = {
{
.start = 0x20211820,
.end = 0x2021183F,
.flags = IORESOURCE_MEM,
},
{
.start = 0x2021181C,
.end = 0x2021181F,
.flags = IORESOURCE_MEM,
},
};
#endif

static struct platform_device bfin_pata_device = {
.name = "pata_platform",
Expand Down

0 comments on commit 9a9cc02

Please sign in to comment.