tegra: clock: Split the clock source code into a separate function