diff options
author | Yutang Jiang <yutang.jiang@nxp.com> | 2016-12-24 01:11:32 +0800 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-01-03 15:19:15 +0100 |
commit | 1866368a8ab8cacf73aa47f67138040d5620439d (patch) | |
tree | 2b0dd1ba578016957856f59bf4b2edc54d6a46c5 /target/linux/layerscape/patches-4.4/7212-staging-fsl-dpaa2-mac-Use-of_property_read_32.patch | |
parent | c6d3a62919a7f993be625391d8593c84423aa021 (diff) | |
download | mtk-20170518-1866368a8ab8cacf73aa47f67138040d5620439d.zip mtk-20170518-1866368a8ab8cacf73aa47f67138040d5620439d.tar.gz mtk-20170518-1866368a8ab8cacf73aa47f67138040d5620439d.tar.bz2 |
layerscape: add ls1088ardb device support
LS1088A is an ARMv8 implementation combining eight ARM A53 processor
cores. The LS1088ARDB is an evaluatoin platform that supports the
LS1088A family SoCs.
Features summary:
- Eight 64-bit ARM v8 Cortex-A53 CPUs
- Data path acceleration architecture 2.0 (DPAA2)
- Ethernet interfaces
- QUADSPI flash, 3 PCIe, 2 USB, 1 SD, 2 DUARTs etc
Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
Diffstat (limited to 'target/linux/layerscape/patches-4.4/7212-staging-fsl-dpaa2-mac-Use-of_property_read_32.patch')
-rw-r--r-- | target/linux/layerscape/patches-4.4/7212-staging-fsl-dpaa2-mac-Use-of_property_read_32.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/target/linux/layerscape/patches-4.4/7212-staging-fsl-dpaa2-mac-Use-of_property_read_32.patch b/target/linux/layerscape/patches-4.4/7212-staging-fsl-dpaa2-mac-Use-of_property_read_32.patch new file mode 100644 index 0000000..8ab6de9 --- /dev/null +++ b/target/linux/layerscape/patches-4.4/7212-staging-fsl-dpaa2-mac-Use-of_property_read_32.patch @@ -0,0 +1,43 @@ +From e554a03fe11719db373be3c54ce8f230a98dd5e4 Mon Sep 17 00:00:00 2001 +From: Ioana Radulescu <ruxandra.radulescu@nxp.com> +Date: Wed, 6 Apr 2016 15:05:47 +0300 +Subject: [PATCH 212/226] staging: fsl-dpaa2/mac: Use of_property_read_32() + +Simplify reading of the dpmac id from device tree. + +Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> +(cherry picked from commit b0562bda063f95923bcd8b78dea84a6e0587d3da) +--- + drivers/staging/fsl-dpaa2/mac/mac.c | 13 +++++-------- + 1 file changed, 5 insertions(+), 8 deletions(-) + +--- a/drivers/staging/fsl-dpaa2/mac/mac.c ++++ b/drivers/staging/fsl-dpaa2/mac/mac.c +@@ -461,9 +461,8 @@ static struct device_node *lookup_node(s + { + struct device_node *dpmacs, *dpmac = NULL; + struct device_node *mc_node = dev->of_node; +- const void *id; +- int lenp; +- int dpmac_id_be32 = cpu_to_be32(dpmac_id); ++ u32 id; ++ int err; + + dpmacs = of_find_node_by_name(mc_node, "dpmacs"); + if (!dpmacs) { +@@ -472,12 +471,10 @@ static struct device_node *lookup_node(s + } + + while ((dpmac = of_get_next_child(dpmacs, dpmac))) { +- id = of_get_property(dpmac, "reg", &lenp); +- if (!id || lenp != sizeof(int)) { +- dev_warn(dev, "Unsuitable reg property in dpmac node\n"); ++ err = of_property_read_u32(dpmac, "reg", &id); ++ if (err) + continue; +- } +- if (*(int *)id == dpmac_id_be32) ++ if (id == dpmac_id) + return dpmac; + } + |