9
0
Fork 0

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>
This commit is contained in:
Renaud Barbier 2014-03-13 18:10:02 +00:00 committed by Sascha Hauer
parent e172c508c6
commit a6750920ed
1 changed files with 8 additions and 0 deletions

View File

@ -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)