Hello everyone. I have a problem with rtc bq32000 in beagleboard.
I use rtc bq32000 for real time clock function in my beagle board. At present, i can see it on i2c bus 2 at 0x68 address. I can read/write and show the time in registers using i2c tools (i2cset, i2cget, i2cdetect and i2cdump).
But the problem is the board is not recognize the dev rtc.
When i use hwclock, the error: 'no such file or directory" is displayed. I don't have rtc0 device.
I think the reason is that i didn't register it in board specific file board-omap3beagle.c.
I tried :
static struct i2c_board_info __initdata beagle_i2c_rtc[] = {
{
I2C_BOARD_INFO("bq32k", 0x68),
},
};
and
static int __init omap3_beagle_i2c_init(void)
{
omap_register_i2c_bus(1, 2600, beagle_i2c_boardinfo,
ARRAY_SIZE(beagle_i2c_boardinfo));
omap_register_i2c_bus(2, 400, beagle_i2c_rtc, ARRAY_SIZE(beagle_i2c_rtc));
}
But it is not successful.
So, Does anyone have the solution for my problem.
Thanks for reading this!!!