This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM1808 strange behaviour of hwclock

Other Parts Discussed in Thread: AM1808

Hello,

I have a strange behaviour of hardware clock under Linux on AM1808 (SOM-M1 + baseboard).

It seems to me, that RTC works in 12-hours mode, but hwclock system utility does not support it.
Some test sequences in command line:

root@am180x-evm:~# uname -a
Linux am180x-evm 2.6.37 #2 PREEMPT Tue Jul 5 17:47:10 CDT 2011 armv5tejl unknown
// It's uImage from psp in folder /prebuild-images

root@am180x-evm:~# date -s 2011.12.07-11:59:30
Wed Dec  7 11:59:30 UTC 2011
root@am180x-evm:~# hwclock -w
root@am180x-evm:~# hwclock   
Wed Dec  7 11:59:33 2011  0.000000 seconds

//... wait about 30 seconds

root@am180x-evm:~# hwclock
Sat Dec 10 20:00:04 2011  0.000000 seconds

Look at date and hours values!!!

It's inpossible to set hwclock to any time after 12 o'clock:

root@am180x-evm:~# date -s 2011.12.07-23:59:30
Wed Dec  7 23:59:30 UTC 2011
root@am180x-evm:~# hwclock -w
root@am180x-evm:~# hwclock   
Wed Dec  7 12:59:44 2011  0.000000 seconds

Ok, we can't set more then 12 oclock. Lets wait some seconds, end look at hours value...

root@am180x-evm:~# hwclock
Wed Dec  7 01:02:01 2011  0.000000 seconds

Wow!  Like a 12-hours mode with am/pm indication! But where is it indication???

What's the problem? Where solution? Who is to blame?
rtc_driver? hwclock? Or I'm doing something wrong?