Message ID | 1312359194.13500.YahooMailRC@web77918.mail.sg1.yahoo.com |
---|---|
State | New |
Headers | show |
On Aug 08, 2011 15:13, "Lê Đức Tài" <letai_dhqg@yahoo.com.vn> wrote:
On Thu, Aug 04, 2011 at 05:31:37PM +0800, Lê Đức Tài wrote: > On Aug 08, 2011 15:13, "Lê Đức Tài" <letai_dhqg@yahoo.com.vn> wrote: > > > > ________________________________ > > > > Hi Edgar, > > I have a problem with Ethernet Lite on Virtex board as following. > > Could you help me? > > Thank you! > > > ________________________________ > > > Hi, > I have just successful configured the Ethernet Lite :). > The reason of my bug is interrupt controller of virtex different with > microblaze board. Sweet. Would be nice if you could post a working example to the list as reference. Please include patch to QEMU and patch to the dts, if possible. Cheers
diff --git a/arch/powerpc/boot/dts/virtex440-ml507.dts b/arch/powerpc/boot/dts/virtex440-ml507.dts index 9cf6081..acc8406 100644 --- a/arch/powerpc/boot/dts/virtex440-ml507.dts +++ b/arch/powerpc/boot/dts/virtex440-ml507.dts @@ -155,6 +155,18 @@ #size-cells = <1>; compatible = "xlnx,plb-v46-1.03.a", "simple-bus"; ranges ; + ethernet@81000000 { + compatible = "xlnx,xps-ethernetlite-1.00.a"; + device_type = "network"; + interrupt-parent = <&xps_intc_0>; + interrupts = < 5 2 >; + local-mac-address = [02 00 00 00 00 00]; + reg = <0x81000000 0x10000>; + xlnx,duplex = <0x1>; + xlnx,family = "spartan3adsp"; + xlnx,rx-ping-pong = <0x0>; + xlnx,tx-ping-pong = <0x0>; + }; DIP_Switches_8Bit: gpio@81460000 { compatible = "xlnx,xps-gpio-1.00.a"; interrupt-parent = <&xps_intc_0>; [Modify qemu - v0.15.0rc1] diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 7bde8c7..4dea56a 100644 --- a/hw/virtex_ml507.c +++ b/hw/virtex_ml507.c @@ -232,6 +232,7 @@ static void virtex_init(ram_addr_t ram_size, /* 2 timers at irq 2 @ 62 Mhz. */ xilinx_timer_create(0x83c00000, irq[3], 2, 62 * 1000000); + xilinx_ethlite_create(&nd_table[0], 0x81000000, irq[5], 0, 0); if (kernel_filename) { uint64_t entry, low, high;