Re: [U-Boot] [PATCH v2] spi: mxc_spi: Update pre and post divider algorithm

2013-06-26 Thread Stefano Babic
On 11/05/2013 07:25, Dirk Behme wrote: The spi clock divisor is of the form x * (2**y), or x y, where x is 1 to 16, and y is 0 to 15. Note the similarity with floating point numbers. Convert the desired divisor to the smallest number which is = desired divisor, and can be represented in

Re: [U-Boot] [PATCH v2] spi: mxc_spi: Update pre and post divider algorithm

2013-06-12 Thread Stefano Babic
Hi Dirk, On 12/06/2013 07:28, Dirk Behme wrote: On 11.05.2013 07:25, Dirk Behme wrote: The spi clock divisor is of the form x * (2**y), or x y, where x is 1 to 16, and y is 0 to 15. Note the similarity with floating point numbers. Convert the desired divisor to the smallest number which

Re: [U-Boot] [PATCH v2] spi: mxc_spi: Update pre and post divider algorithm

2013-06-12 Thread Jagan Teki
On Wed, Jun 12, 2013 at 9:12 PM, Stefano Babic sba...@denx.de wrote: Hi Dirk, On 12/06/2013 07:28, Dirk Behme wrote: On 11.05.2013 07:25, Dirk Behme wrote: The spi clock divisor is of the form x * (2**y), or x y, where x is 1 to 16, and y is 0 to 15. Note the similarity with floating

Re: [U-Boot] [PATCH v2] spi: mxc_spi: Update pre and post divider algorithm

2013-06-12 Thread Stefano Babic
Hi, On 12/06/2013 17:47, Jagan Teki wrote: Sorry, i didn't understand the conversation here, was this fix applied? Could you please explain. Patches are not applied and are currently assigned to me. As they concerned the SPI subsystem (really, it is the SPI driver for iMX), they could be

Re: [U-Boot] [PATCH v2] spi: mxc_spi: Update pre and post divider algorithm

2013-06-12 Thread Jagan Teki
On Wed, Jun 12, 2013 at 9:30 PM, Stefano Babic sba...@denx.de wrote: Hi, On 12/06/2013 17:47, Jagan Teki wrote: Sorry, i didn't understand the conversation here, was this fix applied? Could you please explain. Patches are not applied and are currently assigned to me. As they concerned

Re: [U-Boot] [PATCH v2] spi: mxc_spi: Update pre and post divider algorithm

2013-06-11 Thread Dirk Behme
On 11.05.2013 07:25, Dirk Behme wrote: The spi clock divisor is of the form x * (2**y), or x y, where x is 1 to 16, and y is 0 to 15. Note the similarity with floating point numbers. Convert the desired divisor to the smallest number which is = desired divisor, and can be represented in this

[U-Boot] [PATCH v2] spi: mxc_spi: Update pre and post divider algorithm

2013-05-10 Thread Dirk Behme
The spi clock divisor is of the form x * (2**y), or x y, where x is 1 to 16, and y is 0 to 15. Note the similarity with floating point numbers. Convert the desired divisor to the smallest number which is = desired divisor, and can be represented in this form. The previous algorithm chose a