Khem Raj has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/51960 )
Change subject: flashrom: Mark RISCV as non memory-mapped I/O architecture ......................................................................
flashrom: Mark RISCV as non memory-mapped I/O architecture
Signed-off-by: Khem Raj raj.khem@gmail.com Change-Id: I55c4e8529d36f0850dd56441c3fb8602c5d889fd --- M Makefile M hwaccess.h 2 files changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/60/51960/1
diff --git a/Makefile b/Makefile index 6d37d55..203e04b 100644 --- a/Makefile +++ b/Makefile @@ -559,7 +559,7 @@ # Disable all drivers needing raw access (memory, PCI, port I/O) on # architectures with unknown raw access properties. # Right now those architectures are alpha hppa m68k sh s390 -ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc arc)) +ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc arc riscv)) ifeq ($(CONFIG_RAYER_SPI), yes) UNSUPPORTED_FEATURES += CONFIG_RAYER_SPI=yes else diff --git a/hwaccess.h b/hwaccess.h index 5602c15..e79988a 100644 --- a/hwaccess.h +++ b/hwaccess.h @@ -295,6 +295,10 @@
/* Non memory mapped I/O is not supported on ARC. */
+#elif IS_RISCV + +/* Non memory mapped I/O is not supported on RISCV. */ + #else
#error Unknown architecture, please check if it supports PCI port IO.