I2C: Add I2C support for the MPC8260
PATCH 1/1 I2C: Add I2C support for the MPC8260
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 functionopen("/dev/i2c-0",O_RDWR) always return error. I set something wrong?
____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
Quoted 7 lines · jimmy liu
When I add mpc8260 I2C driver to Linux Kernel 2.6.19, the init function looks like that
static int__initfsl_i2c_init(void)
{
returndriver_register(&fsl_i2c_driver);
}
Quoted 6 lines
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 functionopen("/dev/i2c-0",O_RDWR)always return error. I set something wrong?
You need something to create a device to match the driver you've just registered. This has usually been done with the platform bus and using platform_devices in the past.
- k