From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from vm01-scratchy.webonline.biz ([41.86.105.82]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WPqWP-00046m-9m for barebox@lists.infradead.org; Tue, 18 Mar 2014 09:41:22 +0000 Date: Tue, 18 Mar 2014 11:40:52 +0200 From: Ivor Kruger Message-ID: References: <20140317120956.GV24917@pengutronix.de> In-Reply-To: Mime-version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: GPIO setting To: Sascha Hauer Cc: "barebox@lists.infradead.org" SGksIGFjdHVhbGx5LCBJIGZvdW5kIG15IHByb2JsZW0uCgpZb3Uga25vdyBob3cgdGhleSBzYXkg dGhhdCBhc3N1bXB0aW9ucyBhcmUgdGhlIG1vdGhlciBvZiBhbGwgc2NyZXcgdXBzoUsKCldlbGwg SSBhc3N1bWVkIHRoYXQgdGhlIGZ1bmN0aW9uIHNldF9tdXhjb25mX3JlZ3MoKSB3YXMgY2FsbGVk IGluIHRoZSBpbml0CmZ1bmN0aW9uoUt1cG9uIGNoZWNraW5nIEkgZm91bmQgdGhhdCBpdCB3YXMg bm90LCB0aHVzIHRoZSBtdXggd2FzIGp1c3Qgc2V0CnRvIHRoZSBkZWZhdWx0IHZhbHVlcyBhbmQg bm8gYW1vdW50IG9mIGVkaXRpbmcgaW4gdGhlIHNldHRpbmdzIG1hZGUgYQpkaWZmZXJlbmNlLgoK U28gSSBhZGRlZCBpdCB0byAgYmUgdGhlIGZpcnN0IGxpbmUgaW4gdGhlICJzdGF0aWMgaW50CnBj bTA0OV9kZXZpY2VzX2luaXQodm9pZCmhqCBmdW5jdGlvbi4KCk5vdyB0aGUgbXV4IGdldHMgY29u ZmlndXJlZCBjb3JyZWN0bHkuCgpSZWdhcmRz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