ARM: OMAP2+: Add GPMC DT support for Ethernet child nodes

Besides being used to interface with external memory devices,
the General-Purpose Memory Controller can be used to connect
Pseudo-SRAM devices such as ethernet controllers to OMAP2+
processors using the TI GPMC as a data bus.

This patch allows an ethernet chip to be defined as an GPMC
child device node.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
This commit is contained in:
Javier Martinez Canillas
2013-03-14 22:54:11 +01:00
zatwierdzone przez Jon Hunter
rodzic 3af91cf701
commit 5330dc161c
2 zmienionych plików z 105 dodań i 0 usunięć

Wyświetl plik

@@ -1544,6 +1544,14 @@ static int gpmc_probe_dt(struct platform_device *pdev)
}
}
for_each_node_by_name(child, "ethernet") {
ret = gpmc_probe_generic_child(pdev, child);
if (ret < 0) {
of_node_put(child);
return ret;
}
}
return 0;
}
#else