]> err.no Git - linux-2.6/commit
cpm2: Rework baud rate generators configuration to support external clocks.
authorLaurent Pinchart <laurentp@cse-semaphore.com>
Tue, 22 Jul 2008 16:00:43 +0000 (18:00 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jul 2008 13:47:45 +0000 (08:47 -0500)
commitdddb8d311157d054da5441385f681b8cc0e5a94b
treee4a21e86291c011382f68fc063792c560d995f37
parente517881e427757afc3cce6d76173b1d898b30ab3
cpm2: Rework baud rate generators configuration to support external clocks.

The CPM2 BRG setup functions cpm_setbrg and cpm2_fastbrg don't support
external clocks. This patch adds a new exported __cpm2_setbrg function
that takes the clock rate and clock source as extra parameters, and moves
cpm_setbrg and cpm2_fastbrg to include/asm-powerpc/cpm2.h where they
become inline wrappers around __cpm2_setbrg.

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/cpm2.c
include/asm-powerpc/cpm2.h