[PATCH] ide_cs: Make ide_cs work with the memory space of
CF-Cards if IO space is not available (4rd revision)
Thomas Kleffel (maintech GmbH)
tk at maintech.de
Sun May 14 09:16:30 EDT 2006
From: Thomas Kleffel <tk at maintech.de>
this patch enables ide_cs to access CF-cards via their common memory
rather than via their IO space.
Signed-off-by: Thomas Kleffel <tk at maintech.de>
---
This patch is against 2.6.17-rc3
The reason why this patch makes sense is that it is pretty easy to build
a CF-Interface out of a simple address/data-bus if you only use common
and attribute memory. Adding the capability to access IO space makes
things more complicated.
If you just want to use CF-Storage cards, access to common and attribute
memory is enough as the IDE registers are available there, as well.
I have submitted a patch to RMK which enables the AT91RM9200's CF
interface to work in that mode.
I made some changes based on the feedback from Alan Cox and Iain Barker.
The window size was changed from 16 to 0 (autodetect) on suggestion from
Iain Barker. 16 didn't work with one of his cards.
Detection of slave drives works with mmio, now.
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ide_cs.mem.patch
Type: text/x-patch
Size: 4653 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-pcmcia/attachments/20060514/fb2e814d/ide_cs.mem.bin
More information about the linux-pcmcia
mailing list