From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNcfd-0005yJ-E4 for barebox@lists.infradead.org; Thu, 24 Oct 2019 12:56:54 +0000 Date: Thu, 24 Oct 2019 14:56:51 +0200 From: Michael Tretter Message-ID: <20191024145651.373ed4ae@litschi.hi.pengutronix.de> In-Reply-To: <1571912781-17152-3-git-send-email-thomas.haemmerle@wolfvision.net> References: <1571912781-17152-1-git-send-email-thomas.haemmerle@wolfvision.net> <1571912781-17152-3-git-send-email-thomas.haemmerle@wolfvision.net> 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: Re: [PATCH 2/5] firmware-zynqmp: extend driver with fpga relavant functions To: Thomas =?UTF-8?B?SMOkbW1lcmxl?= Cc: "barebox@lists.infradead.org" T24gVGh1LCAyNCBPY3QgMjAxOSAxMDoyNjo1MSArMDAwMCwgVGhvbWFzIEjDpG1tZXJsZSB3cm90 ZToKPiBGcm9tOiBUaG9tYXMgSGFlbW1lcmxlIDx0aG9tYXMuaGFlbW1lcmxlQHdvbGZ2aXNpb24u bmV0Pgo+IAo+IFBvcnQgZnVuY3Rpb25zIGZyb20geGxueC1saW51eCB0byBnZXQgRlBHQSBzdGF0 dXMgYW5kIGludm9rZSBiaXRzdHJlYW0KPiBsb2FkaW5nLgo+IAo+IFNpZ25lZC1vZmYtYnk6IFRo b21hcyBIYWVtbWVybGUgPHRob21hcy5oYWVtbWVybGVAd29sZnZpc2lvbi5uZXQ+CgpSZXZpZXdl ZC1ieTogTWljaGFlbCBUcmV0dGVyIDxtLnRyZXR0ZXJAcGVuZ3V0cm9uaXguZGU+Cgo+IC0t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