[PATCH] cpm2: Rework baud rate generators configuration to support external clocks.

Kumar Gala kumar.gala at freescale.com
Mon Jul 28 23:48:05 EST 2008


On Jul 22, 2008, at 11:00 AM, Laurent Pinchart wrote:

> 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 at cse-semaphore.com>
> ---
> arch/powerpc/sysdev/cpm2.c |   34 +++----------------------------
> include/asm-powerpc/cpm2.h |   46 ++++++++++++++++++++++++++++++ 
> +------------
> 2 files changed, 37 insertions(+), 43 deletions(-)

applied.

- k



More information about the Linuxppc-dev mailing list