You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -420,7 +420,7 @@ endif
  4. # Disable all drivers needing raw access (memory, PCI, port I/O) on
  5. # architectures with unknown raw access properties.
  6. # Right now those architectures are alpha hppa m68k sh s390
  7. -ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc))
  8. +ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc arc))
  9. ifeq ($(CONFIG_INTERNAL), yes)
  10. UNSUPPORTED_FEATURES += CONFIG_INTERNAL=yes
  11. else
  12. --- a/hwaccess.h
  13. +++ b/hwaccess.h
  14. @@ -87,6 +87,13 @@
  15. /* SPARC is big endian in general (but allows to access data in little endian too). */
  16. #define __FLASHROM_BIG_ENDIAN__ 1
  17. +#elif IS_ARC
  18. +#ifdef __arceb__
  19. +#define __FLASHROM_BIG_ENDIAN__ 1
  20. +#else
  21. +#define __FLASHROM_LITTLE_ENDIAN__ 1
  22. +#endif
  23. +
  24. #endif /* IS_? */
  25. #if !defined (__FLASHROM_BIG_ENDIAN__) && !defined (__FLASHROM_LITTLE_ENDIAN__)
  26. @@ -378,6 +385,8 @@ int libpayload_wrmsr(int addr, msr_t msr);
  27. /* Non memory mapped I/O is not supported on ARM. */
  28. +#elif IS_ARC
  29. +
  30. #else
  31. #error Unknown architecture, please check if it supports PCI port IO.
  32. diff --git a/platform.h b/platform.h
  33. index b2fdcd0..2e68e71 100644
  34. --- a/platform.h
  35. +++ b/platform.h
  36. @@ -75,9 +75,12 @@
  37. #elif defined(__s390__) || defined(__s390x__) || defined(__zarch__)
  38. #define __FLASHROM_ARCH__ "s390"
  39. #define IS_S390 1
  40. +#elif defined (__arc__)
  41. + #define __FLASHROM_ARCH__ "arc"
  42. + #define IS_ARC 1
  43. #endif
  44. -#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_SH || IS_S390)
  45. +#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_SH || IS_S390 || IS_ARC)
  46. #error Unknown architecture
  47. #endif