Re: TI1225 on MIPS...

"Steven J. Hill" <[email protected]> Tue, 01 Jul 2003 13:11:26 -0400
Newsgroups gmane.linux.pcmcia.devel
Message-ID <[email protected]>
Greetings David.

I have made significant progress on the TI1225 adapter with my
MIPS board. I succesfully got a 3Com 3C589D adapter working,
now I am fighting with a compact flash card. Here is what I have
so far.

Below are the important entries from /proc:

    bash-2.05# cat /proc/ioports
    00001000-01000fff : PCI I/O space
      00001000-00004fff : PCI CardBus #01
      00005000-000050ff : PCI CardBus #01
      00005400-000054ff : PCI CardBus #05
      00005800-000058ff : PCI CardBus #05
    06020280-0602029f : eth0
    bash-2.05# cat /proc/iomem
    00000000-07ffffff : System RAM
      00100000-00309a87 : Kernel code
      00328000-00369fff : Kernel data
    08000000-0fffffff : PCI Memory space
      08001000-08400fff : PCI CardBus #01
      08402000-08801fff : PCI CardBus #05

and my /etc/pcmcia/config.opts file looks like:

    exclude port 0x0000-0x58ff
    include port 0x5900-0x61ff
    include memory 0x08802000-0x08809fff

    module "ide-cs" opts "pc_debug=1 irq_list=58,59"

When I insert the compact flash card, my board freezes for
a bit, I then eject and then reinsert the card and after a
few seconds I get these messages:

    hda: no response (status = 0xff)
    ide_cs: ide_register() at 0x5900 & 0x590e, irq 58 failed

Next, I do a 'dump_cis' and get the following:

    Socket 0:
      no CIS present
    Socket 1:
      dev_info
        fn_specific 700ns, 2kb
      common_jedec 0xdf 0x01
      manfid 0x0045, 0x0401
      vers_1 4.1, "SunDisk", "SDP", "5/3 0.6"
      funcid fixed_disk [post]
      disk_interface [ide]
      disk_features [silicon] [unique] [single]
        [sleep] [standby] [idle] [low power]
      config base 0x0200 mask 0x000f last_index 0x07
      cftable_entry 0x00 [default]
        [rdybsy] [mwait] [pwrdown]
        Vcc Vnom 5V Vmin 4500mV Vmax 5500mV Ipeak 80mA
        memory 0x0000-0x07ff @ 0x0000
      cftable_entry 0x00
        Vcc Vnom 3300mV Ipeak 45mA
      cftable_entry 0x01 [default]
        [rdybsy] [pwrdown]
        Vcc Vnom 5V Vmin 4500mV Vmax 5500mV Ipeak 80mA
        io 0x0000-0x000f [lines=4] [8bit] [16bit]
        irq mask 0xffff [level] [pulse] [shared]
      cftable_entry 0x01
        Vcc Vnom 3300mV Ipeak 45mA
      cftable_entry 0x02 [default]
        [rdybsy] [pwrdown]
        Vcc Vnom 5V Vmin 4500mV Vmax 5500mV Ipeak 80mA
        io 0x01f0-0x01f7, 0x03f6-0x03f7 [lines=10] [8bit] [16bit] [range]
        irq 14 [level] [pulse] [shared]
      cftable_entry 0x02
        Vcc Vnom 3300mV Ipeak 45mA
      cftable_entry 0x03 [default]
        [rdybsy] [pwrdown]
        Vcc Vnom 5V Vmin 4500mV Vmax 5500mV Ipeak 80mA
        io 0x0170-0x0177, 0x0376-0x0377 [lines=10] [8bit] [16bit] [range]
        irq 14 [level] [pulse] [shared]
      cftable_entry 0x03
        Vcc Vnom 3300mV Ipeak 45mA
      cftable_entry 0x07

I instrumented 'ide-cs.c' a little bit and it appeared that things were
proceeding in the proper order:

    10:41:43 10 cardmgr[93]: socket 1: ATA/IDE Fixed Disk
    10:41:43 10 kernel: pcmcia_request_io
    10:41:43 10 kernel: pcmcia_request_irq
    10:41:43 10 kernel: pcmcia_request_configuration
    10:41:43 10 kernel: write_cis_mem: 0xa8802206 len=1
    10:41:43 10 kernel: write_cis_mem: 0xa8802200 len=1
    10:41:43 10 kernel: write_cis_mem: 0xa8802202 len=1
    10:41:43 10 kernel: write_cis_mem: 0xa8802204 len=1
    10:41:43 10 kernel: pcmcia_request_configuration: Configure I/O windows
    10:41:43 10 kernel: pcmcia_request_configuration: iomap.start=0x00006000
    10:41:43 10 kernel: pcmcia_request_configuration: iomap.stop=0x0000600f
    10:45:18 10 kernel: pcmcia_release_io
    10:45:18 10 kernel: pcmcia_release_irq
    10:45:34 10 kernel: hda: no response (status = 0xff)

I am baffled as to why the IRQ and I/O port addresses are not matching
what I thought was being configured. I will now go back and instrument
the IO and IRQ request functions and see what is going on. Can you shed
some light on my stupidity? Thanks.

-Steve



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01