targets: fomu: support building with a cpu

Allow the user to specify a CPU.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-09-17 17:06:23 +08:00
parent e94c6c8f27
commit 348677598d
1 changed files with 4 additions and 2 deletions

View File

@ -164,11 +164,13 @@ class BaseSoC(SoCCore):
raise ValueError("unrecognized fomu board: {}".format(board))
platform = Platform()
if "cpu_type" not in kwargs:
kwargs["cpu_type"] = None
kwargs["cpu_variant"] = None
clk_freq = int(12e6)
SoCCore.__init__(self, platform, clk_freq,
cpu_type=None,
cpu_variant=None,
integrated_sram_size=0,
with_uart=False,
with_ctrl=False,