summaryrefslogtreecommitdiff
path: root/big-little/common/vgic_setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'big-little/common/vgic_setup.c')
-rw-r--r--big-little/common/vgic_setup.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/big-little/common/vgic_setup.c b/big-little/common/vgic_setup.c
index 8c839eb..15625cf 100644
--- a/big-little/common/vgic_setup.c
+++ b/big-little/common/vgic_setup.c
@@ -18,7 +18,7 @@
* contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
- */
+ */
#include "int_master.h"
#include "gic_registers.h"
@@ -48,35 +48,35 @@
*/
static void gic_cpuinit()
{
- /* Disable the PCPUIF before configuring it. */
- write32(GIC_IC_PHY_BASE + GICC_CTL, 0x0);
- write32(GIC_IC_PHY_BASE + GICC_BP, 0x0);
- write32(GIC_IC_PHY_BASE + GICC_PRIMASK, 0xFF);
- /* Enable split EOI & Non-secure PCPUIF */
- write32(GIC_IC_PHY_BASE + GICC_CTL, 0x201);
+ /* Disable the PCPUIF before configuring it. */
+ write32(GIC_IC_PHY_BASE + GICC_CTL, 0x0);
+ write32(GIC_IC_PHY_BASE + GICC_BP, 0x0);
+ write32(GIC_IC_PHY_BASE + GICC_PRIMASK, 0xFF);
+ /* Enable split EOI & Non-secure PCPUIF */
+ write32(GIC_IC_PHY_BASE + GICC_CTL, 0x201);
}
void SetupVGIC(unsigned warm_reset)
{
- /*
- * Initialise the HYP view Virtual CPU interface after
- * a cold reset
- */
- if (!warm_reset)
- vgic_init();
+ /*
+ * Initialise the HYP view Virtual CPU interface after
+ * a cold reset
+ */
+ if (!warm_reset)
+ vgic_init();
- /* Initialise the Physical cpu interface */
- gic_cpuinit();
+ /* Initialise the Physical cpu interface */
+ gic_cpuinit();
- /*
- * Enable Virtual exceptions
- */
- write_hcr(read_hcr() | HCR_AMO | HCR_IMO | HCR_FMO);
+ /*
+ * Enable Virtual exceptions
+ */
+ write_hcr(read_hcr() | HCR_AMO | HCR_IMO | HCR_FMO);
- /*
- * TODO: Barriers not needed here as there will surely
- * be others further down the line before virtual
- * exceptions are used.
- */
- return;
+ /*
+ * TODO: Barriers not needed here as there will surely
+ * be others further down the line before virtual
+ * exceptions are used.
+ */
+ return;
}