MPC8260 I2C Problem

jimmy liu jimmyzhmliu at yahoo.com
Fri Jan 26 04:06:27 EST 2007


In the arch\ppc\syslib\pq2_devices.c, there has the
device descriptions.
Do I still need manually create the plateform bus
tree?

--- Li Yang-r58472 <LeoLi at freescale.com> wrote:

> > -----Original Message-----
> > From:
>
linuxppc-embedded-bounces+leoli=freescale.com at ozlabs.org
> >
>
[mailto:linuxppc-embedded-bounces+leoli=freescale.com at ozlabs.org]
> On
> Behalf Of
> > jimmy liu
> > Sent: Thursday, January 25, 2007 11:22 AM
> > To: embedded linuxppc
> > Subject: MPC8260 I2C Problem
> > 
> > I download the linux kernel 2.6.19 from
> > ftp://ftp.denx.de/pub/linux/ site.
> > 
> > When I add mpc8260 I2C driver to Linux kernel
> 2.6.19,
> > the init function looks like that
> > static int __init fsl_i2c_init(void)
> > {
> > 	return driver_register(&fsl_i2c_driver);
> > }
> > I set the debug on, and found that the
> fsl_i2c_probe()
> > function is never called, so there is not I2C
> device
> > enabled, and the user space function
> > open("/dev/i2c-0",O_RDWR) always return error. I
> set
> > something wrong? Could somebody help me?
> 
> Do you have an fsl-i2c node in your device tree?
> 
> - Leo
> 



 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 



More information about the Linuxppc-embedded mailing list