diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-17 12:54:09 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-17 12:54:09 +0000 |
commit | 0d974e7a9263696fe3bfc7293bb0e632594e0925 (patch) | |
tree | ac83a822a78d0e27c96c9278943b8051107ec722 /hwaccess.h | |
parent | 1a854fc98ca68dae574a836ead8a6d3e6321fb18 (diff) | |
download | ast2050-flashrom-0d974e7a9263696fe3bfc7293bb0e632594e0925.zip ast2050-flashrom-0d974e7a9263696fe3bfc7293bb0e632594e0925.tar.gz |
Refine SPI bitbanging
Change the SPI bitbanging core to fix a subtle bug (which had no
effect so far) and to make integration of the RayeR SPIPGM and Nvidia
MCP6x/MCP7x SPI patches easier. Kill a few global variables and require
explicit initialization of bitbanging delay.
A big to Johannes Sjölund for testing an earlier version of the code as
part of the Nvidia MCP6x/MCP7x SPI bitbanging patch.
Corresponding to flashrom svn r1085.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'hwaccess.h')
-rw-r--r-- | hwaccess.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -176,6 +176,10 @@ cpu_to_be(64) #define __DARWIN__ #endif +/* Clarification about OUTB/OUTW/OUTL argument order: + * OUT[BWL](val, port) + */ + #if defined(__FreeBSD__) || defined(__DragonFly__) #include <machine/cpufunc.h> #define off64_t off_t |