From 8e8bfa29c1fa3cb318bf893beaa62ac84b38c814 Mon Sep 17 00:00:00 2001 From: hailfinger Date: Mon, 13 Feb 2012 00:35:35 +0000 Subject: 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. Signed-off-by: David Hendricks Acked-by: David Hendricks Tested-by: Timo Juhani Lindfors Acked-by: Carl-Daniel Hailfinger git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1492 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- hwaccess.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hwaccess.h') 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 #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. -- cgit v1.2.1