summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-07-25 19:33:56 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:08 +0200
commit6ab00db226296b9512baf00d1dc1728e599e385d (patch)
treea38b71fae189aeff8bef959c7346ed3d24c06568 /lib
parente14d3f79282ce7654d2848bb8b8f74a81702fa35 (diff)
downloadu-boot-6ab00db226296b9512baf00d1dc1728e599e385d.tar.gz
u-boot-6ab00db226296b9512baf00d1dc1728e599e385d.tar.bz2
u-boot-6ab00db226296b9512baf00d1dc1728e599e385d.zip
arm: socfpga: misc: Reset ethernet from OF
Reset the GMAC ethernets based on the "resets" OF node instead of ad-hoc hardcoded values in the U-Boot code. Since we don't have a proper reset framework in place yet, we have to do this slightly ad-hoc parsing of the OF tree instead. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 0153109103..b2017872fa 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -75,6 +75,7 @@ static const char * const compat_names[COMPAT_COUNT] = {
COMPAT(SOCIONEXT_XHCI, "socionext,uniphier-xhci"),
COMPAT(COMPAT_INTEL_PCH, "intel,bd82x6x"),
COMPAT(COMPAT_INTEL_IRQ_ROUTER, "intel,irq-router"),
+ COMPAT(ALTERA_SOCFPGA_DWMAC, "altr,socfpga-stmmac"),
};
const char *fdtdec_get_compatible(enum fdt_compat_id id)