#16900: lantiq: vgv7519 - pci don't work
----------------------+-------------------------------------
 Reporter:  dpeddi    |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  Barrier Breaker (trunk)
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+-------------------------------------
 From disassembly this router seems to have a ralink pci wifi card.

 - pci is disabled for xrx200

 I've enabled it

 root@OpenWrt:/# dmesg | grep PCI
 [    0.084000] PCI host bridge /fpi@10000000/pci@E105400 ranges:
 [    0.124000] PCI host bridge to bus 0000:00
 [    0.196000] PCI: CLS 0 bytes, default 32
 no pci devices is probed:
  0x0=ltq_r32(0xb7000800)
  0x0=ltq_r32(0xb7001000)
  0x0=ltq_r32(0xb7001800)
  0x0=ltq_r32(0xb7002000)
  0x0=ltq_r32(0xb7002800)
  0x0=ltq_r32(0xb7003000)
  0x0=ltq_r32(0xb7003800)
  0x0=ltq_r32(0xb7005000)
  0x0=ltq_r32(0xb7005800)
  0x0=ltq_r32(0xb7006000)
  0x0=ltq_r32(0xb7007000)
  0x0=ltq_r32(0xb7007800)

 So I'm going to look at differences between openwrt and original binary
 blob:

 CGU:

 From disassembly it seems is writtend to 0xBF103038  the value 0xc0200000
 while openwrt write ltq_w32(0xc0000000,0xbf103038)

 0x200000 seems to be CONFIG_IFX_PCI_CLOCK_DELAY_TENTH_NANO_SECOND

 actually dts specify 0 for lantiq,delay-hi/lantiq,delay-lo but it seems
 these devicetree bindings are not implemented.

 then pci-lantiq.c seems to be missing following
 ltq_pci_w32(ltq_pci_r32(0x0050) | 0x80000000,0x0050);
 ltq_pci_w32(ltq_pci_r32(0x0054) | 0x80000000,0x0054);
 ltq_pci_w32(ltq_pci_r32(0x0058) | 0x80000000,0x0058);

 Why  IFX_PCI_BAR14MASK IFX_PCI_BAR15MASK IFX_PCI_BAR16MASK are not defined
 in pci-lantiq.c?


 then it seems that irq for pci is 49. Do you think it might be possible or
 I misinterpreted the disassembled code?

--
Ticket URL: <https://dev.openwrt.org/ticket/16900>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to