ramips: add proper system clock and reset driver support for legacy SoCs