From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ce2ff-0003AC-Fk for barebox@lists.infradead.org; Wed, 15 Feb 2017 16:43:13 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 15 Feb 2017 17:42:47 +0100 Message-Id: <20170215164248.31952-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20170214105358.6666-1-u.kleine-koenig@pengutronix.de> References: <20170214105358.6666-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/3] mvebu: dove: simplify soc init code flow To: barebox@lists.infradead.org U2ltaWxhciB0byB0aGUgcHJldmlvdXMgY29tbWl0LCB0aGlzIGdldHMgcmlkIG9mIGEgb2YtZml4 dXAgd2hpY2ggaXMKc3RyYW5nZSBiZWNhdXNlIHRoZSBzb2MgaW5pdCBzdHVmZiBpcyByZXJ1biB0 aGVuIHdoZW4gYSBuZXcgZHQgZm9yCmJvb3RpbmcgaW50byBMaW51eCBpcyBsb2FkZWQuIEl0IGFs c28gb25seSBjYWxscwptdmVidV9tYnVzX2FkZF9yYW5nZSBpZiB3ZSdyZSBydW5uaW5nIG9uIGEg RG92ZS4KClRoZSBpbml0Y2FsbCBtdXN0IGJlIHBvc3Rwb25lZCB0byBwb3N0LWNvcmUgdG8gZW5z dXJlCm9mX21hY2hpbmVfaXNfY29tcGF0aWJsZSBpcyB3b3JraW5nIGNvcnJlY3RseS4KClNpZ25l ZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2VuaWdAcGVuZ3V0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