On 04/28/2014 02:22 PM, Manuel Reimer wrote:
Lukasz Skalski <l.skalski <at> samsung.com> writes:
You can define which RTC (/dev/rtcX) should be read -
"(rtc1) RTC used to set the system time" option in kernel menuconfig.
Yes, this is possible. But my RTC does not exist until I do the following on
shell:
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
Is there some other config option to tell the kernel to auto-initialize the
I2C clock module?
One of possibilities is add i2c_board_info struct in
../arch/arm/XXX-mach/your_device.c file. For example:
static struct i2c_board_info __initdata XXX_i2c_devices[] = {
{
I2C_BOARD_INFO("rtc-ds1307", 0x68),
.type = "ds1307",
},
};
And in the same file (in __init XXX_init(void) function):
i2c_register_board_info(1,bcm2708_i2c_devices,ARRAY_SIZE(XXX_i2c_devices));
BR,
--
Lukasz Skalski
Samsung R&D Institute Poland
Samsung Electronics
[email protected]
Thanks in advance.
Greetings,
Manuel
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel