[OpenWrt-Devel] [PATCH 9/9] ramips: use gic timer as clocksource for mt7621

John Crispin blogic at openwrt.org
Fri Dec 11 13:33:09 EST 2015



On 11/12/2015 17:31, Nikolay Martynov wrote:
> 2015-12-11 11:29 GMT-05:00 John Crispin <blogic at openwrt.org>:
>>
>>
>> On 11/12/2015 17:25, Felix Fietkau wrote:
>>> On 2015-12-11 05:01, Nikolay Martynov wrote:
>>>> * Switches clocksource to gic timer.
>>>> * Moves frequency definitions to dtsi since frequency was hardcoded anyway
>>>>   Will work on proper frequency detection later.
>>>>
>>>> Signed-off-by: Nikolay Martynov <mar.kolya at gmail.com>
>>> This patch breaks the SPI driver:
>>>
>>> [    2.980000] spi-mt7621 1e000b00.spi: unable to get SYS clock, err=0
>>>
>>> - Felix
>>>
>>
>> strange, worked for me earlier today. but maybe i missed this one.
> I'm sorry, the device I have doesn't have spi, so I could not really
> test this part. But it should be trivial to fix. I'll have a look
> tonight unless this gets fixed before.
> 
> 

we need to define a fixed-rate clock using DT and load
drivers/clk/clk-fixed-rate.c additionally we need to point the 3 device
nodes at that clock.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list