hwrtc: generalized; now also support rpi