]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc/5200: add function to return external clock frequency
authorWolfgang Grandegger <wg@grandegger.com>
Wed, 11 Mar 2009 15:36:26 +0000 (09:36 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 11 Mar 2009 15:36:26 +0000 (09:36 -0600)
commitdf8a95f46f8e43a24003abe2efaca8c63c895b54
treecee931917b5bbc3e77d9b3e2ad3145856d8118b8
parentbb899d49a5d04ae53c787c15c5fb82754d6a0da4
powerpc/5200: add function to return external clock frequency

This patch adds the utility function mpc52xx_get_xtal_freq() to get
the frequency of the external oscillator clock connected to the pin
SYS_XTAL_IN. The MSCAN may us it as clock source. Unfortunately, this
value is not available from the FDT blob, but it can be determined
from the IPB frequency.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/include/asm/mpc52xx.h
arch/powerpc/platforms/52xx/mpc52xx_common.c