<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/spi, branch v2013.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>Merge branch 'master' of git://git.denx.de/u-boot-arm</title>
<updated>2013-07-12T14:36:48+00:00</updated>
<author>
<name>Tom Rini</name>
<email>trini@ti.com</email>
</author>
<published>2013-07-12T14:36:48+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fbbbc86e8ebac4f42f4ca39ceba80cea27c983bc'/>
<id>fbbbc86e8ebac4f42f4ca39ceba80cea27c983bc</id>
<content type='text'>
Fix a trivial conflict in arch/arm/dts/exynos5250.dtsi about gpio and
serial.

Conflicts:
	arch/arm/dts/exynos5250.dtsi

Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a trivial conflict in arch/arm/dts/exynos5250.dtsi about gpio and
serial.

Conflicts:
	arch/arm/dts/exynos5250.dtsi

Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'</title>
<updated>2013-06-28T15:51:13+00:00</updated>
<author>
<name>Albert ARIBAUD</name>
<email>albert.u.boot@aribaud.net</email>
</author>
<published>2013-06-28T15:51:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e6c7f86f03b0ad25e9ef70df3ee1989b6b789d7c'/>
<id>e6c7f86f03b0ad25e9ef70df3ee1989b6b789d7c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>spi: mxc_spi: Update pre and post divider algorithm</title>
<updated>2013-06-26T14:23:30+00:00</updated>
<author>
<name>Dirk Behme</name>
<email>dirk.behme@gmail.com</email>
</author>
<published>2013-05-11T05:25:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9a30903b44a63861de93d5beaaf4c91173bbac0c'/>
<id>9a30903b44a63861de93d5beaaf4c91173bbac0c</id>
<content type='text'>
The spi clock divisor is of the form x * (2**y),  or  x  &lt;&lt; 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 &gt;= desired divisor,
and can be represented in this form. The previous algorithm chose a divisor
which could be almost twice as large as needed.

Signed-off-by: Troy Kisky &lt;troy.kisky@boundarydevices.com&gt;
Signed-off-by: Dirk Behme &lt;dirk.behme@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The spi clock divisor is of the form x * (2**y),  or  x  &lt;&lt; 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 &gt;= desired divisor,
and can be represented in this form. The previous algorithm chose a divisor
which could be almost twice as large as needed.

Signed-off-by: Troy Kisky &lt;troy.kisky@boundarydevices.com&gt;
Signed-off-by: Dirk Behme &lt;dirk.behme@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>spi: mxc_spi: Fix pre and post divider calculation</title>
<updated>2013-06-26T14:22:51+00:00</updated>
<author>
<name>Dirk Behme</name>
<email>dirk.behme@gmail.com</email>
</author>
<published>2013-05-09T05:19:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8d4c4ffb95d528f6a709bf68da5e0beb0f4ee72f'/>
<id>8d4c4ffb95d528f6a709bf68da5e0beb0f4ee72f</id>
<content type='text'>
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) states:

CONREG[15-12]: PRE_DIVIDER
0000 Divide by 1
0001 Divide by 2
0010 Divide by 3
...
1101 Divide by 14
1110 Divide by 15
1111 Divide by 16

I.e. if we want to divide by 2, we have to write 1 to CONREG[15-12].

2. In case the post divider becomes necessary, pre_div will be divided by
16. So set pre_div to 16, too. And not 15.

Both issues above are tested using the following examples:

clk_src = 60000000 (60MHz, default i.MX6 ECSPI clock)

a) max_hz == 23000000 (23MHz, max i.MX6 ECSPI read clock)

-&gt; pre_div =  3 (divide by 3 =&gt; CONREG[15-12] == 2)
-&gt; post_div = 0 (divide by 1 =&gt; CONREG[11- 8] == 0)
               =&gt; 60MHz / 3 = 20MHz SPI clock

b) max_hz == 2000000 (2MHz)

-&gt; pre_div =  16 (divide by 16 =&gt; CONREG[15-12] == 15)
-&gt; post_div = 1  (divide by  2 =&gt; CONREG[11- 8] == 1)
               =&gt; 60MHz / 32 = 1.875MHz SPI clock

c) max_hz == 1000000 (1MHz)

-&gt; pre_div =  16 (divide by 16 =&gt; CONREG[15-12] == 15)
-&gt; post_div = 2  (divide by  4 =&gt; CONREG[11- 8] == 2)
               =&gt; 60MHz / 64 = 937.5kHz SPI clock

d) max_hz == 500000 (500kHz)

-&gt; pre_div =  16 (divide by 16 =&gt; CONREG[15-12] == 15)
-&gt; post_div = 3  (divide by  8 =&gt; CONREG[11- 8] == 3)
               =&gt; 60MHz / 128 = 468.75kHz SPI clock

Signed-off-by: Dirk Behme &lt;dirk.behme@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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) states:

CONREG[15-12]: PRE_DIVIDER
0000 Divide by 1
0001 Divide by 2
0010 Divide by 3
...
1101 Divide by 14
1110 Divide by 15
1111 Divide by 16

I.e. if we want to divide by 2, we have to write 1 to CONREG[15-12].

2. In case the post divider becomes necessary, pre_div will be divided by
16. So set pre_div to 16, too. And not 15.

Both issues above are tested using the following examples:

clk_src = 60000000 (60MHz, default i.MX6 ECSPI clock)

a) max_hz == 23000000 (23MHz, max i.MX6 ECSPI read clock)

-&gt; pre_div =  3 (divide by 3 =&gt; CONREG[15-12] == 2)
-&gt; post_div = 0 (divide by 1 =&gt; CONREG[11- 8] == 0)
               =&gt; 60MHz / 3 = 20MHz SPI clock

b) max_hz == 2000000 (2MHz)

-&gt; pre_div =  16 (divide by 16 =&gt; CONREG[15-12] == 15)
-&gt; post_div = 1  (divide by  2 =&gt; CONREG[11- 8] == 1)
               =&gt; 60MHz / 32 = 1.875MHz SPI clock

c) max_hz == 1000000 (1MHz)

-&gt; pre_div =  16 (divide by 16 =&gt; CONREG[15-12] == 15)
-&gt; post_div = 2  (divide by  4 =&gt; CONREG[11- 8] == 2)
               =&gt; 60MHz / 64 = 937.5kHz SPI clock

d) max_hz == 500000 (500kHz)

-&gt; pre_div =  16 (divide by 16 =&gt; CONREG[15-12] == 15)
-&gt; post_div = 3  (divide by  8 =&gt; CONREG[11- 8] == 3)
               =&gt; 60MHz / 128 = 468.75kHz SPI clock

Signed-off-by: Dirk Behme &lt;dirk.behme@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cros: exynos: add SPI support for cros_ec</title>
<updated>2013-06-26T14:13:24+00:00</updated>
<author>
<name>Hung-ying Tyan</name>
<email>tyanh@chromium.org</email>
</author>
<published>2013-05-15T10:27:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f3424c554c572761f35b00988deb8ed35d1870e3'/>
<id>f3424c554c572761f35b00988deb8ed35d1870e3</id>
<content type='text'>
This patch adds SPI support for carrying out the cros_ec protocol.

Signed-off-by: Hung-ying Tyan &lt;tyanh@chromium.org&gt;
Signed-off-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds SPI support for carrying out the cros_ec protocol.

Signed-off-by: Hung-ying Tyan &lt;tyanh@chromium.org&gt;
Signed-off-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>spi: mxc_spi: Use DIV_ROUND_UP at appropriate places</title>
<updated>2013-06-22T17:38:01+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-06-14T13:13:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9675fed4742338c71678cd310d0d6922b56e490a'/>
<id>9675fed4742338c71678cd310d0d6922b56e490a</id>
<content type='text'>
This change slightly improves readability.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change slightly improves readability.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>spi: cf_qspi: Use DIV_ROUND_UP at appropriate place</title>
<updated>2013-06-22T17:38:01+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-06-14T13:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0cb8394f8198f5b420a52b6a6f76c9bf21e68b2e'/>
<id>0cb8394f8198f5b420a52b6a6f76c9bf21e68b2e</id>
<content type='text'>
This change slightly improves readability.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Richard Retanubun &lt;richardretanubun@ruggedcom.com&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change slightly improves readability.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Richard Retanubun &lt;richardretanubun@ruggedcom.com&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.denx.de/u-boot-spi</title>
<updated>2013-06-13T19:18:35+00:00</updated>
<author>
<name>Tom Rini</name>
<email>trini@ti.com</email>
</author>
<published>2013-06-13T19:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f0df254663d44f7fd4b714542bb4602626837465'/>
<id>f0df254663d44f7fd4b714542bb4602626837465</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>spi: tegra20_sflash: Remove redundant code to set bus and cs of struct spi_slave</title>
<updated>2013-06-13T17:25:30+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-06-13T08:21:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ba1d1c2d9b187bbbba3301e01aa8e84f56cd4d00'/>
<id>ba1d1c2d9b187bbbba3301e01aa8e84f56cd4d00</id>
<content type='text'>
It's done in spi_alloc_slave(), thus remove the redundant code.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Acked-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's done in spi_alloc_slave(), thus remove the redundant code.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Acked-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>spi: tegra114_spi: Convert to use spi_alloc_slave()</title>
<updated>2013-06-13T17:25:24+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-06-13T08:17:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d6f64d4a11c2aa4318b20eeda04c564728705080'/>
<id>d6f64d4a11c2aa4318b20eeda04c564728705080</id>
<content type='text'>
Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Acked-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Acked-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
