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 1ce2fk-0003BR-Db for barebox@lists.infradead.org; Wed, 15 Feb 2017 16:43:20 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 15 Feb 2017 17:42:48 +0100 Message-Id: <20170215164248.31952-3-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 6/3] mvebu: kirkwood: simplify soc init code flow To: barebox@lists.infradead.org U2ltaWxhciB0byB0aGUgdHdvIHByZXZpb3VzIGNvbW1pdHMsIHRoaXMgZ2V0cyByaWQgb2YgYSBv Zi1maXh1cCB3aGljaAppcyBzdHJhbmdlIGJlY2F1c2UgdGhlIHNvYyBpbml0IHN0dWZmIGlzIHJl cnVuIHRoZW4gd2hlbiBhIG5ldyBkdCBmb3IKYm9vdGluZyBpbnRvIExpbnV4IGlzIGxvYWRlZC4g SXQgYWxzbyBvbmx5IGNhbGxzIG12ZWJ1X21idXNfYWRkX3JhbmdlIGlmCndlJ3JlIHJ1bm5pbmcg b24gYSBLaXJrd29vZC4KClRoZSBpbml0Y2FsbCBtdXN0IGJlIHBvc3Rwb25lZCB0byBwb3N0LWNv cmUgdG8gZW5zdXJlCm9mX21hY2hpbmVfaXNfY29tcGF0aWJsZSBpcyB3b3JraW5nIGNvcnJlY3Rs eS4KClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS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