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 1ZFN3H-0005WC-TF for barebox@lists.infradead.org; Wed, 15 Jul 2015 13:48:49 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 3932AA0020D for ; Wed, 15 Jul 2015 15:50:06 +0200 (CEST) From: Daniel Schultz Date: Wed, 15 Jul 2015 15:47:54 +0200 Message-Id: <1436968074-36098-2-git-send-email-d.schultz@phytec.de> In-Reply-To: <1436968074-36098-1-git-send-email-d.schultz@phytec.de> References: <1436968074-36098-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 2/2] ARM: am335x: Changed timer To: barebox@lists.infradead.org VGhlIGRtdGltZXIwIGlzIHRvbyBpbmFjY3VyYXRlIHRvIGJlIHVzZWQgZm9yIG1lYXN1cmVtZW50 cy4KV2Ugc3dpdGNoIHRvIHRoZSBtb3JlIGFjY3VyYXRlIGRtdGltZXIyLgoKU2lnbmVkLW9mZi1i eTogRGFuaWVsIFNjaHVsdHogPGQuc2NodWx0ekBwaHl0ZWMuZGU+Ci0tLQogYXJjaC9hcm0vbWFj aC1vbWFwL0tjb25maWcgICAgICAgICAgICAgICAgICAgICAgIHwgIDQgKy0KIGFyY2gvYXJtL21h Y2gtb21hcC9NYWtlZmlsZSAgICAgICAgICAgICAgICAgICAgICB8ICAyICstCiBhcmNoL2FybS9t YWNoLW9tYXAvZG10aW1lcjAuYyAgICAgICAgICAgICAgICAgICAgfCA4NSAtLS0tLS0tLS0tLS0t LS0tLS0tLS0tCiBhcmNoL2FybS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