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 t

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 helpi