From d2a28dcdbd1051d2f48320e2eda3393581fe0519 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 17 Mar 2018 23:08:29 -0700
Subject: [PATCH] platform: Add riscv to known platforms

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Submitted [https://review.coreboot.org/#/c/flashrom/+/25260/]
 platform.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/platform.h b/platform.h
index b2fdcd0..2cadbb3 100644
--- a/platform.h
+++ b/platform.h
@@ -69,6 +69,9 @@
 #elif defined (__m68k__)
 	#define __FLASHROM_ARCH__ "m68k"
 	#define IS_M68K 1
+#elif defined (__riscv)
+	#define __FLASHROM_ARCH__ "riscv"
+	#define IS_RISCV 1
 #elif defined (__sh__)
 	#define __FLASHROM_ARCH__ "sh"
 	#define IS_SH 1
@@ -77,7 +80,7 @@
 	#define IS_S390 1
 #endif
 
-#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_SH || IS_S390)
+#if !(IS_X86 || IS_MIPS || IS_PPC || IS_ARM || IS_SPARC || IS_ALPHA || IS_HPPA || IS_M68K || IS_RISCV || IS_SH || IS_S390)
 #error Unknown architecture
 #endif
 
-- 
2.16.2

