From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phytec.eu ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XlGo6-0003X1-4f for barebox@lists.infradead.org; Mon, 03 Nov 2014 12:32:27 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id CEDCEA001F6 for ; Mon, 3 Nov 2014 13:32:11 +0100 (CET) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Mon, 3 Nov 2014 13:31:53 +0100 Message-Id: <1415017914-43444-2-git-send-email-t.gamez@phytec.de> In-Reply-To: <1415017914-43444-1-git-send-email-t.gamez@phytec.de> References: <1415017914-43444-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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCHv2 2/3] ARM: am335x: Add register of boot devices To: barebox@lists.infradead.org QWRkIHN1cHBvcnQgZm9yIHJlZ2lzdGVyaW5nIGRpc2FibGVkIGJvb3QgZGV2aWNlcyBmcm9tIG9m dHJlZS4KQ3JlYXRpbmcgYSBkZXZpY2UgdHJlZSB3aXRoIGFsbCBib290YWJsZSBkZXZpY2VzIGRp c2FibGVkLCBtYWtlcwppdCBwb3NzaWJsZSB0byBvbmx5IGVuYWJsZSBhbmQgcmVnaXN0ZXIgdGhl IGRldmljZXMgbmVlZGVkIHRvCmxvYWQgdGhlIG5leHQgc3RhZ2UgYm9vdGxvYWRlci4KClNpZ25l ZC1vZmYtYnk6IFRlcmVzYSBHw6FtZXogPHQuZ2FtZXpAcGh5dGVjLmRlPgotLS0KdjI6Ci0gdXBk YXRlZCBvZiBmdW5jaW9uIG5hbWUKCiBhcmNoL2FybS9tYWNoLW9tYXA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