From 7044f56246417c4db9fc9df2feebb8138e56d51a Mon Sep 17 00:00:00 2001
From: Simon Schubert <2@0x2c.org>
Date: Fri, 22 Feb 2019 22:36:19 +0100
Subject: ice40: support u4k

---
 ice40/project.cc | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'ice40/project.cc')

diff --git a/ice40/project.cc b/ice40/project.cc
index 47c0903d..bbd82fd7 100644
--- a/ice40/project.cc
+++ b/ice40/project.cc
@@ -56,6 +56,9 @@ std::unique_ptr<Context> ProjectHandler::createContext(pt::ptree &root)
     if (arch_type == "up5k") {
         chipArgs.type = ArchArgs::UP5K;
     }
+    if (arch_type == "u4k") {
+        chipArgs.type = ArchArgs::U4K;
+    }
     chipArgs.package = root.get<std::string>("project.arch.package");
 
     return std::unique_ptr<Context>(new Context(chipArgs));
-- 
cgit v1.2.3