From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SV2uj-0005u7-2y for barebox@lists.infradead.org; Thu, 17 May 2012 15:46:54 +0000 Received: from localhost.localdomain (unknown [82.233.81.124]) by smtp3-g21.free.fr (Postfix) with ESMTP id 5AEB9A627F for ; Thu, 17 May 2012 17:46:47 +0200 (CEST) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Thu, 17 May 2012 17:46:11 +0200 Message-Id: <1337269578-20570-9-git-send-email-eric@eukrea.com> In-Reply-To: <1337269578-20570-1-git-send-email-eric@eukrea.com> References: <1337269578-20570-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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 09/16] eukrea_cpuimx35: use switch action to launch usbserial or dfu To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQogYXJjaC9h cm0vYm9hcmRzL2V1a3JlYV9jcHVpbXgzNS9lbnYvYmluL2luaXRfYm9hcmQgfCAgIDIxICsrKysr KysrKysrKysrKysrKysrCiBhcmNoL2FybS9ib2FyZHMvZXVrcmVhX2NwdWlteDM1L2V1a3JlYV9j cHVpbXgzNS5jICB8ICAgMTAgKysrKysrKy0KIGFyY2gvYXJtL2NvbmZpZ3MvZXVrcmVhX2NwdWlt eDM1X2RlZmNvbmZpZyAgICAgICAgIHwgICAxMiArKysrKysrLS0tCiAzIGZpbGVzIGNoYW5nZWQs IDM3IGluc2VydGlvbnMoKyksIDYgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvYXJjaC9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5vdCBzZXQKIENPTkZJR19DT05TT0xFX0FDVElWQVRFX0FMTD15 CiBDT05GSUdfREVGQVVMVF9FTlZJUk9OTUVOVF9HRU5FUklDPXkKQEAgLTI0LDExICsyNSwxMyBA QCBDT05GSUdfQ01EX1NBVkVFTlY9eQogQ09ORklHX0NNRF9FWFBPUlQ9eQogQ09ORklHX0NNRF9Q UklOVEVOVj15CiBDT05GSUdfQ01EX1JFQURMSU5FPXkKK0NPTkZJR19DTURfTUVOVT15CitDT05G SUdfQ01EX01FTlVfTUFOQUdFTUVOVD15CitDT05GSUdfQ01EX0FVVE9NT1VOVD15CiBDT05GSUdf Q01EX0VDSE9fRT15CiBDT05GSUdfQ01EX0xPQURCPXkKIENPTkZJR19DTURfTUVNSU5GTz15CiBD T05GSUdfQ01EX0lPTUVNPXkKLUNPTkZJR19DTURfTUQ1U1VNPXkKIENPTkZJR19DTURfTVRFU1Q9 eQogQ09ORklHX0NNRF9GTEFTSD15CiBDT05GSUdfQ01EX0JPT1RNX1NIT1dfVFlQRT15CkBAIC00 OCwxMiArNTEsMTIgQEAgQ09ORklHX0NNRF9HUElPPXkKIENPTkZJR19DTURfVU5DT01QUkVTUz15 CiBDT05GSUdfQ01EX0kyQz15CiBDT05GSUdfQ01EX0xFRD15Ci1DT05GSUdfQ01EX0xFRF9UUklH R0VSPXkKIENPTkZJR19ORVQ9eQogQ09ORklHX05FVF9ESENQPXkKIENPTkZJR19ORVRfUElORz15 CiBDT05GSUdfTkVUX1RGVFA9eQogQ09ORklHX05FVF9URlRQX1BVU0g9eQorQ09ORklHX05FVF9O RVRDT05TT0xFPXkKIENPTkZJR19EUklWRVJfTkVUX0ZFQ19JTVg9eQogIyBDT05GSUdfU1BJIGlz IG5vdCBzZXQKIENPTkZJR19JMkM9eQpAQCAtNjEsNiArNjQsOSBAQCBDT05GSUdfSTJDX0lNWD15 CiBDT05GSUdfTVREPXkKIENPTkZJR19NVERfUkFXX0RFVklDRT15CiBDT05GSUdfTkFORD15Cisj IENPTkZJR19OQU5EX0VDQ19TT0ZUIGlzIG5vdCBzZXQKKyMgQ09ORklHX05BTkRfRUNDX0hXX1NZ TkRST01FIGlzIG5vdCBzZXQKKyMgQ09ORklHX05BTkRfRUNDX0hXX05PTkUgaXMgbm90IHNldAog Q09ORklHX05BTkRfSU1YPXkKIENPTkZJR19VU0I9eQogQ09ORklHX1VTQl9FSENJPXkKQEAgLTc0 LDggKzgwLDYgQEAgQ09ORklHX01DST15CiBDT05GSUdfTUNJX0lNWF9FU0RIQz15CiBDT05GSUdf TEVEPXkKIENPTkZJR19MRURfR1BJTz15Ci1DT05GSUdfTEVEX1RSSUdHRVJTPXkKLUNPTkZJR19G U19URlRQPXkKIENPTkZJR19GU19GQVQ9eQogQ09ORklHX0ZTX0ZBVF9XUklURT15CiBDT05GSUdf RlNfRkFUX0xGTj15Ci0tIAoxLjcuNy42CgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX18KYmFyZWJveCBtYWlsaW5nIGxpc3QKYmFyZWJveEBsaXN0cy5pbmZy YWRlYWQub3JnCmh0dHA6Ly9saXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4vbGlzdGluZm8vYmFy ZWJveAo=