diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2016-02-25 20:10:26 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2016-02-25 20:10:26 +0000 |
commit | 2941bd0994a749e4b1ce8dd92f1f43d1cb13216b (patch) | |
tree | c2072492ba8d691ef6cf5aca53da47478ac7e478 /platform.h | |
parent | aeb2d03a1dafab9bb4c249c9360d79d8e0e56d9e (diff) | |
download | flashrom-2941bd0994a749e4b1ce8dd92f1f43d1cb13216b.tar.gz |
Partial architecture support for alpha hppa m68k sh s390
Only hardware not needing raw access (PCI, memory, port I/O) is supported.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1943 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'platform.h')
-rw-r--r-- | platform.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -48,9 +48,24 @@ #elif defined (__sparc__) || defined (__sparc) #define __FLASHROM_ARCH__ "sparc" #define IS_SPARC 1 +#elif defined (__alpha__) + #define __FLASHROM_ARCH__ "alpha" + #define IS_ALPHA 1 +#elif defined (__hppa__) || defined (__hppa) + #define __FLASHROM_ARCH__ "hppa" + #define IS_HPPA 1 +#elif defined (__m68k__) + #define __FLASHROM_ARCH__ "m68k" + #define IS_M68K 1 +#elif defined (__sh__) + #define __FLASHROM_ARCH__ "sh" + #define IS_SH 1 +#elif defined(__s390__) || defined(__s390x__) || defined(__zarch__) + #define __FLASHROM_ARCH__ "s390" + #define IS_S390 1 #endif -#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC) +#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_SH || IS_S390) #error Unknown architecture #endif |