<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/spi, branch v2013.10-rc2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/spi?h=v2013.10-rc2</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/spi?h=v2013.10-rc2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2013-08-20T16:57:51Z</updated>
<entry>
<title>powerpc: Fix CamelCase checkpatch warnings</title>
<updated>2013-08-20T16:57:51Z</updated>
<author>
<name>Prabhakar Kushwaha</name>
<email>prabhakar@freescale.com</email>
</author>
<published>2013-08-16T09:22:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=997399fa42b098d0a4163e1a3461bd9a34aab8ac'/>
<id>urn:sha1:997399fa42b098d0a4163e1a3461bd9a34aab8ac</id>
<content type='text'>
85xx, 86xx PowerPC folders have code variables with CamelCase naming conventions.
because of this code checkpatch script generates "WARNING: Avoid CamelCase".

Convert variables name to normal naming convention and modify board, driver
files with updated the new structure.

Signed-off-by: Prabhakar Kushwaha &lt;prabhakar@freescale.com&gt;
Acked-by: York Sun &lt;yorksun@freescale.com&gt;
</content>
</entry>
<entry>
<title>spi: Add zynq spi controller driver</title>
<updated>2013-08-06T19:39:47Z</updated>
<author>
<name>Jagannadha Sutradharudu Teki</name>
<email>jaganna@xilinx.com</email>
</author>
<published>2013-07-29T18:15:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1465d055f9d7a81edacf30c9d20a1b51dfcbfa8d'/>
<id>urn:sha1:1465d055f9d7a81edacf30c9d20a1b51dfcbfa8d</id>
<content type='text'>
Zynq spi controller driver supports 2 buses and
3 chipselects on each bus.

Signed-off-by: Jagannadha Sutradharudu Teki &lt;jaganna@xilinx.com&gt;
Acked-by: Siva Durga Prasad Paladugu &lt;sivadur@xilinx.com&gt;
Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>spi: mpc8xxx_spi: Use DIV_ROUND_UP instead of open-coded</title>
<updated>2013-08-06T18:28:24Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-07-12T09:42:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=583fe6c3d82b502acad5f7698a62253ba9d9304b'/>
<id>urn:sha1:583fe6c3d82b502acad5f7698a62253ba9d9304b</id>
<content type='text'>
Use DIV_ROUND_UP to simplify the code.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
</content>
</entry>
<entry>
<title>spi: fsl_espi: Use DIV_ROUND_UP instead of open-coded</title>
<updated>2013-08-06T18:28:09Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-07-12T09:41:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a444aa7a1cd9c209e6621fe0531f61f2f7c1a7e9'/>
<id>urn:sha1:a444aa7a1cd9c209e6621fe0531f61f2f7c1a7e9</id>
<content type='text'>
Use DIV_ROUND_UP to simplify the code.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
</content>
</entry>
<entry>
<title>spi: bfin_spi: Use DIV_ROUND_UP instead of open-coded</title>
<updated>2013-07-31T08:56:04Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-07-12T09:39:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=327b5c9f7cde4e621c2f49fbd2e9890d32f2bef8'/>
<id>urn:sha1:327b5c9f7cde4e621c2f49fbd2e9890d32f2bef8</id>
<content type='text'>
Use DIV_ROUND_UP to simplify the code.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Scott Jiang &lt;scott.jiang.linux@gmail.com&gt;
Signed-off-by: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
</content>
</entry>
<entry>
<title>Add GPL-2.0+ SPDX-License-Identifier to source files</title>
<updated>2013-07-24T13:44:38Z</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2013-07-08T07:37:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1a4596601fd395f3afb8f82f3f840c5e00bdd57a'/>
<id>urn:sha1:1a4596601fd395f3afb8f82f3f840c5e00bdd57a</id>
<content type='text'>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.denx.de/u-boot-arm</title>
<updated>2013-07-12T14:36:48Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@ti.com</email>
</author>
<published>2013-07-12T14:36:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fbbbc86e8ebac4f42f4ca39ceba80cea27c983bc'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'</title>
<updated>2013-06-28T15:51:13Z</updated>
<author>
<name>Albert ARIBAUD</name>
<email>albert.u.boot@aribaud.net</email>
</author>
<published>2013-06-28T15:51:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e6c7f86f03b0ad25e9ef70df3ee1989b6b789d7c'/>
<id>urn:sha1:e6c7f86f03b0ad25e9ef70df3ee1989b6b789d7c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi: mxc_spi: Update pre and post divider algorithm</title>
<updated>2013-06-26T14:23:30Z</updated>
<author>
<name>Dirk Behme</name>
<email>dirk.behme@gmail.com</email>
</author>
<published>2013-05-11T05:25:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9a30903b44a63861de93d5beaaf4c91173bbac0c'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>spi: mxc_spi: Fix pre and post divider calculation</title>
<updated>2013-06-26T14:22:51Z</updated>
<author>
<name>Dirk Behme</name>
<email>dirk.behme@gmail.com</email>
</author>
<published>2013-05-09T05:19:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8d4c4ffb95d528f6a709bf68da5e0beb0f4ee72f'/>
<id>urn:sha1: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>
</entry>
</feed>
