[lm-sensors] rtc can not work (mpc8270 + ds1138 + kernel 2.6.15)
Shao bin Li
shaobinlee at gmail.com
Wed Jan 19 06:11:08 CET 2011
I encounter some problem that rtc can not work.
The platform I used is MPC8270, and the kernel is 2.6.15.
There are two i2c devices: max 1619 and a rtc ds1338.
I add a i2c-mp8260 patch include:
to enable i2c-mpc8260 adapater to work.
to support rtc ds1338 chip.
In the configuration of kernel, select hwmon and max1619,
the max1619 work well after boot uImage.
For ds1338, select char device->gen_rtc and gen_rtc_x,
and ds1338 chip driver.
I use i2cdetect to find that, the max 1619 is at address 0x18,
but the address 0x68 (should be slave address of ds1338) is
not occupied by ds1338.
I guess rtc can not work due to there is no binding process for
ds1338 driver and i2c adapter, and the i2c controller don't know
the exist of rtc ds1338. But I don't know how to bind.
In the kernel such as 2.6.20 and after, there are i2c_board_info structure
and i2c_board_info_register function to tell the board the exist of rtc. But
the kernel of 2.6.14, 2.6.15, 2.6.17, etc, there is no. There must be some
to do binding job. Anybody know that? Please!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lm-sensors