From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d8hBL-00068G-6J for barebox@lists.infradead.org; Thu, 11 May 2017 06:02:37 +0000 From: Sascha Hauer Date: Thu, 11 May 2017 08:02:07 +0200 Message-Id: <20170511060207.11121-1-s.hauer@pengutronix.de> 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: i.MX50: Amazon Kindle: Add missing compatibility checks To: Barebox List QWRkIHRoZSBjaGVja3MgdG8gcHJldmVudCBLaW5kbGUgc3BlY2lmaWMgY29kZSBvbiBvdGhlciBt YWNoaW5lcy4KVGhpcyBhbHNvIGFkZHMgY29tcGF0aWJsZSBzdHJpbmdzIGZvciB0aGUgS2luZGxl IG1hY2hpbmVzIGFzIHRoZXkKY3VycmVudGx5IGxhY2sgdGhlbS4KClJlcG9ydGVkLWJ5OiBTdGVm YW4gUmllZG3DvGxsZXIgPFMuUmllZG11ZWxsZXJAcGh5dGVjLmRlPgpTaWduZWQtb2ZmLWJ5OiBT YXNjaGEgSGF1ZXIgPHMuaGF1ZXJAcGVuZ3V0cm9uaXguZGU+Ci0tLQogYXJjaC9hcm0vYm9hcmRz L2tpbmRsZS1teDUwL2JvYXJkLmMgIHwgMTkgKysrKysrKysrKysrKysrKysrKwogYXJjaC9hcm0v ZHRzL2lteDUwLWtpbmRsZS1kMDExMDAuZHRzIHwgIDIgKy0KIGFyY2gvYXJtL2R0cy9pbXg1MC1r aW5kbGUtZDAxMjAwLmR0cyB8ICAyICstCiAzIGZpbGVzIGNoYW5nZWQsIDIxIGluc2VydGlvbnMo KyksIDIgZGVsZXRpb25zKC0p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