Enhance readability by separating the samd21 and samd51 clock code. This patch should not introduce any functional changes.