From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.microcatalog.org.uk ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XjoRe-0001rh-Hn for barebox@lists.infradead.org; Thu, 30 Oct 2014 12:03:15 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 4AD9BA004C9 for ; Thu, 30 Oct 2014 13:03:00 +0100 (CET) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Thu, 30 Oct 2014 13:02:51 +0100 Message-Id: <1414670572-43351-2-git-send-email-t.gamez@phytec.de> In-Reply-To: <1414670572-43351-1-git-send-email-t.gamez@phytec.de> References: <1414670572-43351-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: [For next PATCH 2/3] ARM: am335x: Add register of boot devices To: barebox@lists.infradead.org QWRkIHN1cHBvcnQgZm9yIHJlZ2lzdGVyaW5nIGRpc2FibGVkIGJvb3QgZGV2aWNlcyBmcm9tIG9m dHJlZS4KQ3JlYXRpbmcgYSBkZXZpY2UgdHJlZSB3aXRoIGFsbCBib290YWJsZSBkZXZpY2VzIGRp c2FibGVkLCBtYWtlcwppdCBwb3NzaWJsZSB0byBvbmx5IGVuYWJsZSBhbmQgcmVnaXN0ZXIgdGhl IGRldmljZXMgbmVlZGVkIHRvCmxvYWQgdGhlIG5leHQgc3RhZ2UgYm9vdGxvYWRlci4KClNpZ25l ZC1vZmYtYnk6IFRlcmVzYSBHw6FtZXogPHQuZ2FtZXpAcGh5dGVjLmRlPgotLS0KIGFyY2gvYXJt L21hY2gtb21hcC9hbTMzeHhfZ2VuZXJpYy5jICAgICAgICAgICAgICB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