From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp1-g21.free.fr ([212.27.42.1]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZfVFX-0001Tn-BY for barebox@lists.infradead.org; Fri, 25 Sep 2015 15:49:28 +0000 From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Fri, 25 Sep 2015 17:48:50 +0200 Message-Id: <1443196132-573-4-git-send-email-eric@eukrea.com> In-Reply-To: <1443196132-573-1-git-send-email-eric@eukrea.com> References: <1443196132-573-1-git-send-email-eric@eukrea.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 4/6] eukrea-cpuimx25: setup usb through chipidea-imx driver To: barebox@lists.infradead.org Cc: Florian Vallee RnJvbTogRmxvcmlhbiBWYWxsZWUgPGZ2YWxsZWVAZXVrcmVhLmZyPgoKT1RHIGFuZCBIT1NUIHBv cnQgYXJlIHRlc3RlZCB3aXRoIGEgbWFzcyBzdG9yYWdlIGRldmljZS4KClNpZ25lZC1vZmYtYnk6 IEZsb3JpYW4gVmFsbGVlIDxmdmFsbGVlQGV1a3JlYS5mcj4KU2lnbmVkLW9mZi1ieTogRXJpYyBC w6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQogYXJjaC9hcm0vYm9hcmRzL2V1a3JlYV9jcHVp bXgyNS9ldWtyZWFfY3B1aW14MjUuYyB8IDY5ICsrKysrKysrKysrLS0tLS0tLS0tLS0tCiAxIGZp bGUgY2hhbmdlZCwgMzIgaW5zZXJ0aW9ucygrKSwgMzcgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0 IGEvYXJjaC9hcm0vYm9hcmRzL2V1a3JlYV9jcHVpbXgyNS9ldWtyZWFfY3B1aW14MjUuYyBi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