Re: FW: Writing to I2C device during Barebox boot

2013-10-10 Thread Jan Lübbe
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- |


___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


Re: Writing to I2C device during Barebox boot

2013-10-10 Thread Ivor Kruger
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übbe j...@pengutronix.de 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- |


___
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