From ad4605abdecddd95c619fec7d04f098165c4842a Mon Sep 17 00:00:00 2001 From: hexkyz Date: Tue, 4 Sep 2018 19:16:03 +0100 Subject: [PATCH] fusee: Fix a bug in cluster boot code. --- fusee/fusee-secondary/src/cluster.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fusee/fusee-secondary/src/cluster.c b/fusee/fusee-secondary/src/cluster.c index b0c884670..12eebeb8b 100644 --- a/fusee/fusee-secondary/src/cluster.c +++ b/fusee/fusee-secondary/src/cluster.c @@ -77,12 +77,12 @@ void cluster_boot_cpu0(uint32_t entry) udelay(2); car->pllx_base = 0x80404E02; car->pllx_base = 0x404E02; - car->pllx_misc = ((car->pllx_base & 0xFFFBFFFF) | 0x40000); + car->pllx_misc = ((car->pllx_misc & 0xFFFBFFFF) | 0x40000); car->pllx_base = 0x40404E02; } while (!(car->pllx_base & 0x8000000)) { - /* Spinlock. */ + /* Wait. */ } /* Configure MSELECT source and enable clock. */ @@ -111,13 +111,13 @@ void cluster_boot_cpu0(uint32_t entry) /* Request and wait for RAM repair. */ FLOW_CTLR_RAM_REPAIR_0 = 1; while (!(FLOW_CTLR_RAM_REPAIR_0 & 2)){ - /* Spinlock. */ + /* Wait. */ } MAKE_EXCP_VEC_REG(0x100) = 0; /* Set reset vector. */ - SB_AA64_RESET_LOW_0 = entry | 1; + SB_AA64_RESET_LOW_0 = (entry | 1); SB_AA64_RESET_HIGH_0 = 0; /* Non-secure reset vector write disable. */