I am trying to add the DS1307 driver to my platform. I know the DS1307 is present as I can run test code and read the registers. It's on the I2C-0 bus.
I have built the driver into the kernel and I can see the following in dmesg output. i2c-core: driver [rtc-ds1307] registered but when the system boots further into the loading it displays the following: drivers/rtc/hctosys.c: unable to open rtc device (rtc0) I have tried to call the following code in *core.c* during the sun7i_init call, which is called before the failed line above. i2c_register_board_info(0, ds1307_i2c_board_info, ARRAY_SIZE(ds1307_i2c_board_info)); with the following struct: static struct i2c_board_info __initdata ds1307_i2c_board_info[] = { { .type = "rtc-ds1307", .addr = 0x68, }, }; but the ds1307 driver *probe* function never gets called.I read elsewhere that I2C devices don't get probed as such so how do I get the probe function to be called? -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.