unicore32 rtc driver fix: cleanup irq_set_freq and irq_set_state