This sample driver code illustrates one method for reading from and writing to the CF and/or PCMCIA bus on PXA255-based ADS systems using a CPLD to control the PCMCIA bus such as the AGX and VGX.
The sample code is an application that write a block of data to a memory device on the bus, then reads it back. It increases the access time until the data is no longer valid. In effect, this is a speed test of the PCMCIA/CF device.
For products that include the SA-1111 (e.g. Bitsy Plus, BitsyX, etc.), see the sample code posted at topic 845.