juno: Fix AArch32 build
authorDimitris Papastamos <dimitris.papastamos@arm.com>
Mon, 19 Jun 2017 14:54:58 +0000 (15:54 +0100)
committerDimitris Papastamos <dimitris.papastamos@arm.com>
Tue, 20 Jun 2017 14:14:01 +0000 (15:14 +0100)
Commit 6de8b24f52cf2bd74adefbaa86dd2a0676c3eaa2 broke Juno AArch32
build.

Change-Id: Ied70d9becb86e53ccb46a2e3245e2a551d1bf701
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
plat/arm/board/juno/aarch32/juno_helpers.S

index 5044a240b2453da07c22889292cf06633cd97aed..824002aedb130b7aef8a48b1554add2a1aa49bd9 100644 (file)
@@ -81,9 +81,9 @@ func JUNO_HANDLER(0)
         * Cortex-A57 specific settings
         * --------------------------------------------------------------------
         */
-       mov     r0, #((L2_DATA_RAM_LATENCY_3_CYCLES << L2CTLR_DATA_RAM_LATENCY_SHIFT) | \
-                     (L2_TAG_RAM_LATENCY_3_CYCLES << L2CTLR_TAG_RAM_LATENCY_SHIFT))
-       stcopr  r0, L2CTLR
+       mov     r0, #((CORTEX_A57_L2_DATA_RAM_LATENCY_3_CYCLES << CORTEX_A57_L2CTLR_DATA_RAM_LATENCY_SHIFT) |   \
+                     (CORTEX_A57_L2_TAG_RAM_LATENCY_3_CYCLES << CORTEX_A57_L2CTLR_TAG_RAM_LATENCY_SHIFT))
+       stcopr  r0, CORTEX_A57_L2CTLR
 1:
        isb
        bx      lr
@@ -118,8 +118,8 @@ A57:
         * Cortex-A57 specific settings
         * --------------------------------------------------------------------
         */
-       mov     r0, #(L2_DATA_RAM_LATENCY_3_CYCLES << L2CTLR_DATA_RAM_LATENCY_SHIFT)
-       stcopr  r0, L2CTLR
+       mov     r0, #(CORTEX_A57_L2_DATA_RAM_LATENCY_3_CYCLES << CORTEX_A57_L2CTLR_DATA_RAM_LATENCY_SHIFT)
+       stcopr  r0, CORTEX_A57_L2CTLR
        isb
        bx      lr
 endfunc JUNO_HANDLER(1)
@@ -152,9 +152,9 @@ A72:
         * Cortex-A72 specific settings
         * --------------------------------------------------------------------
         */
-       mov     r0, #((L2_DATA_RAM_LATENCY_3_CYCLES << L2CTLR_DATA_RAM_LATENCY_SHIFT) | \
-                     (L2_TAG_RAM_LATENCY_2_CYCLES << L2CTLR_TAG_RAM_LATENCY_SHIFT))
-       stcopr  r0, L2CTLR
+       mov     r0, #((CORTEX_A72_L2_DATA_RAM_LATENCY_3_CYCLES << CORTEX_A72_L2CTLR_DATA_RAM_LATENCY_SHIFT) |   \
+                     (CORTEX_A72_L2_TAG_RAM_LATENCY_2_CYCLES << CORTEX_A72_L2CTLR_TAG_RAM_LATENCY_SHIFT))
+       stcopr  r0, CORTEX_A72_L2CTLR
        isb
        bx      lr
 endfunc JUNO_HANDLER(2)