FPGA: Add SPI access control logic

Access logic looks at instruction execution from a defined
      trampoline address to enable stateful SPI access.

      The access is disabled as soon as an instruction is executed
      from any address in RAM.

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2024-06-24 15:13:10 +02:00 committed by Daniel Jobson
parent 7f93b7817b
commit 42e375aaa5
No known key found for this signature in database
GPG key ID: 3707A9DBF4BB8F1A
2 changed files with 112 additions and 32 deletions

View file

@ -149,4 +149,5 @@
#define TK1_MMIO_TK1_SPI_EN 0xff000200
#define TK1_MMIO_TK1_SPI_XFER 0xff000204
#define TK1_MMIO_TK1_SPI_DATA 0xff000208
#define TK1_MMIO_TK1_SPI_CMD 0xff00020c
#endif