From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.x-arc.de ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZFeuF-000727-FR for barebox@lists.infradead.org; Thu, 16 Jul 2015 08:52:40 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 27B2BA0023D for ; Thu, 16 Jul 2015 10:54:01 +0200 (CEST) From: Daniel Schultz Date: Thu, 16 Jul 2015 10:51:47 +0200 Message-Id: <1437036707-48320-1-git-send-email-d.schultz@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: [PATCH v2 2/2] ARM: am335x: Changed timer To: barebox@lists.infradead.org VGhlIGRtdGltZXIwIGlzIHRvbyBpbmFjY3VyYXRlIHRvIGJlIHVzZWQgZm9yIG1lYXN1cmVtZW50 cy4KV2Ugc3dpdGNoIHRvIHRoZSBtb3JlIGFjY3VyYXRlIGRtdGltZXIyLgoKU2lnbmVkLW9mZi1i eTogRGFuaWVsIFNjaHVsdHogPGQuc2NodWx0ekBwaHl0ZWMuZGU+Ci0tLQoKIENoYW5nZXM6Cgl2 MjoKCS0gcmVuYW1lZCBkbXRpbWVyMi5jIGluIGRtdGltZXIuYwoJLSBtb3ZlZCBiYXNlIGFkZHJl c3MgZGVmaW5lcyB0byBnbG9iYWwgdmFyaWFibGUKCiBhcmNoL2FybS9tYWNoLW9tYXAvS2NvbmZp ZyAgICAgICAgICAgICAgICAgICAgICAgfCAgNCArLQogYXJjaC9hcm0vbWFjaC1vbWFwL01ha2Vm aWxlICAgICAgICAgICAgICAgICAgICAgIHwgIDIgKy0KIGFyY2gvYXJtL21hY2gtb21hcC9kbXRp bWVyLmMg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