RE: [PATCH] SPI: spi-pxa2xx: SPI support for Intel Quark X1000

From: Chen, Alvin
Date: Sat Sep 27 2014 - 23:23:43 EST

> >
> > > +/* see Quark SPI data sheet for implementation rationale */ static
> > > +u32 quark_x1000_set_clk_regvals(u32 rate, u32 *dds, u32 *clk_div) {
> >
> > Please document this in the driver - I don't know if this datasheet is
> > public but even if it is it may not stay that way.
> Datasheet is public.
> I'm just wondering if we can use just a formula instead of table.
As I said before, there are two formulas, but for the given rate, from the formulas, we can get a lot of <dds, clk_div> pairs,
and we also need to select them according to the guidelines which is not formula. The table the datasheet given should be
the best one to meet the jitter and duty cycles as the datasheet documented.