Hello, here is corrected patch 2/2 to add an driver for at91sam9x which uses the internal RTT as RTC. Sorry for not testing my last minute changes before. It was late. ;) The previous send patch 1/2 which adds some defines is still needed. Tested on an AT91SAM9263. Kind regards, Alexander Holler