Am 03.05.2010 um 21:35 schrieb Dr. H. Nikolaus Schaller:

So what can we learn? I think I should look into the sources of the old RTC driver to find out what it is doing differently (with respect to initialization, e.g. GPIO assignment?).

Learings:

1. the working driver is at driver/character/rtc_pcf8563.c
2. it directly calls i2c_open(), i2c_read(), i2c_close() etc. from arch/mips/jz4730/i2c.c 3. is initialized (pcf_rtc_init) many dmesg lines after hctosys fails (rtc_init)
4. no specific GPIO assignments found
5. i2c_open calls __i2c_enable
6. this is defined in kernel/include/asm/mach-jz4730/ops.h and sets some registers - maybe, this is missing for the "new" i2c driver (at least I haven't seen it in the code I copied from the Qi-Hardware project).

BR,
Nikolaus
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel

Reply via email to