arm: move clock infrastructure to generic ARM code