From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SVHpA-0003Et-Ab for barebox@lists.infradead.org; Fri, 18 May 2012 07:42:09 +0000 Received: from localhost.localdomain (unknown [82.240.38.71]) by smtp2-g21.free.fr (Postfix) with ESMTP id 093BF4B00D1 for ; Fri, 18 May 2012 09:42:02 +0200 (CEST) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Fri, 18 May 2012 09:41:41 +0200 Message-Id: <1337326905-555-6-git-send-email-eric@eukrea.com> In-Reply-To: <1337326905-555-1-git-send-email-eric@eukrea.com> References: <1337326905-555-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 v2 06/10] eukrea_cpuimx25&35: use switch action to launch usbserial or dfu To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQogYXJjaC9h cm0vYm9hcmRzL2V1a3JlYV9jcHVpbXgyNS9lbnYvYmluL2luaXRfYm9hcmQgfCAgIDIxICsrKysr KysrKysrKysrKysrKysrCiBhcmNoL2FybS9ib2FyZHMvZXVrcmVhX2NwdWlteDI1L2V1a3JlYV9j cHVpbXgyNS5jICB8ICAgIDcgKysrKysrCiBhcmNoL2FybS9ib2FyZHMvZXVrcmVhX2NwdWlteDM1 L2Vudi9iaW4vaW5pdF9ib2FyZCB8ICAgMjEgKysrKysrKysrKysrKysrKysrKysKIGFyY2gvYXJt L2JvYXJkcy9ldWtyZWFfY3B1aW14MzUvZXVrcmVhX2NwdWlteDM1LmMgIHwgICAxMCArKysrK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