ARM: kirkwood: retain MAC address for DT ethernet
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 7 Oct 2013 20:25:11 +0000 (22:25 +0200)
committerJason Cooper <jason@lakedaemon.net>
Tue, 8 Oct 2013 16:59:21 +0000 (16:59 +0000)
commitebd7d3ab50f960e780e7c825a42b5cb6e21ee376
treebc397ae5e8ba5095fef1b2ae5a8c9b8fd7249a75
parent3839c08d3ae44cf39b26eecefdae07f7b2443e7e
ARM: kirkwood: retain MAC address for DT ethernet

Ethernet IP on Kirkwood SoCs loose their MAC address register content
if clock gated. To allow modular ethernet driver setups and gated clocks
also on non-DT capable bootloaders, we fixup port device nodes with no
valid MAC address property. This patch copies MAC address register
contents set up by bootloaders early, notably before ethernet clocks
are gated. While at it, also reorder call sequence in _dt_init.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Mike Turquette <mturquette@linaro.org>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-kirkwood/board-dt.c