Running CompactFlash and HDD on mpc8xx

David Ho
  • David Ho
    David Ho

    Hi all,

    I am looking for a way to have CompactFlash and HDD working together on a
    MPC8xx platform.  Ultimately both (IDE, IDE_CS) systems calls
    m8xx_ide_init_hwif_ports to initialize ATA register location/hardware.
    Right now this function is pretty stupid:  it assumes that it is being
    called from the same subsystem and initialize stuff as if it is always a
    hard drive hanging off of the processor bus.

    One idea I have is to make m8xx_ide_init_hwif_ports smarter and have it
    identify from the parameters passed which stack it is being called from so
    that it can initialize to the appropriate hardware.  Right now I don't see
    anything that can indicate/differentiate between the two.

    Would anyone else has any ideas about this.  I would appreciate hearing
    your suggestions.


    David Ho
    Nanometrics Seismological Instruments

    • David Ho
      David Ho

      The trouble is, I can get ComapactFlash (attached to the PCMCIA interface) running fine on it's own.  And I can get IDE hard disk (hanging off of the processor bus) running fine on it's own too.   But putting them together failed when cardmgr register the CF to the IDE layer.


    • David Hinds
      David Hinds

      Could you use the data_port and ctrl_port values to tell whether the device is PCMCIA or not?

      Are you actually sure that the PCMCIA subsystem and ide-cs driver are even involved at all??  The code in drivers/ide/ppc/mpc8xx.c seems to just probe for cards and program the PCMCIA bus directly.

      -- Dave