How to configure a generic clock for source and prescale?

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

mikehaben
Posts: 17
Joined: Mon Jul 22, 2019 4:20 pm

How to configure a generic clock for source and prescale?

Mon Sep 09, 2019 4:22 pm

OK, wholesale replacement of my previous post, as I now realise it probably made no sense at all!

My hardware situation is quite simple: a MAX9860 audio codec connected to I2S1 interface of a SAMA5D27, with I2S1's MCLK output acting as the codec's source clock.

How do I configure I2S1 to use its "generic-clock" source, and configure that generic-clock to use something other than the 32kHz clock (so main, plladiv, utmi, mck or audio_pll_pmc) as its source?

As a previous post (viewtopic.php?t=26510) noted, the topic of programmable clocks is "not so easy to understand" if you're not an Atmel specialist, one or two concrete examples in the documentation would be really helpful!

Return to “LINUX”

Who is online

Users browsing this forum: Google [Bot] and 15 guests