summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2014-03-13 18:10:02 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-19 07:43:02 +0100
commita6750920eda7abe33b1cbc737afbdc3e13b707a4 (patch)
tree1f71203d22fd7aeddcd0bc5b9a9e4b45223441c8
parente172c508c62542e85843f64f91b339d555cbf2e4 (diff)
downloadbarebox-a6750920eda7abe33b1cbc737afbdc3e13b707a4.tar.gz
ppc: mpc85xx: add stashing support
The eTSEC 2.0 devices found on the 85xx family of SoCs support stashing buffer descriptors in the L2 cache. This updates the device tree fixup for these devices to ensure that the stashing related properties used by Linux are initialised correctly. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/ppc/mach-mpc85xx/fdt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/ppc/mach-mpc85xx/fdt.c b/arch/ppc/mach-mpc85xx/fdt.c
index b1da144..1a2d780 100644
--- a/arch/ppc/mach-mpc85xx/fdt.c
+++ b/arch/ppc/mach-mpc85xx/fdt.c
@@ -54,6 +54,14 @@ static void fdt_add_enet_stashing(void *fdt)
of_property_write_u32(node, "rx-stash-idx", 0);
node = of_find_compatible_node(node, NULL, "gianfar");
}
+
+ node = of_find_compatible_node(fdt, NULL, "fsl,etsec2");
+ while (node) {
+ of_set_property(node, "bd-stash", NULL, 0, 1);
+ of_property_write_u32(node, "rx-stash-len", 96);
+ of_property_write_u32(node, "rx-stash-idx", 0);
+ node = of_find_compatible_node(node, NULL, "fsl,etsec2");
+ }
}
static int fdt_stdout_setup(struct device_node *blob)