diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-02-09 15:35:50 +0100 |
---|---|---|
committer | Mitch Bradley <wmb@firmworks.com> | 2020-02-09 07:20:37 -1000 |
commit | 301659f1cb09ae4b278041f4e60d6ed6d8cb8710 (patch) | |
tree | 33ff75f31e6ef01866da28f633766999b2124a4b | |
parent | bc0eaf9351769696a11556a4ea4b59f1e5d57ed7 (diff) | |
download | cforth-301659f1cb09ae4b278041f4e60d6ed6d8cb8710.tar.gz |
arm-xo-1.75: conditionalize protect-fw on sec-trg-gpio#
This will allow us to support SPI on board without the OLPC
security mechanism.
-rw-r--r-- | src/app/arm-xo-1.75/hackspi.fth | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/arm-xo-1.75/hackspi.fth b/src/app/arm-xo-1.75/hackspi.fth index 04f614d..67933f6 100644 --- a/src/app/arm-xo-1.75/hackspi.fth +++ b/src/app/arm-xo-1.75/hackspi.fth @@ -180,9 +180,11 @@ h# 1010.0000 constant spi-mem-base false ; +[ifdef] sec-trg-gpio# : sec-trg ( -- ) sec-trg-gpio# gpio-set ; : protect-fw ( -- ) secure? if spi-protect sec-trg then ; +[endif] \ Assumes offset is block-aligned : write-setup-dance ( -- ) |