I am trying to configure a dts file for the pci subsystem of a MPC8540 based
system.

I am expecting (hoping) that the value specified in the interrupts property
(98 in this example)
will be used as the virtual interrupt number and that I can later do a
request_irq using that number.

kernel: 2.6.26.3

The board level configuration is:
 ADR29 connected to IDSEL
 using INTA# only
 The PCI interrupt is connected to external IRQ2

What I see is that inside irq_create_mapping, a call to irq_find_mapping
produces a null virq,
so irq_alloc_virt is called and comes back with x12.  Can I assign the
number to 98 (x62)
using the dts?  Any help would be greatly appreciated.

Thanks

Ken

        pci0: p...@fdf08000 {
                cell-index = <0>;
                interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
                interrupt-map = <

                        /* IDSEL 0x1d */
                        0xe800 0x0 0x0 0x1 &mpic 0x2 0x1
                                                        >;
                interrupt-parent = <&mpic>;
                interrupts = <98 2>;
                bus-range = <0 0>;
                ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
                          0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
                clock-frequency = <66666666>;
                #interrupt-cells = <1>;
                #size-cells = <2>;
                #address-cells = <3>;
                reg = <0xfdf08000 0x1000>;
                compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
                device_type = "pci";
        };
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to