Lite5200 and PCI1520

Andrew Dennison andrew.dennison at
Tue Dec 14 12:25:20 EST 2004

On Tuesday, 14 December 2004 11:33 AM, wd at wrote:

> Dear Andrew,
> in message <002a01c4e16e$34451010$4000a8c0 at CAT> you wrote:
>> I posted a question on cardbus with the 5200 a few weeks ago but got
>> no reply. I think the reason is that cardbus / pcmcia support may
>> not have been considered when the 5200 PCI memory map was laid out,
>> but I would love to be contradicted!
> I think I can confirm that this was not considered, but I'm not  sure
> that this is an issue here.

Hi Wolfgang,

It's a problem for PCMCIA, but probably not for cardbus. The PCMCIA 16bit
I/O space can't be mapped above 0x1000 in the PCI address space. The CPU
physical address doesn't matter.

The PCMCIA memory space can be mapped to any 16MiB boundary so this isn't
a problem

>> I also have a few outstanding issues that I haven't resolved yet,
>> hence I haven't posted a full patch, but I can now load and
>> configure a wireless ethernet card. Loading cardbus drivers
>> currently fails when accessing PCI configuration space on the
>> cardbus bus, and I haven't sorted this out yet. 
> I'd like to see your patch (even if preliminary).

I'll work on bundling it up in the next day or two. There are lots of
changes, including partial support for IRQ0 being a valid interrupt...
sigh. The setup of the BAT for MBAR also doesn't seem correct to me, but
I'm now using io_block_mapping() in my platform support.

Another problem I noticed is pcibios trashing the 5200 bridge setup. I've
hacked around this for now. Not a problem for PCMCIA but would have broken
bus mastering for cardbus / PCI.

While looking at PCI I noticed that the icecube platform (which I copied:)
compiles in pci_auto and indirect_pci but they aren't used. Is this work
in progress or a "cut-n-paste" error?

> Unfortunately I don't have any hardware yet with  a  working  cardbus
> interface. But this might change soon...

Good to hear:)

More information about the Linuxppc-embedded mailing list