From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp3-g21.free.fr ([212.27.42.3]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWnms-00069m-Ei for barebox@lists.infradead.org; Wed, 24 Sep 2014 14:43:23 +0000 Received: from e6520eb.local.eukrea.fr (unknown [88.170.243.169]) by smtp3-g21.free.fr (Postfix) with ESMTP id 2C438A6338 for ; Wed, 24 Sep 2014 16:42:42 +0200 (CEST) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Wed, 24 Sep 2014 16:42:59 +0200 Message-Id: <1411569779-11968-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] imx-image: handle i.MX35 special case To: barebox@lists.infradead.org RnJvbSB0aGUgaS5NWDM1IHVzZXIgbWFudWFsIDoKU2luY2UgTUxDIE5BTkQgRmxhc2ggZGV2aWNl cyBkbyBub3QgZ3VhcmFudGVlIGVycm9yLWZyZWUgYm9vdCBibG9ja3MsCnRoZSBpLk1YMzUgYm9v dCBjb2RlIHJlcXVpcmVzIHRoYXQgdGhlIGZpcnN0IDQgS2J5dGVzIG9mIGJvb3QgY29kZSBiZQpk dXBsaWNhdGVkIGluIGEgc3Vic2VxdWVudCBibG9jayB0byBzZXJ2ZSBhcyBhIHNlY29uZCBjb3B5 IG9wdGlvbi4KCkFjdHVhbGx5IGlteC1pbWFnZSBwdXRzIHRoZSBpbWFnZSBhdCA0ayBidXQgaXQg c2VlbXMgdGhhdCB0aGUgaS5NWDM1CmJvb3Ryb20gY29waWVzIG9ubHkgZnJvbSA4ayBhcyBpdCBl eHBlY3RzIHRoYXQgdGhlcmUgaXMgYSBjb3B5IG9mIHRoZQpmaXJzdCAwLTRrIGluIDR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