From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([212.27.42.2]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OemE6-0004wt-Ih for barebox@lists.infradead.org; Fri, 30 Jul 2010 09:50:05 +0000 From: =?utf-8?q?Eric=20B=C3=A9nard?= Date: Fri, 30 Jul 2010 11:49:55 +0200 Message-Id: <1280483395-9043-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] cfi_flash_intel: support 1024b buffer write To: s.hauer@pengutronix.de Cc: barebox@lists.infradead.org bmV3ZXIgTnVtb255eCBTdHJhdGFmbGFzaCBQM3ggaGF2ZSAxMDI0YiBidWZmZXIsIHRodXMsIGl0 J3MgcG9zc2libGUKdG8gd3JpdGUgYSBidWZmZXIgc2l6ZSBvZiAweDIwMCB3aGljaCB0aGUgYWN0 dWFsIGZsYXNoX3dyaXRlX2NtZApkb2Vzbid0IHBlcm1pdCBhcyBpdCdzIGxpbWl0ZWQgdG8gYSB1 Y2hhciBwYXJhbWV0ZXIuCgpTaWduZWQtb2ZmLWJ5OiBFcmljIELDqW5hcmQgPGVyaWNAZXVrcmVh LmNvbT4KLS0tCiBkcml2ZXJzL25vci9jZmlfZmxhc2guYyAgICAgICB8ICAgMTEgKysrKysrKysr KysKIGRyaXZlcnMvbm9yL2NmaV9mbGFzaC5oICAgICAgIHwgICAgMSArCiBkcml2ZXJzL25vci9j ZmlfZmxhc2hfaW50ZWwuYyB8ICAgIDUgKysrKy0KIDMgZmlsZXMgY2hhbmdlZCwgMTYgaW5zZXJ0 aW9ucygrKSwgMSBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9kcml2ZXJzL25vci9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