mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ivor Kruger <ivor@veriline.co.za>
To: barebox@lists.infradead.org
Subject: Re: Writing to I2C device during Barebox boot
Date: Thu, 10 Oct 2013 06:10:42 -0700	[thread overview]
Message-ID: <CE7BF428.8D50%ivor@veriline.co.za> (raw)
In-Reply-To: <1381390941.11504.41.camel@coredoba.hi.pengutronix.de>

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" <jlu@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-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

  reply	other threads:[~2013-10-10 13:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CE7B48EC.8D30%ivor@veriline.co.za>
2013-10-10  1:59 ` FW: " Ivor Kruger
2013-10-10  7:42   ` Jan Lübbe
2013-10-10 13:10     ` Ivor Kruger [this message]
2013-10-14  8:27       ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CE7BF428.8D50%ivor@veriline.co.za \
    --to=ivor@veriline.co.za \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox