From: Greg B. <gb...@po...> - 2001-02-20 00:55:38
|
Studencki Pawel wrote: > > Hello, Hi Pawel, > I have some questions about "how do I get my PCMCIA devices working with > SH7709" :), especially with HD64461 companion chip. I'm not familiar with the '61 but I have worked with its brother the HD64465. > 1) My hd64461 is connected to pin INT0 of SH7709, so I've chosen interrupt > 0: > (0) HD64461 IRQ. > What other options do I have to modify? I mean, hardcoded options? > For example in function setup_hd64461, value for INTC_ICR1 has been set. In > this case (int 0) I have to set properly first 2 bits (mainly) of this > register (how can I determine kind of interrupt, falling or rising edge, low > level?) You need to get the User Manual for the HD64461 from Hitachi. In the '65 Manual, it implies in Section 8 Interrupt Controller that the IRQ0# from the '65 is level triggered, active low (which is what you'd expect for direct connection to our 7750). > 2) > [*] HD64461 PCMCIA enabler > What does this option mean? Is this enabling of HD64461? Do I need pcmcia > driver? It's not a generic PCMCIA driver. It's a very simple hack which sets up port mappings for one specific set of cards in one specific box (an NE2000 network card and a CompactFlash memory card in an HP690). This is probably not what you want. If you want to be able to plug in various different types of cards, you need a proper PCMCIA Socket Services driver. AFAIK there isn't one for the 7709/64461 combination, but you might want to have a look at Jesper Skov's driver for the 7707, available at http://sourceforge.net/patch/?func=detailpatch&patch_id=101171&group_id=2682 or my driver for the 7750/64465, which is drivers/pcmcia/hd64465_ss.c in 2.4.0-ac3. In either case you will need to modify the driver. > 3) > <*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support > and other options... > Should I compile this as a module? I thougth, I have to compile first the > pcmcia driver as module and install it with insmod. Only after that I can > use any pcmcia devices: card flashes or network adaptars. Does it look like: > > kernel > ---------------------------- > hd64461 > ---------------------------- > pcmcia > --------------------------- > Flash | network | ... > > I would be grateful for any tips and explanations of these problems (what > hardware aspects are exceptionally important? ) For our PCMCIA support, we have the following compiled as modules: drivers/ide/ide-cs.o drivers/ide/ide-disk.o drivers/ide/ide-mod.o drivers/ide/ide-probe-mod.o drivers/net/8390.o drivers/net/airo.o drivers/net/ne.o drivers/net/pcmcia/airo_cs.o drivers/net/pcmcia/pcnet_cs.o drivers/net/stnic.o drivers/pcmcia/ds.o drivers/pcmcia/hd64465_ss.o drivers/pcmcia/pcmcia_core.o The first 4 are necessary to mount flash cards as IDE disks. The last 3 are various PCMCIA drivers. The stuff in the middle is for supporting network cards. For IDE flash cards, you will probably want to choose: m Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support m Include IDE/ATA-2 DISK support m PCMCIA IDE support In theory, all this stuff can be built into the kernel, but we've always used modules. Greg. -- These are my opinions not PPIs. |