From f021c1de5f7aafe02a0741b7fbd0b2dd0d1563d9 Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Thu, 19 Mar 2020 22:14:54 -0400 Subject: [PATCH] targets/trellisboard: add '--with-spi-sdcard' build option Signed-off-by: Gabriel Somlo --- litex_boards/targets/trellisboard.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litex_boards/targets/trellisboard.py b/litex_boards/targets/trellisboard.py index 06d3f71..d3f44e7 100755 --- a/litex_boards/targets/trellisboard.py +++ b/litex_boards/targets/trellisboard.py @@ -126,11 +126,15 @@ def main(): help="system clock frequency (default=75MHz)") parser.add_argument("--with-ethernet", action="store_true", help="enable Ethernet support") + parser.add_argument("--with-spi-sdcard", action="store_true", + help="enable SPI-mode SDCard support") args = parser.parse_args() soc = BaseSoC(sys_clk_freq=int(float(args.sys_clk_freq)), with_ethernet=args.with_ethernet, **soc_sdram_argdict(args)) + if args.with_spi_sdcard: + soc.add_spi_sdcard() builder = Builder(soc, **builder_argdict(args)) builder_kargs = trellis_argdict(args) if args.toolchain == "trellis" else {} builder.build(**builder_kargs)