path: root/hwaccess.h
diff options
authorDavid Hendricks <>2012-02-13 00:35:35 +0000
committerCarl-Daniel Hailfinger <>2012-02-13 00:35:35 +0000
commitb286da7ffc0dd978bb6efe4530c3e904b57c4aca (patch)
tree95734984a923e7da1c7e20d39c5202a6a715e703 /hwaccess.h
parentbfd89a56353286d6ff393110b590448aa9c39669 (diff)
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. Corresponding to flashrom svn r1492. Signed-off-by: David Hendricks <> Acked-by: David Hendricks <> Tested-by: Timo Juhani Lindfors <> Acked-by: Carl-Daniel Hailfinger <>
Diffstat (limited to 'hwaccess.h')
1 files changed, 11 insertions, 0 deletions
diff --git a/hwaccess.h b/hwaccess.h
index eea3652..c10b12e 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -68,6 +68,13 @@
#error Little-endian PowerPC #defines are unknown
+#elif defined (__arm__)
+#if defined (__ARMEL__)
+#error Big-endian ARM #defines are unknown
#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. */
#error Unknown architecture, please check if it supports PCI port IO.
OpenPOWER on IntegriCloud