aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2009-03-28 10:13:43 -0400
committerBryan Wu <cooloney@kernel.org>2009-03-28 10:13:43 -0400
commit2c8beb2cbef632a3683950aab8bcd9735a0a0270 (patch)
tree3bd97014234d8679b73c6caad3de591656db6816 /arch/blackfin
parent714e76d71d99f00734217e642ba64204df3bdf35 (diff)
Blackfin arch: enable the platfrom PATA driver with CF Cards
Provide option to use the platfrom PATA driver with CF Cards on the CF-IDE-NAND Add-On-Card in Common Memory Mode Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index cd04c5e44878..0afe9bd6dbc9 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -1120,8 +1120,11 @@ static struct platform_device bfin_sport1_uart_device = {
1120#endif 1120#endif
1121 1121
1122#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 1122#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
1123#define PATA_INT IRQ_PF5 1123#define CF_IDE_NAND_CARD_USE_HDD_INTERFACE
1124/* #define CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE */
1124 1125
1126#ifdef CF_IDE_NAND_CARD_USE_HDD_INTERFACE
1127#define PATA_INT IRQ_PF5
1125static struct pata_platform_info bfin_pata_platform_data = { 1128static struct pata_platform_info bfin_pata_platform_data = {
1126 .ioport_shift = 1, 1129 .ioport_shift = 1,
1127 .irq_flags = IRQF_TRIGGER_HIGH | IRQF_DISABLED, 1130 .irq_flags = IRQF_TRIGGER_HIGH | IRQF_DISABLED,
@@ -1144,6 +1147,24 @@ static struct resource bfin_pata_resources[] = {
1144 .flags = IORESOURCE_IRQ, 1147 .flags = IORESOURCE_IRQ,
1145 }, 1148 },
1146}; 1149};
1150#elif defined(CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE)
1151static struct pata_platform_info bfin_pata_platform_data = {
1152 .ioport_shift = 0,
1153};
1154
1155static struct resource bfin_pata_resources[] = {
1156 {
1157 .start = 0x20211820,
1158 .end = 0x2021183F,
1159 .flags = IORESOURCE_MEM,
1160 },
1161 {
1162 .start = 0x2021181C,
1163 .end = 0x2021181F,
1164 .flags = IORESOURCE_MEM,
1165 },
1166};
1167#endif
1147 1168
1148static struct platform_device bfin_pata_device = { 1169static struct platform_device bfin_pata_device = {
1149 .name = "pata_platform", 1170 .name = "pata_platform",