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.85_2 #1 (Red Hat Linux)) id 1bpJwV-0004Po-9t for barebox@lists.infradead.org; Wed, 28 Sep 2016 18:50:56 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 28 Sep 2016 20:50:16 +0200 Message-Id: <20160928185017.25002-7-u.kleine-koenig@pengutronix.de> In-Reply-To: <20160928185017.25002-1-u.kleine-koenig@pengutronix.de> References: <20160928185017.25002-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/7] scripts: kwboot: set boot source to UART before sending To: barebox@lists.infradead.org U2VuZGluZyBhbiBpbWFnZSB0aGF0IHNwZWNpZmllcyBvbmUgb2YgdGhlIGFsdGVybmF0aXZlIGJv b3Qgc291cmNlcyBkb2Vzbid0Cm1ha2Ugc2Vuc2UuIFNvIGNoYW5nZSB0aGUgYm9vdCBzb3VyY2Ug dG8gVUFSVCBvbiB0aGUgZmx5LgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUu a2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4KLS0tCiBzY3JpcHRzL2t3Ym9vdC5jIHwgMTQg KysrKysrKysrKystLS0KIDEgZmlsZSBjaGFuZ2VkLCAxMSBpbnNlcnRpb25zKCspLCAzIGRlbGV0 aW9ucygtKQoKZGlmZiAtLWdpdCBhL3NjcmlwdHMva3dib290LmMgYi9zY3JpcHRzL2t3Ym9vdC5j CmluZGV4IDFmY2I0OWI3YWNkYS4uOWU0MTgxZTUzOWFjIDEwMDY0NAotL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