aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan Le Foll <brendan.le.foll@intel.com>2015-02-06 14:52:46 +0000
committerBrendan Le Foll <brendan.le.foll@intel.com>2015-02-06 14:55:07 +0000
commit3e96f7966b8d0d4ebbbd6c260adcb20ec7026f8a (patch)
tree25359657be8d028a2ca78960e55825579cd3c4a7
parent5e6a246a68129148baa02b62289ed1bd633417c6 (diff)
downloadmeta-intel-quark-3e96f7966b8d0d4ebbbd6c260adcb20ec7026f8a.tar.gz
meta-intel-quark-3e96f7966b8d0d4ebbbd6c260adcb20ec7026f8a.tar.bz2
meta-intel-quark-3e96f7966b8d0d4ebbbd6c260adcb20ec7026f8a.zip
ethtool: add recipe with quark patch
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
-rw-r--r--recipes-extended/ethtool/ethtool_%.bbappend2
-rw-r--r--recipes-extended/ethtool/files/quark.patch39
2 files changed, 41 insertions, 0 deletions
diff --git a/recipes-extended/ethtool/ethtool_%.bbappend b/recipes-extended/ethtool/ethtool_%.bbappend
new file mode 100644
index 0000000..2d30838
--- /dev/null
+++ b/recipes-extended/ethtool/ethtool_%.bbappend
@@ -0,0 +1,2 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+SRC_URI += "file://quark.patch"
diff --git a/recipes-extended/ethtool/files/quark.patch b/recipes-extended/ethtool/files/quark.patch
new file mode 100644
index 0000000..4432de8
--- /dev/null
+++ b/recipes-extended/ethtool/files/quark.patch
@@ -0,0 +1,39 @@
+From 1b1a122b192687355cb18cd16b5e8f053a57f9b4 Mon Sep 17 00:00:00 2001
+From: Bryan O'Donoghue <bryan.odonoghue@linux.intel.com>
+Date: Thu, 4 Oct 2012 09:55:22 +0100
+Subject: [PATCH] stmmac.c updated to align with kernel registers being
+ reported in Clanton's version of this driver
+
+---
+ stmmac.c | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/stmmac.c b/stmmac.c
+index fb69bfe..3d79054 100644
+--- a/stmmac.c
++++ b/stmmac.c
+@@ -52,11 +52,20 @@ int st_gmac_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+ int i;
+ unsigned int *stmmac_reg = (unsigned int *)regs->data;
+
+- fprintf(stdout, "ST GMAC Registers\n");
++ fprintf(stdout, "ST GMAC Registers - Quark SOC extended\n");
+ fprintf(stdout, "GMAC Registers\n");
+ for (i = 0; i < 55; i++)
+ fprintf(stdout, "Reg%d 0x%08X\n", i, *stmmac_reg++);
+
++ /* VLAN extended registers 355 & 354 */
++ for(i = 353; i < 355; i++)
++ fprintf(stdout, "Reg%d 0x%08x\n", i, *stmmac_reg++);
++
++ /* 1588 extended registers 448 - 461 */
++ for(i = 448; i < 462; i++)
++ fprintf(stdout, "Reg%d 0x%08x\n", i, *stmmac_reg++);
++
++ /* DMA Regs */
+ fprintf(stdout, "\n");
+ fprintf(stdout, "DMA Registers\n");
+ for (i = 0; i < 22; i++)
+--
+1.8.2
+