From becbfa08d248cd64e970d369661946767dda225c Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Wed, 9 Apr 2014 10:43:56 +1000 Subject: qemu: Add patch to resolve MicroBlaze ethernet phy issues * Add patch to resolve phy soft reset functionality which is relied on by newer kernel versions Signed-off-by: Nathan Rossi --- ...nx_axienet.c-Add-phy-soft-reset-bit-clear.patch | 29 ++++++++++++++++++++++ recipes-devtools/qemu/qemu_1.7.0.bbappend | 1 + 2 files changed, 30 insertions(+) create mode 100644 recipes-devtools/qemu/files/hw-net-xilinx_axienet.c-Add-phy-soft-reset-bit-clear.patch (limited to 'recipes-devtools') diff --git a/recipes-devtools/qemu/files/hw-net-xilinx_axienet.c-Add-phy-soft-reset-bit-clear.patch b/recipes-devtools/qemu/files/hw-net-xilinx_axienet.c-Add-phy-soft-reset-bit-clear.patch new file mode 100644 index 00000000..9bc7a564 --- /dev/null +++ b/recipes-devtools/qemu/files/hw-net-xilinx_axienet.c-Add-phy-soft-reset-bit-clear.patch @@ -0,0 +1,29 @@ +From 425580f9241098c9ef554a33b80153624b1e0318 Mon Sep 17 00:00:00 2001 +From: Nathan Rossi +Date: Wed, 9 Apr 2014 11:15:25 +1000 +Subject: [PATCH] hw/net/xilinx_axienet.c: Add phy soft reset bit clearing + +* Clear the BMCR Reset when writing to registers. + +Signed-off-by: Nathan Rossi +--- + hw/net/xilinx_axienet.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c +index 3eb7715..d9c15df 100644 +--- a/hw/net/xilinx_axienet.c ++++ b/hw/net/xilinx_axienet.c +@@ -142,6 +142,9 @@ tdk_write(struct PHY *phy, unsigned int req, unsigned int data) + phy->regs[regnum] = data; + break; + } ++ ++ /* Unconditionally clear regs[BMCR][BMCR_RESET] */ ++ phy->regs[0] &= ~0x8000; + } + + static void +-- +1.9.0 + diff --git a/recipes-devtools/qemu/qemu_1.7.0.bbappend b/recipes-devtools/qemu/qemu_1.7.0.bbappend index 4637cf0d..a06eefef 100644 --- a/recipes-devtools/qemu/qemu_1.7.0.bbappend +++ b/recipes-devtools/qemu/qemu_1.7.0.bbappend @@ -5,4 +5,5 @@ SRC_URI_append += " \ file://HACK_target-arm_Harcode_the_SCU_offset.patch \ file://HACK_zynq_slcr_Bring_SLCR_out_of_reset_in_kernel_state.patch \ file://qom_object_c_Split_out_object_and_class_caches.patch \ + file://hw-net-xilinx_axienet.c-Add-phy-soft-reset-bit-clear.patch \ " -- cgit v1.2.3-54-g00ecf