<div>This patch set makes Flashrom a bit more ARM-friendly and adds raw Tegra2 SPI controller support. It isolates a few PCI-isms, adds some low-level hardware access stubs, adds Tegra2 processor detection, and adds Tegra2 raw SPI controller code.</div>


<div><br></div><div><div>I've attached some logfiles for read/erase/write operations. This particular patch set was tested using a board based off NVIDIA's Tegra2 reference board ("Seaboard"). Earlier revisions were tested on a Seaboard.</div>


<div><br></div><div><div><div>All three attached patches are:</div></div></div><div>Signed-off-by: David Hendricks <<a href="mailto:dhendrix@google.com" target="_blank">dhendrix@google.com</a>></div></div><div><br>


</div><div><div><div><div>Much of the original U-Boot --> Flashrom porting work was done by Stefan Reinauer <<a href="mailto:reinauer@google.com" target="_blank">reinauer@google.com</a>>, and the FIFO code updated / fixed up by Louis Lo <<a href="mailto:yjlou@google.com" target="_blank">yjlou@google.com</a>>. </div>


</div></div></div><div><br></div><div>A few notes:</div><div>1. A few programmers must be disabled due to reliance on PCI. You can hack up your Makefile or compile with "CONFIG_RAYER_SPI=no CONFIG_NIC3COM=no CONFIG_NICREALTEK=no CONFIG_SATAMV=no".</div>


<div><br></div><div>2. Due to issues with libpci, you can't use the same binary on machines with PCI and without PCI. So for example, you can't program a SPI ROM onboard a PCI card that is connected to your ARM SoC.</div>


<div><br></div><div>3. For those who wish to try this code on Seaboard, please be aware that the UART is disabled during operation and then re-enabled afterward. This is because the MISO/MOSI are muxed with the UART (See comments in tegra2_spi.c). You will not see any Flashrom output on your serial console.</div>


<div><br></div><div>4. The tegra2_spi code was originally contributed by NVIDIA to the Chromium OS <a href="http://git.chromium.org/gitweb/?p=chromiumos/third_party/u-boot.git;a=blob;f=drivers/spi/tegra2_spi.c;h=15a23124027ecdad5fcec23206a0fc67b968872d;hb=HEAD" target="_blank">U-Boot</a> branch and was later grafted into Flashrom so we could more easily perform SPI ROM updates from userspace. Please excuse minor style inconsistencies as we are trying to stay reasonably close to the code checked into the U-Boot tree ;-)</div>


<div><br></div><div>-- <br>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.<br>

</div>