Re: [U-Boot] [PATCH] spi: mxc_spi: Fix pre and post divider calculation

2013-05-06 Thread Troy Kisky
On 5/4/2013 3:06 AM, Dirk Behme wrote: Am 03.05.2013 22:47, schrieb Troy Kisky: On 5/2/2013 10:58 PM, Dirk Behme wrote: Do you want to say you propose post_div = pre_div / 16; pre_div = 16; ? yes, that's what I said If so: First, I agree that we have to use the same dividers in both lines

Re: [U-Boot] [PATCH] spi: mxc_spi: Fix pre and post divider calculation

2013-05-04 Thread Dirk Behme
Am 03.05.2013 22:47, schrieb Troy Kisky: On 5/2/2013 10:58 PM, Dirk Behme wrote: Do you want to say you propose post_div = pre_div / 16; pre_div = 16; ? yes, that's what I said If so: First, I agree that we have to use the same dividers in both lines. But, second, this would mean that you

Re: [U-Boot] [PATCH] spi: mxc_spi: Fix pre and post divider calculation

2013-05-03 Thread Troy Kisky
On 5/2/2013 10:58 PM, Dirk Behme wrote: Do you want to say you propose post_div = pre_div / 16; pre_div = 16; ? yes, that's what I said If so: First, I agree that we have to use the same dividers in both lines. But, second, this would mean that you use /16 as max pre_div. For the i.MX6 ca

Re: [U-Boot] [PATCH] spi: mxc_spi: Fix pre and post divider calculation

2013-05-02 Thread Dirk Behme
On 02.05.2013 20:38, Troy Kisky wrote: On 5/2/2013 3:59 AM, Dirk Behme wrote: From: Dirk Behme Fix two issues with the calculation of pre_div and post_div: 1. pre_div: While the calculation of pre_div looks correct, to set the CONREG[15-12] bits pre_div needs to be decremented by 1: The i.MX

Re: [U-Boot] [PATCH] spi: mxc_spi: Fix pre and post divider calculation

2013-05-02 Thread Troy Kisky
On 5/2/2013 3:59 AM, Dirk Behme wrote: From: Dirk Behme Fix two issues with the calculation of pre_div and post_div: 1. pre_div: While the calculation of pre_div looks correct, to set the CONREG[15-12] bits pre_div needs to be decremented by 1: The i.MX 6Dual/6Quad Applications Processor Refe

[U-Boot] [PATCH] spi: mxc_spi: Fix pre and post divider calculation

2013-05-02 Thread Dirk Behme
From: Dirk Behme Fix two issues with the calculation of pre_div and post_div: 1. pre_div: While the calculation of pre_div looks correct, to set the CONREG[15-12] bits pre_div needs to be decremented by 1: The i.MX 6Dual/6Quad Applications Processor Reference Manual (IMX6DQRM Rev. 0, 11/2012) s