summaryrefslogtreecommitdiff
path: root/hwaccess.h
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2015-02-10 08:03:10 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2015-02-10 08:03:10 +0000
commit05fae94bad0e0d5522f498a614fbef5f3a27b552 (patch)
tree340b3f1f7464cfe2a6ef92e2b4e9b7d48b559f41 /hwaccess.h
parentef82032caba19e59bdd196764345631ae682c983 (diff)
downloadflashrom-05fae94bad0e0d5522f498a614fbef5f3a27b552.tar.gz
Add support for SPARC (maybe).
Was implemented by SPARC newbies, does (cross-)compile but is not run-tested. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1882 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'hwaccess.h')
-rw-r--r--hwaccess.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hwaccess.h b/hwaccess.h
index a4fd502..5378361 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -89,6 +89,10 @@
#define __FLASHROM_LITTLE_ENDIAN__ 1
#endif
+#elif IS_SPARC
+/* SPARC is big endian in general (but allows to access data in little endian too). */
+#define __FLASHROM_BIG_ENDIAN__ 1
+
#endif /* IS_? */
#if !defined (__FLASHROM_BIG_ENDIAN__) && !defined (__FLASHROM_LITTLE_ENDIAN__)
@@ -357,6 +361,10 @@ int libpayload_wrmsr(int addr, msr_t msr);
/* PCI port I/O is not yet implemented on MIPS. */
+#elif IS_SPARC
+
+/* PCI port I/O is not yet implemented on SPARC. */
+
#elif IS_ARM
/* Non memory mapped I/O is not supported on ARM. */