From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phycard.de ([217.6.246.34] helo=root.phytec.de) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S8A7Y-0007Rn-WC for barebox@lists.infradead.org; Thu, 15 Mar 2012 12:49:36 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 1872CBF0E8 for ; Wed, 14 Mar 2012 11:38:27 +0100 (CET) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Thu, 15 Mar 2012 13:49:26 +0100 Message-Id: <1331815767-16220-4-git-send-email-t.gamez@phytec.de> In-Reply-To: <1331815767-16220-1-git-send-email-t.gamez@phytec.de> References: <1331815767-16220-1-git-send-email-t.gamez@phytec.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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/5] devices-gpmc-nand: Add OMAP4 gpmc nand timings To: barebox@lists.infradead.org QWRkIGEgT01BUDQgc3BlY2lmaWMgR01QQyBuYW5kIGNvbmZpZyBmb3IgcGNtMDQ5IGFuZCBwaHlD QVJELUEtWEwyIHRvIGluY3JlYXNlCnBlcmZvcm1hbmNlLiBBbHNvIGFkZCB0aGUgcG9zc2libGls aXR5IHRvIHBhc3MgYSBib2FyZCBHUE1DIG5hbmQgY29uZmlnLgoKU2lnbmVkLW9mZi1ieTogVGVy ZXNhIEfDoW1leiA8dC5nYW1lekBwaHl0ZWMuZGU+Ci0tLQogYXJjaC9hcm0vYm9hcmRzL2JlYWds ZS9ib2FyZC5jICAgICAgICAgICAgICB8ICAgIDMgKy0KIGFyY2gvYXJtL2JvYXJkcy9wY20wNDkv Ym9hcmQuYyAgICAgICAgICAgICAgfCAgICAzICstCiBhcmNoL2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pbmNsdWRlIDxtYWNoL3hs b2FkLmg+CisjaW5jbHVkZSA8bWFjaC9ncG1jLmg+CiAKIHZvaWQgX19ub3JldHVybiByZXNldF9j cHUodW5zaWduZWQgbG9uZyBhZGRyKQogewpAQCAtNDYwLDMgKzQ2MSwxOCBAQCB2b2lkIG9tYXA0 X2RvX3NldF9tdXgodTMyIGJhc2UsIHN0cnVjdCBwYWRfY29uZl9lbnRyeSBjb25zdCAqYXJyYXks IGludCBzaXplKQogCWZvciAoaSA9IDA7IGkgPCBzaXplOyBpKyssIHBhZCsrKQogCQl3cml0ZXco cGFkLT52YWwsIGJhc2UgKyBwYWQtPm9mZnNldCk7CiB9CisKKy8qIEdQTUMgdGltaW5nIGZvciBP TUFQNCBuYW5kIGRldmljZSAqLworY29uc3Qgc3RydWN0IGdwbWNfY29uZmlnIG9tYXA0X25hbmRf Y2ZnID0geworCS5jZmcgPSB7CisJCTB4MDAwMDA4MDAsCS8qIENPTkYxICovCisJCTB4MDAwNTA1 MDAsCS8qIENPTkYyICovCisJCTB4MDAwNDA0MDAsCS8qIENPTkYzICovCisJCTB4MDMwMDAzMDAs CS8qIENPTkY0ICovCisJCTB4MDAwNTA4MDgsCS8qIENPTkY1ICovCisJCTB4MDAwMDAwMDAsCS8q IENPTkY2ICovCisJfSwKKwkvKiBHUE1DIGFkZHJlc3MgbWFwIGFzIHNtYWxsIGFzIHBvc3NpYmxl ICovCisJLmJhc2UgPSAweDI4MDAwMDAwLAorCS5zaXplID0gR1BNQ19TSVpFXzE2TSwKK307Ci0t IAoxLjcuMC40CgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X18KYmFyZWJveCBtYWlsaW5nIGxpc3QKYmFyZWJveEBsaXN0cy5pbmZyYWRlYWQub3JnCmh0dHA6 Ly9saXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4vbGlzdGluZm8vYmFyZWJveAo=