From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from m15-112.126.com ([220.181.15.112]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbPqG-0002Aq-5h for barebox@lists.infradead.org; Thu, 22 Nov 2012 06:00:54 +0000 From: =?UTF-8?q?=E5=BC=A0=E5=BF=A0=E5=B1=B1?= Date: Thu, 22 Nov 2012 14:01:36 +0800 Message-Id: <1353564096-18861-1-git-send-email-zzs213@126.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] read cfi device id according the bus width To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTog5byg5b+g5bGxIDx6enMyMTNAMTI2LmNvbT4KLS0tCiBkcml2ZXJzL25v ci9jZmlfZmxhc2hfYW1kLmMgfCAgICA3ICsrKysrLS0KIDEgZmlsZXMgY2hhbmdlZCwgNSBpbnNl cnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2RyaXZlcnMvbm9yL2NmaV9m bGFzaF9hbWQuYyBiL2RyaXZlcnMvbm9yL2NmaV9mbGFzaF9hbWQuYwppbmRleCA0NWM1OWI5Li4z YWI0YmUwIDEwMDY0NAotLS0gYS9kcml2ZXJzL25vci9jZmlfZmxhc2hfYW1kLmMKKysrIGIvZHJp dmVycy9ub3IvY2ZpX2ZsYXNoX2FtZC5jCkBAIC02Miw4ICs2MiwxMSBAQCBzdGF0aWMgdm9pZCBh bWRfcmVhZF9qZWRlY19pZHMgKHN0cnVjdCBmbGFzaF9pbmZvICppbmZvKQogCXVkZWxheSgxMDAw KTsgLyogc29tZSBmbGFzaCBhcmUgc2xvdyB0byByZXNwb25kICovCiAKIAlpbmZvLT5tYW51ZmFj dHVyZXJfaWQgP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