Re: [PATCH 1/5] arm: sa1100: add cpu clock
From: Russell King - ARM Linux <hidden>
Date: 2013-11-12 09:57:06
Also in:
linux-arm-kernel
From: Russell King - ARM Linux <hidden>
Date: 2013-11-12 09:57:06
Also in:
linux-arm-kernel
On Tue, Nov 12, 2013 at 07:32:08AM +0400, Dmitry Eremin-Solenikov wrote:
Both SA1100 framebuffer and PCMCIA drivers require knowledge of cpu frequency to correctly program timings. Currently they receive timing information by calling cpufreq_get(0). However if cpu frequency driver is not enabled (e.g. due to unsupported DRAM chip/board on sa1110) cpufreq_get(0) returns 0, causing incorrect timings to be programmed.
I added a select statement back in 1937f5b91833e2e8e53bcc821fc7a5fbe6ccb9b5 which avoids this problem. Does this not work?