[V3 3/6] RTC: sa1100: support sa1100, pxa and mmp soc families
From: haojian.zhuang@gmail.com (Haojian Zhuang)
Date: 2012-01-16 00:38:00
From: haojian.zhuang@gmail.com (Haojian Zhuang)
Date: 2012-01-16 00:38:00
On Sat, Jan 14, 2012 at 5:27 PM, Russell King - ARM Linux [off-list ref] wrote:
On Wed, Nov 30, 2011 at 02:30:46PM +0800, Jett.Zhou wrote:quoted
Since the regmap of rtc on sa1100, pxa and mmp Marvell soc families are almost the same, so re-arch the rtc-sa1100 to support them.Err. ?This looks wrong. ?What's the clk stuff doing in here? ?It seems to be completely unused by the driver, and then both PXA and SA1100 end up having to provide a 'dummy' clk structure to satisfy this additional useless code. If it's a case that "every driver must use a clk" then there's a policy error somewhere.
Since this RTC driver could be shared among sa1100, pxa, mmp. In sa1100 and pxa3xx, we don't have this clock. So we use dummy clock instead. For pxa95x and mmp series, we have this clock. Best Regards Haojian