From mboxrd@z Thu Jan 1 00:00:00 1970 From: jason@lakedaemon.net (Jason Cooper) Date: Sun, 27 Jan 2013 11:41:20 -0500 Subject: [PATCH] clk: mvebu: Do not gate ge0/1 and runit clocks on Kirkwood In-Reply-To: <20130127164104.1b2e66e6@skate> References: <1359226864-28811-1-git-send-email-gmbnomis@gmail.com> <20130126235037.GV1758@titan.lakedaemon.net> <20130127013131.GA2400@schnuecks.de> <5104FE5F.2040804@gmail.com> <20130127105654.GA23127@schnuecks.de> <51050B9E.8000605@gmail.com> <20130127152837.GI29973@lunn.ch> <20130127164104.1b2e66e6@skate> Message-ID: <20130127164120.GA1758@titan.lakedaemon.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sun, Jan 27, 2013 at 04:41:04PM +0100, Thomas Petazzoni wrote: > Dear Andrew Lunn, > > On Sun, 27 Jan 2013 16:28:37 +0100, Andrew Lunn wrote: > > > I've been thinking the same, store the MAC address before turning the > > clock off and restore it when enabling the clock. We have a need for > > special clocks on kirkwood anyway for turning off the sata and pcie > > PHYs. So adding special clocks for ethernet is not too big a deal. > > At least on Armada 370/XP, U-Boot passes the MAC address through a > special ATAG. Willy Tarreau has written some code to read this special > ATAG and feed it into the Device Tree, so that we get the MAC address > as set by U-Boot. I unfortunately haven't had the time to look at > Willy's code and push it, but it does seem like an interesting solution. Does this add on to ARM_ATAG_DTB_COMPAT [1]? Perhaps APPENDED_DTB should select it? Maybe the answer is as simple as having the driver pull the mac address from the dtb while ARM_ATAG_DTB_COMPAT is configured. thx, Jason. [1] arch/arm/Kconfig:1970