From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx8-out.webonline.biz ([41.86.105.118] helo=assp01.webonline.biz) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VUG1p-0004vj-Kd for barebox@lists.infradead.org; Thu, 10 Oct 2013 13:11:47 +0000 Received: from ASSP.nospam (localhost.localdomain [127.0.0.1]) by assp01.webonline.biz (Postfix) with ESMTP id 2728F3A09F for ; Thu, 10 Oct 2013 15:10:55 +0200 (SAST) Date: Thu, 10 Oct 2013 06:10:42 -0700 From: Ivor Kruger Message-ID: In-Reply-To: <1381390941.11504.41.camel@coredoba.hi.pengutronix.de> Mime-version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Writing to I2C device during Barebox boot To: barebox@lists.infradead.org Jan, thanks for the reply, I will look into using git-send-email a bit later since I am going to travel this morning fro a few hours. My question was however a little bit more generic. Take for example the PCM049 board.c file. One of the I2C components it loads is the TWL6030. If I wish to write to a register on this device, how would I go about it. By the way, I am using PHYTEC_PD13_Linux from pengutronix. It includes barebox-2013-06.0 Thanks for your help. Ivor On 2013/10/10 12:42 AM, "Jan L=FCbbe" wrote: >On Wed, 2013-10-09 at 18:59 -0700, Ivor Kruger wrote: >> But this is where my linux knowledge is letting me down. >> = >> How do I get a "handle" to the device in order to call the write_reg >> function? >> = >> Your pointers and help is much appreciated. > >Could you show us your code? That would make helping you much easier. >Please see 'man git-send-email' on how to send patches with git. > >Regards, >Jan >-- = >Pengutronix e.K. | | >Industrial Linux Solutions | http://www.pengutronix.de/ | >Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | >Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > >_______________________________________________ >barebox mailing list >barebox@lists.infradead.org >http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox