]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck
authorPaul Walmsley <paul@pwsan.com>
Thu, 2 Aug 2007 18:10:04 +0000 (12:10 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:34:45 +0000 (02:34 -0700)
commit18fc252e78d914a150e278682425303c132a688d
tree1e25dafa29810039b6687f89813fda655a7af9f5
parent8bfdccc73a7252017029752f8f6af8c2b5e4f957
omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck

omap2_get_crystal_rate() calculates osc_ck and sys_ck rates
incorrectly.  osc_ck runs at the same rate as the external clock
source.  Also, sys_ck's rate derives from osc_ck's rate, divided (not
multiplied) by PRCM_CLKSRC_CTRL:SYSCLKDIV.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c