<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/mtd/spi/Makefile, branch v2016.09</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/Makefile?h=v2016.09</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/mtd/spi/Makefile?h=v2016.09'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2016-07-15T06:34:34Z</updated>
<entry>
<title>sunxi: Support booting from SPI flash</title>
<updated>2016-07-15T06:34:34Z</updated>
<author>
<name>Siarhei Siamashka</name>
<email>siarhei.siamashka@gmail.com</email>
</author>
<published>2016-06-07T11:28:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=19e99fb4ff73f648f2b316d0ddd8ee3c01496bd4'/>
<id>urn:sha1:19e99fb4ff73f648f2b316d0ddd8ee3c01496bd4</id>
<content type='text'>
Allwinner devices support SPI flash as one of the possible
bootable media type. The SPI flash chip needs to be connected
to SPI0 pins (port C) to make this work. More information is
available at:

    https://linux-sunxi.org/Bootable_SPI_flash

This patch adds the initial support for booting from SPI flash.
The existing SPI frameworks are not used in order to reduce the
SPL code size. Right now the SPL size grows by ~370 bytes when
CONFIG_SPL_SPI_SUNXI option is enabled.

While there are no popular Allwinner devices with SPI flash at
the moment, testing can be done using a SPI flash module (it
can be bought for ~2$ on ebay) and jumper wires with the boards,
which expose relevant pins on the expansion header. The SPI flash
chips themselves are very cheap (some prices are even listed as
low as 4 cents) and should not cost much if somebody decides to
design a development board with an SPI flash chip soldered on
the PCB.

Another nice feature of the SPI flash is that it can be safely
accessed in a device-independent way (since we know that the
boot ROM is already probing these pins during the boot time).
And if, for example, Olimex boards opted to use SPI flash instead
of EEPROM, then they would have been able to have U-Boot installed
in the SPI flash now and boot the rest of the system from the SATA
hard drive. Hopefully we may see new interesting Allwinner based
development boards in the future, now that the software support
for the SPI flash is in a better shape :-)

Testing can be done by enabling the CONFIG_SPL_SPI_SUNXI option
in a board defconfig, then building U-Boot and finally flashing
the resulting u-boot-sunxi-with-spl.bin binary over USB OTG with
a help of the sunxi-fel tool:

   sunxi-fel spiflash-write 0 u-boot-sunxi-with-spl.bin

The device needs to be switched into FEL (USB recovery) mode first.
The most suitable boards for testing are Orange Pi PC and Pine64.
Because these boards are cheap, have no built-in NAND/eMMC and
expose SPI0 pins on the Raspberry Pi compatible expansion header.
The A13-OLinuXino-Micro board also can be used.

Signed-off-by: Siarhei Siamashka &lt;siarhei.siamashka@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>sf: Rename sf_ops.c to spi-flash.c</title>
<updated>2015-12-11T16:42:24Z</updated>
<author>
<name>Jagan Teki</name>
<email>jteki@openedev.com</email>
</author>
<published>2015-12-06T17:59:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cba65a77c4e75d6e1e3dcaa65b7d509f1a2bb95e'/>
<id>urn:sha1:cba65a77c4e75d6e1e3dcaa65b7d509f1a2bb95e</id>
<content type='text'>
Since all spi-flash core operations are moved into
sf_ops.c then it's better to renamed as spi-flash.c

Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>sf: Fix Makefile</title>
<updated>2015-12-11T16:42:23Z</updated>
<author>
<name>Jagan Teki</name>
<email>jteki@openedev.com</email>
</author>
<published>2015-09-29T13:46:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fc335d63b06dc81db45acc77358bdedeeca737c8'/>
<id>urn:sha1:fc335d63b06dc81db45acc77358bdedeeca737c8</id>
<content type='text'>
This patch removes unneeded ifdef and fixed accordingly.

Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-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: dataflash: Rename to CONFIG_SPI_FLASH_DATAFLASH</title>
<updated>2015-07-01T15:45:04Z</updated>
<author>
<name>Jagan Teki</name>
<email>jteki@openedev.com</email>
</author>
<published>2015-06-27T16:34:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6812484a40bf18ec8e0021278613caf6a0c46bd7'/>
<id>urn:sha1:6812484a40bf18ec8e0021278613caf6a0c46bd7</id>
<content type='text'>
Rename CONFIG_SF_DATAFLASH into CONFIG_SPI_FLASH_DATAFLASH
as it follows the naming convention same as remaining configs.

Signed-off-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>mtd, spi: Add MTD layer driver</title>
<updated>2015-06-29T19:10:11Z</updated>
<author>
<name>Daniel Schwierzeck</name>
<email>daniel.schwierzeck@gmail.com</email>
</author>
<published>2015-04-27T05:42:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9fe6d8716e090f3b2dd3f4604acfced124b8a2fc'/>
<id>urn:sha1:9fe6d8716e090f3b2dd3f4604acfced124b8a2fc</id>
<content type='text'>
Add MTD layer driver for spi, original patch from:
http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced

Changes from Heiko Schocher against this patch:
- Remove compile error if not defining CONFIG_SPI_FLASH_MTD:

  LD      drivers/mtd/spi/built-in.o
drivers/mtd/spi/sf_probe.o: In function `spi_flash_mtd_unregister':
/home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: multiple definition of `spi_flash_mtd_unregister'
drivers/mtd/spi/sf_params.o:/home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: first defined here
drivers/mtd/spi/sf_ops.o: In function `spi_flash_mtd_unregister':
/home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: multiple definition of `spi_flash_mtd_unregister'
drivers/mtd/spi/sf_params.o:/home/hs/abb/imx6/u-boot/drivers/mtd/spi/sf_internal.h:168: first defined here
make[1]: *** [drivers/mtd/spi/built-in.o] Fehler 1
make: *** [drivers/mtd/spi] Fehler 2

- Add a README entry.
- Add correct writebufsize, to fit with Linux v3.14
  MTD, UBI/UBIFS sync.

Note (From Jagan): For testing raw mtd parition erase/read/write operations
using cmd_sf, sf_mtd should be required to register the spi flash device to
MTD layer but the sf_mtd_info ops were not required until and unless if we
use any flash filesystem layer say for example UBI. Due to this the foot-print
got increased ~290bytes in non-UBI case here that should be acceptible.

Signed-off-by: Daniel Schwierzeck &lt;daniel.schwierzeck@gmail.com&gt;
Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Tested-by: Jagannadh Teki &lt;jteki@openedev.com&gt;
Reviewed-by: Jagannadh Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>dm: sf: Add Atmel DataFlash spi flash driver</title>
<updated>2015-06-29T19:10:10Z</updated>
<author>
<name>Haikun Wang</name>
<email>Haikun.Wang@freescale.com</email>
</author>
<published>2015-06-26T11:30:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=79b4c08fc42cd7f6b51183b5338f337116c6fdf3'/>
<id>urn:sha1:79b4c08fc42cd7f6b51183b5338f337116c6fdf3</id>
<content type='text'>
Atmel DataFlash chips have commands different from common spi
flash commands.
Atmel DataFlash also have special page-size.
This driver add support for accessing Atmel DataFlash.
It is based on the Driver Model.
Example:
=&gt; sf probe 1:0
SPI DataFlash: Detected AT45DB021B with page size 264 Bytes, erase size 264 Bytes, total 264 KiB, revision d
=&gt; sf erase 0 42000
SF: 270336 bytes @ 0x0 Erased: OK
=&gt; mw.l 82000000 45444342 20000
=&gt; sf write 82000000 0 42000
SF: 270336 bytes @ 0x0 Written: OK
=&gt; sf read 83000000 0 42000
SF: 270336 bytes @ 0x0 Read: OK
=&gt; cmp.b 82000000 83000000 42000
Total of 270336 byte(s) were the same

Signed-off-by: Haikun Wang &lt;haikun.wang@freescale.com&gt;
Tested-by: Haikun Wang &lt;haikun.wang@freescale.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Chakra Divi &lt;cdivi@openedev.com&gt;
Reviewed-by: Jagan Teki &lt;jteki@openedev.com&gt;
</content>
</entry>
<entry>
<title>mtd: sf: Zap ramtron driver</title>
<updated>2014-12-18T12:47:54Z</updated>
<author>
<name>Jagannadha Sutradharudu Teki</name>
<email>jagannadh.teki@gmail.com</email>
</author>
<published>2014-11-06T10:35:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2bf48026fd5ab324f673d4b0a15c049d5d45bcd6'/>
<id>urn:sha1:2bf48026fd5ab324f673d4b0a15c049d5d45bcd6</id>
<content type='text'>
Removed ramtron driver since the EMK boards are
no longer been active, and these are the only boards
used this flash driver.

Commit details for EMK zap:
"ppc/arm: zap EMK boards"
(sha1: d58a9451e7339ed4cf2b2627e534611f427fb791)

Signed-off-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
Cc: Reinhard Meyer &lt;reinhard.meyer@emk-elektronik.de&gt;
</content>
</entry>
<entry>
<title>dm: sf: Add a uclass for SPI flash</title>
<updated>2014-10-22T16:36:50Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2014-10-14T05:42:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4c2dbefde58917205af51a2c20b3069e01e55cf4'/>
<id>urn:sha1:4c2dbefde58917205af51a2c20b3069e01e55cf4</id>
<content type='text'>
Add a driver model uclass for SPI flash which supports the common
operations (read, write, erase). Since we must keep support for the
non-dm interface, some modification of the spi_flash header is required.

CONFIG_DM_SPI_FLASH is used to enable driver model for SPI flash.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Jagannadha Sutradharudu Teki &lt;jagannadh.teki@gmail.com&gt;
</content>
</entry>
<entry>
<title>sf: Separate the flash params table</title>
<updated>2014-01-11T09:43:27Z</updated>
<author>
<name>Jagannadha Sutradharudu Teki</name>
<email>jaganna@xilinx.com</email>
</author>
<published>2013-12-23T18:04:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=33adfb5f9b06ac1a386dddc222cc50e24a9909e2'/>
<id>urn:sha1:33adfb5f9b06ac1a386dddc222cc50e24a9909e2</id>
<content type='text'>
Moved the flash params table from sf_probe.c and
placed on to sf_params.c, hence flash params file will
alter based on new addons.

Signed-off-by: Jagannadha Sutradharudu Teki &lt;jaganna@xilinx.com&gt;
</content>
</entry>
</feed>
