[Sound-open-firmware] [PATCH 1/3] clk: fix ApolloLake SSP clock values

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Wed Mar 7 03:49:17 CET 2018



On 03/06/2018 08:06 PM, Keyon Jie wrote:
>
>
> On 2018年03月07日 08:07, Pierre-Louis Bossart wrote:
>> 24.576, not 24.0 MHz
>>
>> Signed-off-by: Pierre-Louis Bossart 
>> <pierre-louis.bossart at linux.intel.com>
>> ---
>>   src/platform/apollolake/clk.c | 3 +--
>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/src/platform/apollolake/clk.c 
>> b/src/platform/apollolake/clk.c
>> index 32d3236..555caae 100644
>> --- a/src/platform/apollolake/clk.c
>> +++ b/src/platform/apollolake/clk.c
>> @@ -72,11 +72,10 @@ static const struct freq_table cpu_freq[] = {
>>     /*
>>    * XTAL clock, used as Wall Clock(external timer),
>> - * 19.2M for Atom and 24M for core
>>    */
>>   static const struct freq_table ssp_freq[] = {
>>       {19200000, 19,},    /* default */
>> -    {24000000, 24,},
>> +    {24576000, 24,},
>
> I am not sure if this is correct. For historical reason, here we use 
> it for work queue timer but not SSP related actually, detail to APL, 
> it is the frequency of Wall Clock, I verified it is 19.2M for 
> Atom(e.g. GPMRB) and heard from Seppo that it is 24M on core(I haven't 
> verified it yet).
this is for ApolloLake only, and 24MHz does not exist at all.
24.576 is the output of the PLL, whether this is usable or not as wall 
clock is a separate story. If not then let's remove this value completely.
For CNL there is a different table in src/platform/cannonlake.c.
>
> Thanks,
> ~Keyon
>
>>   };
>>     #define CPU_DEFAULT_IDX        2
>>



More information about the Sound-open-firmware mailing list