New IDE/block driver for OCTEON SOC Compact Flash interface.]
PATCH 1/1 New IDE/block driver for OCTEON SOC Compact Flash interface.]
Forwading to the proper list. Too bad that I forgot to CC it when replying...
-------- Original Message --------
Subject: [PATCH] New IDE/block driver for OCTEON SOC Compact Flash interface.
Date: Thu, 13 Nov 2008 11:25:28 -0800
From: David Daney <[email protected]>
To: [email protected], linux-mips <[email protected]>
As part of our efforts to get the Cavium OCTEON processor support merged (see: http://marc.info/?l=linux-mips&m=122600487218824), we have this CF driver for your consideration.
Most OCTEON variants have *no* DMA or interrupt support on the CF interface so a simple bit-banging approach is taken. Although if DMA is available, we do take advantage of it.
The register definitions are part of the chip support patch set mentioned above, and are not included here.
At this point I would like to get feedback as to whether this is a good approach for the CF driver, or perhaps generate ideas about other possible approaches.
Thanks,
---
drivers/ide/Kconfig | 8 + drivers/ide/Makefile | 1 + drivers/ide/octeon-cf.c | 1102 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1111 insertions(+), 0 deletions(-)
drivers/ide/Kconfig +8 -0
@@ -720,6 +720,14 @@ config BLK_DEV_IDE_AU1XXX_SEQTS_PER_RQ default "128" depends on BLK_DEV_IDE_AU1XXX +config BLK_DEV_OCTEON_BOOTBUS_CF + tristate "Support for OCTEON Boot Bus Compact Flash" + depends on CPU_CAVIUM_OCTEON + default "y" + help + This option enables a polled compact flash driver for use with + compact flash cards attached to the OCTEON boot bus. +
config BLK_DEV_IDE_TX4938
tristate "TX4938 internal IDE support"
depends on SOC_TX4938
drivers/ide/Makefile +0 -0
@@ -113,3 +113,4 @@ obj-$(CONFIG_BLK_DEV_IDE_AU1XXX) += au1xxx-ide.o
obj-$(CONFIG_BLK_DEV_IDE_TX4938) += tx4938ide.o
obj-$(CONFIG_BLK_DEV_IDE_TX4939) += tx4939ide.o
+obj-$(CONFIG_BLK_DEV_OCTEON_BOOTBUS_CF) += octeon-cf.o
drivers/ide/octeon-cf.c new file +1102 -0
1,102 lines not on this page · raw message