On Thu, Apr 17, 2008 at 04:23:56PM +0200, Laurent Pinchart wrote: [...] > > + /* > > + * We have two 8 bit prescalers -- primary and secondary (psr, sps), > > + * plus "slow go" mode (clk / 16). So, total prescale value is > > + * 16 * (psr + 1) * (sps + 1). > > + */ > > + if (prescaler > 256 * 256 * 16) > > + return -EINVAL; > > + > > + if (prescaler > 256 * 256) { > > + iclk = GTMDR_ICLK_SLGO; > > + prescaler /= 16; > > + } > > + > > + if (prescaler > 256) { > > + psr = 256 - 1; > > + sps = prescaler / 256 - 1; > > + } else { > > + psr = prescaler - 1; > > + sps = 1 - 1; > > + } > > Don't forget that the CPM2 doesn't support the primary prescaler.
I didn't know that, how can I possibly forget it? Oh, now I can. Thanks for the info. :-) -- Anton Vorontsov email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev