I have IDE working on my MPC5200B based system using the driver:

drivers/ide/ppc/mpc52xx_ide.

The IDE device is a compact flash card inserted in a compact flash slot on the CPU board. Two separate pins (reset and card-detect) are provided to the CPU to force a reset and to detect the presence of the compact-flash card.

Right now I don't use the card detection, the card is always in the slot, but I want to be able to use the board without the card inserted.

What is the best way to let the kernel only use the compact flash card when it is inserted?

Can/should I make use of PCMCIA, eventhough the interface is not PCMCIA compatible? Can PCMCIA then make use of the allready working drivers/ide/ppc/mpc52xx_ide driver?

Thanks in advance,

Henk Stegeman