Add support for SPARC (maybe)

Was implemented by SPARC newbies, does (cross-)compile but is not run-tested.

Corresponding to flashrom svn r1882.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
diff --git a/platform.h b/platform.h
index f57fd12..9cde054 100644
--- a/platform.h
+++ b/platform.h
@@ -45,9 +45,12 @@
       defined(__aarch64__)
 	#define __FLASHROM_ARCH__ "arm"
 	#define IS_ARM 1
+#elif defined (__sparc__) || defined (__sparc)
+	#define __FLASHROM_ARCH__ "sparc"
+	#define IS_SPARC 1
 #endif
 
-#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM)
+#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC)
 #error Unknown architecture
 #endif