rtc can not work (mpc8270 + ds1138 + kernel 2.6.15)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello there,
 
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:
driver/i2c/busses/i2c-mpc8260.c
include/linux/i2c-algo-8260.h
include/linux/i2c-id.h
to enable i2c-mpc8260 adapater to work.
and add
drivers/i2c/chip/ds1338.c
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 in
the kernel of 2.6.14, 2.6.15, 2.6.17, etc, there is no. There must be some way
to do binding job.  Anybody know that?  Please!
 
 
_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux