From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VpEKf-0004rX-RU for barebox@lists.infradead.org; Sat, 07 Dec 2013 09:37:54 +0000 Received: from localhost.localdomain (unknown [82.233.81.124]) by smtp5-g21.free.fr (Postfix) with ESMTP id 230DDD48114 for ; Sat, 7 Dec 2013 10:37:18 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Sat, 7 Dec 2013 10:36:59 +0100 Message-Id: <1386409020-11914-6-git-send-email-eric@eukrea.com> In-Reply-To: <1386409020-11914-1-git-send-email-eric@eukrea.com> References: <1386409020-11914-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 6/7] sama5d3xek: add NOR CFI support To: barebox@lists.infradead.org bG9nIGlzIG5vdyA6CmNmaV9mbGFzaCBjZmlfZmxhc2gwOiBmb3VuZCBjZmkgZmxhc2ggYXQgMTAw MDAwMDAsIHNpemUgMTY3NzcyMTYKClNpZ25lZC1vZmYtYnk6IEVyaWMgQsOpbmFyZCA8ZXJpY0Bl dWtyZWEuY29tPgotLS0KIGFyY2gvYXJtL2JvYXJkcy9zYW1hNWQzeGVrL2luaXQuYyB8IDM1ICsr KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrCiAxIGZpbGUgY2hhbmdlZCwgMzUgaW5z ZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL2FyY2gvYXJtL2JvYXJkcy9zYW1hNWQzeGVrL2luaXQu YyBiL2FyY2gvYXJtL2JvYXJkcy9zYW1hNWQzeGVrL2luaXQuYwppbmRleCBmZjYyNTUwLi5mN2Rm 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