<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/mtd/spi, branch v2016.01-rc2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd/spi?h=v2016.01-rc2</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd/spi?h=v2016.01-rc2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2015-11-19T18:27:26Z</updated>
<entry>
<title>Merge branch 'master' of git://git.denx.de/u-boot-spi</title>
<updated>2015-11-19T18:27:26Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2015-11-19T18:27:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9ef671c9d4c70af3f8b21d8a31a89af4dc74d6b3'/>
<id>urn:sha1:9ef671c9d4c70af3f8b21d8a31a89af4dc74d6b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dm: sf: Add support for all targets which requires MANUAL_RELOC</title>
<updated>2015-11-19T12:10:32Z</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@xilinx.com</email>
</author>
<published>2015-10-27T12:52:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2588f2ddfd60ac617c05def14e9a92fd329721fe'/>
<id>urn:sha1:2588f2ddfd60ac617c05def14e9a92fd329721fe</id>
<content type='text'>
It is follow up patch based on
"dm: Add support for all targets which requires MANUAL_RELOC"
(sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3)
to update function pointers for DM.

Using post_bind is not ideal but it is one on current option what can be
used. Variable reloc_done has to be used do not call relocation after
every bind. Maybe new core functions should be introduced for this case.

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>spl: change return values of spl_*_load_image()</title>
<updated>2015-11-18T19:50:02Z</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-11-08T15:11:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=36afd451361dd4386c5527154d94bff4c6c538da'/>
<id>urn:sha1:36afd451361dd4386c5527154d94bff4c6c538da</id>
<content type='text'>
Make spl_*_load_image() functions return a value instead of
hanging if a problem is encountered. This enables main spl code
to make the decision whether to hang or not, thus preparing
it to support alternative boot devices.

Some boot devices (namely nand and spi) do not hang on error.
Instead, they return normally and SPL proceeds to boot the
contents of the load address. This is considered a bug and
is rectified by hanging on error for these devices as well.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Cc: Igor Grinberg &lt;grinberg@compulab.co.il&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Ian Campbell &lt;ijc@hellion.org.uk&gt;
Cc: Hans De Goede &lt;hdegoede@redhat.com&gt;
Cc: Albert Aribaud &lt;albert.u.boot@aribaud.net&gt;
Cc: Jagan Teki &lt;jteki@openedev.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sf: Correct flash-&gt;flags for SST flash</title>
<updated>2015-11-18T07:22:05Z</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2015-11-16T03:31:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3e56ecec435d30e25fcffb971f8c9627e85ac1df'/>
<id>urn:sha1:3e56ecec435d30e25fcffb971f8c9627e85ac1df</id>
<content type='text'>
flash-&gt;flags for SST flash should be updated for both DM and non-DM
flash drivers.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>spi: sf_ops: Check the return value from spi_flash_cmd_read_status()</title>
<updated>2015-11-17T19:25:29Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-11-17T19:13:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a668a164ffb73db6f566f50e9440c872d5293742'/>
<id>urn:sha1:a668a164ffb73db6f566f50e9440c872d5293742</id>
<content type='text'>
We should check the return value from spi_flash_cmd_read_status() and
propagate it in the case of error.

This fixes a defect caught by Coverity.

Reported-by: Tom Rini &lt;trini@konsulko.com&gt;
Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Reviewed-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Add lock ops for SST SPI NOR flash</title>
<updated>2015-11-17T18:56:26Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-11-17T18:50:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5168721e584e1fc104ccc3b1a027e8973a18f65b'/>
<id>urn:sha1:5168721e584e1fc104ccc3b1a027e8973a18f65b</id>
<content type='text'>
SST SPI NOR flash has the same locking programming bits
as ST Micro - added support for it.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
[Minor change on commit message]
Signed-off-by: Jagan Teki &lt;jteki@openedev.com&gt;
Reviewed-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Remove eeprom_m95xxx test driver</title>
<updated>2015-11-17T18:31:07Z</updated>
<author>
<name>Jagan Teki</name>
<email>jteki@openedev.com</email>
</author>
<published>2015-11-04T07:31:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7693fb37564422b2e0ec9717deab7ca51a093f4e'/>
<id>urn:sha1:7693fb37564422b2e0ec9717deab7ca51a093f4e</id>
<content type='text'>
The relevent boards which used this driver got zapped
in previous release and the driver is never used in the
code and also it doesn't use/do any spi-flash operations.

Commit details for relevent removed boards:
"ARM: at91: remove non-generic boards"
(sha1: f6b42c140387589ded24749781ce565571092eac)

Cc: Tom Rini &lt;trini@konsulko.com&gt;
Cc: Albin Tonnerre &lt;albin.tonnerre@free-electrons.com&gt;
Signed-off-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Fix NULL pointer exception for flashes without lock methods</title>
<updated>2015-11-13T14:47:22Z</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2015-11-13T10:46:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=439fcb9b4f717f5a583014acb3e75b789564867c'/>
<id>urn:sha1:439fcb9b4f717f5a583014acb3e75b789564867c</id>
<content type='text'>
commit c3c016c "sf: Add SPI NOR protection mechanism" introduced
flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash,
but not every flash driver supplies these. We should test these
methods against NULL before actually calling them.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Reviewed-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Add SPI NOR protection mechanism</title>
<updated>2015-11-05T21:47:06Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-11-05T14:43:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c3c016cf75360c2a0d0a065b64b438aaf7720576'/>
<id>urn:sha1:c3c016cf75360c2a0d0a065b64b438aaf7720576</id>
<content type='text'>
Many SPI flashes have protection bits (BP2, BP1 and BP0) in the
status register that can protect selected regions of the SPI NOR.

Take these bits into account when performing erase operations,
making sure that the protected areas are skipped.

Tested on a mx6qsabresd:

=&gt; sf probe
SF: Detected M25P32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
=&gt; sf protect lock  0x3f0000 0x10000
=&gt; sf erase 0x3f0000 0x10000
offset 0x3f0000 is protected and cannot be erased
SF: 65536 bytes @ 0x3f0000 Erased: ERROR
=&gt; sf protect unlock  0x3f0000 0x10000
=&gt; sf erase 0x3f0000 0x10000
SF: 65536 bytes @ 0x3f0000 Erased: OK

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
[re-worked to fit the lock common to dm and non-dm]
Signed-off-by: Jagan Teki &lt;jteki@openedev.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Heiko Schocher &lt;hs@denx.de&gt;
Reviewed-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Add SPI protection mechanism from the kernel</title>
<updated>2015-11-05T21:47:05Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-11-05T14:43:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=41b358d7a7c9f29eca4a439fba0ae679100a9ad5'/>
<id>urn:sha1:41b358d7a7c9f29eca4a439fba0ae679100a9ad5</id>
<content type='text'>
Add the SPI NOR protection mechanism from the kernel.

This code is based on the work from
Brian Norris &lt;computersforpeace@gmail.com&gt;
Here is the commit details:
"mtd: spi-nor: refactor block protection functions"
(sha1: 62593cf40b23b523b9fc9334ca61ba6c595ebb09)

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: Jagan Teki &lt;jteki@openedev.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Heiko Schocher &lt;hs@denx.de&gt;
Reviewed-by: Jagan Teki &lt;jteki@openedev.com&gt;

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
</content>
</entry>
</feed>
