mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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 <dhendrix@google.com> Acked-by: David Hendricks <dhendrix@google.com> Tested-by: Timo Juhani Lindfors <timo.lindfors@iki.fi> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:

committed by
Carl-Daniel Hailfinger

parent
bfd89a5635
commit
b286da7ffc
11
hwaccess.h
11
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.
|
||||
|
Reference in New Issue
Block a user