LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Vijay Padiyar" <vijay_padiyar@hotmail.com>
To: "LinuxPPC Support" <linuxppc-embedded@ozlabs.org>
Subject: query regarding I2C controller on MPC8260
Date: Fri, 11 Mar 2005 18:28:04 +0530	[thread overview]
Message-ID: <BAY1-DAV11E7EFC29304B234EEB9A38B530@phx.gbl> (raw)

Hi there

I am using an MPC8260-based target board. My target is running U-Boot 1.1.2
as the bootloader and Linux-2.6.10 as the kernel with BusyBox-1.0. I wish to
use the I2C controller on the MPC8260 to access an external EEPROM connected
to it. I need to do this from *user space*.

>From what I understand, we can open the I2C device with the open command
from our application as follows:

ret = open ("/dev/i2c-0", O_RDWR);

After this, the device should be accessible using either standard I2C
functions or SMBus functions.

I read that if the I2C controller supports SMBus, it will be preferable to
access the device via the SMBus read/write functions, as they seem to be
more "efficient." What I want to know is, does the PowerPC I2C controller
support the SMBus protocol? I don't think it does, judging from the MPC8260
manual, but just want to be sure.

Also, do we need to create the /dev/i2c-0 device file manually or will it be
created on the fly?

Regards

Vijay Padiyar

http://www.vijaypadiyar.eu.tf

             reply	other threads:[~2005-03-11 12:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11 12:58 Vijay Padiyar [this message]
2005-03-11 20:39 ` query regarding I2C controller on MPC8260 Yuli Barcohen

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=BAY1-DAV11E7EFC29304B234EEB9A38B530@phx.gbl \
    --to=vijay_padiyar@hotmail.com \
    --cc=linuxppc-embedded@ozlabs.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