diff options
author | David Hendricks <dhendrix@google.com> | 2012-02-13 00:35:35 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2012-02-13 00:35:35 +0000 |
commit | 8bed718b50c3d193e79bb1edd762dbf4c4f2d459 (patch) | |
tree | 95734984a923e7da1c7e20d39c5202a6a715e703 /hwaccess.h | |
parent | e3c882a5d37a1cd80987df154dc7c43b1587a0a1 (diff) | |
download | flashrom-8bed718b50c3d193e79bb1edd762dbf4c4f2d459.zip flashrom-8bed718b50c3d193e79bb1edd762dbf4c4f2d459.tar.gz |
Support compilation for the ARM architecture (little-endian only)
Note: The internal programmer will abort during processor check. This is
intentional.
The other hardware drivers (except those using port I/O) should work.
Tested-by: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Corresponding to flashrom svn r1492.
Signed-off-by: David Hendricks <dhendrix@google.com>
Acked-by: David Hendricks <dhendrix@google.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'hwaccess.h')
-rw-r--r-- | hwaccess.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -68,6 +68,13 @@ #error Little-endian PowerPC #defines are unknown #endif +#elif defined (__arm__) +#if defined (__ARMEL__) +#define __FLASHROM_LITTLE_ENDIAN__ 1 +#else +#error Big-endian ARM #defines are unknown +#endif + #endif #if !defined (__FLASHROM_BIG_ENDIAN__) && !defined (__FLASHROM_LITTLE_ENDIAN__) @@ -326,6 +333,10 @@ int libpayload_wrmsr(int addr, msr_t msr); /* PCI port I/O is not yet implemented on MIPS. */ +#elif defined(__arm__) + +/* Non memory mapped I/O is not supported on ARM. */ + #else #error Unknown architecture, please check if it supports PCI port IO. |