[U-Boot-Users] [PATCH 15/18] atmel_usart: Support fractional baud rate dividers

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Tue May 27 15:17:23 CEST 2008


Haavard Skinnemoen <haavard.skinnemoen at atmel.com> wrote:
> Newer Atmel chips (post-AT91SAM9261; including AT91SAM9260 and all
> AVR32 chips) have a "Fractional Part" bitfield in BRGR that allows
> more precise baud rate generation. Use this field to make the USART
> work on lower clock frequencies, for example when not using the PLL,
> on chips that support it.
> 
> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>

Hmm...I think I'm gonna drop this one since it confuses the Linux
driver. It tries to come up with a default baud rate by looking at the
BRGR register, but it interprets the FP field as part of the divider,
so it will end up at a rate that is way too low.

I'll post a patch to fix the Linux driver, but we shouldn't modify
u-boot until the fix has been in mainline for a while.

Haavard




More information about the U-Boot mailing list