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 1chj94-0005pS-Bi for barebox@lists.infradead.org; Sat, 25 Feb 2017 20:40:52 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sat, 25 Feb 2017 21:40:22 +0100 Message-Id: <20170225204022.12815-4-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 6/3] mvebu: kirkwood: simplify soc init code flow To: barebox@lists.infradead.org U2ltaWxhciB0byB0aGUgdHdvIHByZXZpb3VzIGNvbW1pdHMsIHRoaXMgZ2V0cyByaWQgb2YgYSBv Zi1maXh1cCB3aGljaAppcyBzdHJhbmdlIGJlY2F1c2UgdGhlIHNvYyBpbml0IHN0dWZmIGlzIHJl cnVuIHRoZW4gd2hlbiBhIG5ldyBkdCBmb3IKYm9vdGluZyBpbnRvIExpbnV4IGlzIGxvYWRlZC4K ClRoZSBpbml0Y2FsbCBtdXN0IGJlIHBvc3Rwb25lZCB0byBwb3N0LWNvcmUgdG8gZW5zdXJlCm9m X21hY2hpbmVfaXNfY29tcGF0aWJsZSBpcyB3b3JraW5nIGNvcnJlY3RseS4KClRoZSBjYWxsIHRv IG12ZWJ1X21idXNfYWRkX3JhbmdlIGlzIG1vdmVkIHRvIGRyaXZlcnMvYnVzL212ZWJ1LW1idXMu YyB0bwplbnN1cmUgaXQncyByZWdpc3RlcmVkIGVhcmx5IGVub3VnaC4KClNpZ25lZC1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