summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-03-16 20:04:18 -0600
committerEvan Lojewski <github@meklort.com>2019-03-16 20:04:18 -0600
commit964035c6361d0a2169d72ca02c4abfb4139051c4 (patch)
treeb9b302ce6c08ee63bbda2ce7573776fa04afd3be /libs
parent84eddaf3aac46e8cb10f8a097549bb642adaaa00 (diff)
downloadbcm5719-ortega-964035c6361d0a2169d72ca02c4abfb4139051c4.tar.gz
bcm5719-ortega-964035c6361d0a2169d72ca02c4abfb4139051c4.zip
Fix the APE library to release locks properly.
Diffstat (limited to 'libs')
-rw-r--r--libs/APE/ape.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/libs/APE/ape.c b/libs/APE/ape.c
index f078118..e6512d0 100644
--- a/libs/APE/ape.c
+++ b/libs/APE/ape.c
@@ -91,40 +91,40 @@ void APE_aquireLock(void)
void APE_releaseLock(void)
{
- RegAPEPerLockRequestPhy0_t lock_req;
- lock_req.r32 = 0;
- lock_req.bits.Bootcode = 1;
+ RegAPEPerLockGrantPhy0_t lock_release;
+ lock_release.r32 = 0;
+ lock_release.bits.Bootcode = 1;
uint8_t function = DEVICE.Status.bits.FunctionNumber;
switch(function)
{
default:
case 0:
- APE.PerLockGrantPhy0.r32 = lock_req.r32;
+ APE.PerLockGrantPhy0.r32 = lock_release.r32;
case 1:
- APE.PerLockGrantPhy1.r32 = lock_req.r32;
+ APE.PerLockGrantPhy1.r32 = lock_release.r32;
case 2:
- APE.PerLockGrantPhy2.r32 = lock_req.r32;
+ APE.PerLockGrantPhy2.r32 = lock_release.r32;
case 3:
- APE.PerLockGrantPhy3.r32 = lock_req.r32;
+ APE.PerLockGrantPhy3.r32 = lock_release.r32;
}
}
void APE_releaseAllLocks(void)
{
- RegAPEPerLockRequestPhy0_t lock_req;
- lock_req.r32 = 0;
- lock_req.bits.Bootcode = 1;
+ RegAPEPerLockGrantPhy0_t lock_release;
+ lock_release.r32 = 0;
+ lock_release.bits.Bootcode = 1;
- APE.PerLockGrantPhy0.r32 = lock_req.r32;
- APE.PerLockRequestGrc.r32 = lock_req.r32;
- APE.PerLockGrantPhy1.r32 = lock_req.r32;
- APE.PerLockGrantPhy2.r32 = lock_req.r32;
- APE.PerLockRequestMem.r32 = lock_req.r32;
- APE.PerLockGrantPhy3.r32 = lock_req.r32;
- APE.PerLockRequestPort6.r32 = lock_req.r32;
- APE.PerLockRequestGpio.r32 = lock_req.r32;
+ APE.PerLockGrantPhy0.r32 = lock_release.r32;
+ APE.PerLockGrantGrc.r32 = lock_release.r32;
+ APE.PerLockGrantPhy1.r32 = lock_release.r32;
+ APE.PerLockGrantPhy2.r32 = lock_release.r32;
+ APE.PerLockGrantMem.r32 = lock_release.r32;
+ APE.PerLockGrantPhy3.r32 = lock_release.r32;
+ APE.PerLockGrantPort6.r32 = lock_release.r32;
+ APE.PerLockGrantGpio.r32 = lock_release.r32;
}
OpenPOWER on IntegriCloud