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 1chj99-0005pT-8n for barebox@lists.infradead.org; Sat, 25 Feb 2017 20:40:55 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sat, 25 Feb 2017 21:40:21 +0100 Message-Id: <20170225204022.12815-3-u.kleine-koenig@pengutronix.de> In-Reply-To: <20170225204022.12815-1-u.kleine-koenig@pengutronix.de> References: <20170225204022.12815-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 v2 5/3] mvebu: dove: simplify soc init code flow To: barebox@lists.infradead.org U2ltaWxhciB0byB0aGUgcHJldmlvdXMgY29tbWl0LCB0aGlzIGdldHMgcmlkIG9mIGEgb2YtZml4 dXAgd2hpY2ggaXMKc3RyYW5nZSBiZWNhdXNlIHRoZSBzb2MgaW5pdCBzdHVmZiBpcyByZXJ1biB0 aGVuIHdoZW4gYSBuZXcgZHQgZm9yCmJvb3RpbmcgaW50byBMaW51eCBpcyBsb2FkZWQuCgpUaGUg aW5pdGNhbGwgbXVzdCBiZSBwb3N0cG9uZWQgdG8gcG9zdC1jb3JlIHRvIGVuc3VyZQpvZl9tYWNo aW5lX2lzX2NvbXBhdGlibGUgaXMgd29ya2luZyBjb3JyZWN0bHkuCgpUaGUgY2FsbCB0byBtdmVi dV9tYnVzX2FkZF9yYW5nZSBpcyBtb3ZlZCB0byBkcml2ZXJzL2J1cy9tdmVidS1tYnVzLmMgdG8K ZW5zdXJlIGl0J3MgcmVnaXN0ZXJlZCBlYXJseSBlbm91Z2guCgpTaWduZWQtb2Z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