There are two options,
-
Use devmem application directly to change the parent. I wouldn’t recommend this to you, since kernel clock framework will not aware of this change and if timer is active during this write operation it may lead to malfunction of module.
-
Use standard kernel clock api clk_set_parent().
Thanks,
Vaibhav