求救:MPC8377 PCIE驱动问题

我用的是MPC8377的平台,移植的Linux2.6.18核心。

在PCIE槽上插有PCE9901,系统启动是能够检测到设备:
~ # lspci
0000:00:00.0 Power PC: Freescale Semiconductor Inc Unknown device 00c7 (rev 21)
0000:00:0f.0 Serial controller: Unknown device 4348:3253 (rev 10)
0001:01:00.0 PCI bridge: Freescale Semiconductor Inc Unknown device 00c7 (rev 21)
0001:02:00.0 Serial controller: NetMos Technology Unknown device 9901
0001:02:00.1 Serial controller: NetMos Technology Unknown device 9901

但是加载PCE9901驱动时只识别出一个串口:
/myapp # insmod 9900.ko
0001:02:00.0: ttyT0 at I/O 0x0 (irq = 22) is a starex-serial
starex-serial: probe of 0001:02:00.1 failed with error -12

我发现在启动信息中有:PCI: Failed to allocate I/O resource #0:8@1000 for 0001:02:00.1

这是什么原因呢?

我的dts是:
pci1: pci@e0009000 {
interrupt-map-mask = <0xf800 0 0 7>;
interrupt-map = <
0000 0 0 1 &ipic 1 8
0000 0 0 2 &ipic 1 8
0000 0 0 3 &ipic 1 8
0000 0 0 4 &ipic 1 8
>;
interrupt-parent = < &ipic >;
interrupts = <1 8>;
bus-range = <0 0>;
ranges = <0x02000000 0 0xA8000000 0xA8000000 0 0x10000000
0x01000000 0 0x00000000 0xB8000000 0 0x00800000>;
clock-frequency = <0>;
#interrupt-cells = <1>;
#size-cells = <2>;
#address-cells = <3>;
reg = <0xe0009000 0x00001000>;
compatible = "fsl,mpc8377-pcie";
device_type = "pci";
};

作者: zq_killer   发布时间: 2011-04-17