From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-eopbgr700114.outbound.protection.outlook.com ([40.107.70.114] helo=NAM04-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsmON-0005bF-16 for barebox@lists.infradead.org; Thu, 23 Aug 2018 09:59:04 +0000 From: =?UTF-8?q?Florian=20B=C3=A4uerle?= Date: Thu, 23 Aug 2018 11:58:20 +0200 Message-Id: <20180823095820.32590-1-florian.baeuerle@allegion.com> 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] ARM: phytec-phycard-imx27: Add debug UART support To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRmxvcmlhbiBCw6R1ZXJsZSA8Zmxvcmlhbi5iYWV1ZXJsZUBhbGxlZ2lv bi5jb20+Ci0tLQogYXJjaC9hcm0vYm9hcmRzL3BoeXRlYy1waHljYXJkLWlteDI3L2xvd2xldmVs LmMgfCAxNSArKysrKysrKysrKysrKysKIGFyY2gvYXJtL21hY2gtaW14L2luY2x1ZGUvbWFjaC9k ZWJ1Z19sbC5oICAgICAgIHwgMTMgKysrKysrKysrKysrKwogaW5jbHVkZS9zZXJpYWwvaW14LXVh cnQuaCAgICAgICAgICAgICAgICAgICAgICAgfCAgNSArKysrKwogMyBmaWxlcyBjaGFuZ2VkLCAz MyBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvYXJjaC9hcm0vYm9hcmRzL3BoeXRlYy1waHlj YXJkLWlteDI3L2xvd2xldmVsLmMgYi9hcmNoL2FybS9ib2FyZHMvcGh5dGVjLXBoeWNhcmQtaW14 MjcvbG93bGV2ZWwuYwppbmRleCBlMTEzMmUwLi44MjQ0MzM3IDEwMDY0NAotLS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