Add support for switching clock to different sources (see atmel datasheet for detail).