Merge pull request #284 from antonblanchard/boot-clocks
authorAnton Blanchard <anton@linux.ibm.com>
Tue, 23 Mar 2021 09:02:27 +0000 (20:02 +1100)
committerGitHub <noreply@github.com>
Tue, 23 Mar 2021 09:02:27 +0000 (20:02 +1100)
Allow SPI BOOT_CLOCKS to be overridden by top level

soc.vhdl

index 88249bf51e92d91a6a6b70df65ce4055627cb3f8..28b03dcaa47a27fe5d0ab06a5f82bbc3fec0fe78 100644 (file)
--- a/soc.vhdl
+++ b/soc.vhdl
@@ -63,6 +63,7 @@ entity soc is
         SPI_FLASH_OFFSET   : integer := 0;
         SPI_FLASH_DEF_CKDV : natural := 2;
         SPI_FLASH_DEF_QUAD : boolean := false;
+        SPI_BOOT_CLOCKS    : boolean := true;
         LOG_LENGTH         : natural := 512;
         HAS_LITEETH        : boolean := false;
        UART0_IS_16550     : boolean := true;
@@ -764,7 +765,8 @@ begin
             generic map (
                 DATA_LINES    => SPI_FLASH_DLINES,
                 DEF_CLK_DIV   => SPI_FLASH_DEF_CKDV,
-                DEF_QUAD_READ => SPI_FLASH_DEF_QUAD
+                DEF_QUAD_READ => SPI_FLASH_DEF_QUAD,
+                BOOT_CLOCKS   => SPI_BOOT_CLOCKS
                 )
             port map(
                 rst => rst_spi,