diff options
author | Evan Lojewski <github@meklort.com> | 2019-06-01 15:17:14 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-06-01 15:17:14 -0600 |
commit | 4d3984b6d6e9a8f5d4a7ab24e941290da3addb89 (patch) | |
tree | ecd2f7bbf05af7dfee732afc59828445f7085fa9 /libs | |
parent | f37c9492bca5cb8ddeb07574ec7b4732327bb777 (diff) | |
download | bcm5719-ortega-4d3984b6d6e9a8f5d4a7ab24e941290da3addb89.tar.gz bcm5719-ortega-4d3984b6d6e9a8f5d4a7ab24e941290da3addb89.zip |
Update the APE code to use the APE lock bit.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/APE/ape.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/APE/ape.c b/libs/APE/ape.c index 0dd2acb..e7f0ca8 100644 --- a/libs/APE/ape.c +++ b/libs/APE/ape.c @@ -48,7 +48,11 @@ void APE_aquireLock(void) { RegAPE_PERIPerLockRequestPhy0_t lock_req; lock_req.r32 = 0; +#ifdef __arm__ /* APE */ + lock_req.bits.APE = 1; +#else lock_req.bits.Bootcode = 1; +#endif uint8_t function = DEVICE.Status.bits.FunctionNumber; switch (function) |