[RFC] Using two baud rate generators with the cpm_uart driver

Laurent Pinchart laurentp at cse-semaphore.com
Wed Apr 16 02:03:56 EST 2008


On Tuesday 15 April 2008 17:59, Scott Wood wrote:
> Laurent Pinchart wrote:
> >> The clean solution would be to have an abstracted clock API, similar to 
> >> phylib, where the caller doesn't know details about BRGs and such. 
> >> Maybe the linux/clk.h API would be suitable; I haven't looked at it in 
> >> detail.
> > 
> > The clock API would have to be quite advanced to express things like "the SCC4 
> > clock is a combination of BRG2 and BRG5" (and I don't even consider 
> > adding "with BRG2 set to 16x the baud rate and BRG5 to the baud rate").
> 
> What I was picturing was platform code providing a clock object that the 
> cpm_uart driver could be pointed at (possibly by modifying the device 
> tree in platform init); the knowledge of the multiple BRG weirdness 
> would be contained in platform code.

I'll think about it.

Thanks.

-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080415/8bc197ec/attachment.pgp>


More information about the Linuxppc-dev mailing list