clk reworked

Signed-off-by: Carlo Caione <carlo@caione.org>
reworking wip

Signed-off-by: Carlo Caione <carlo@caione.org>