平台:S3C2410+ Linux-2.6.39.4
现在我弄rtc,发现rtccon这个寄存器读写正常
但读写BCDYEAR之类的寄存器发现无法写入,譬如我给BCDYEAR寄存器写入数据,读出来是ff
如下:
/ # date -s 2011.02.09-23:09:00
Wed Feb 9 23:09:00 UTC 2011
/ # hwclock -w
***LPC***[s3c_rtc_settime] bin2bcd(tm->tm_sec) = 4, S3C2410_RTCSEC = 70
***LPC***[s3c_rtc_settime] bin2bcd(tm->tm_min) = 9, S3C2410_RTCMIN = 7f
***LPC***[s3c_rtc_settime] bin2bcd(tm->tm_hour) = 23, S3C2410_RTCHOUR = 3f
***LPC***[s3c_rtc_settime] bin2bcd(tm->tm_mday) = 9, S3C2410_RTCDATE = 3f
***LPC***[s3c_rtc_settime] bin2bcd(tm->tm_mon + 1) = 2, S3C2410_RTCYEAR = 1f
***LPC***[s3c_rtc_settime] bin2bcd(year) = 11, S3C2410_RTCYEAR = ff
关键词:
求助
S3C2410
奇怪
问题