]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(cpus): remove plat_can_cmo check for aarch32
authorOkash Khawaja <okash@google.com>
Mon, 14 Nov 2022 13:02:12 +0000 (13:02 +0000)
committerManish Pandey <manish.pandey2@arm.com>
Mon, 14 Nov 2022 14:31:17 +0000 (15:31 +0100)
We don't need CONDITIONAL_CMO for aarch32 so let's remove it.

Signed-off-by: Okash Khawawja <okash@google.com>
Change-Id: I256959d7005df21a850ff7791c8188ea01f5c53b

lib/aarch32/cache_helpers.S

index fd9b33f2d5547c2ac5eac747a4e473bdcfa87ae5..13d1872f84a91af2d195030ab93f2c2b0c5ab1c3 100644 (file)
@@ -37,27 +37,12 @@ exit_loop_\op:
        bx      lr
 .endm
 
-.macro check_plat_can_cmo
-#if CONDITIONAL_CMO
-       mov     r3, lr
-       mov     r2, r0
-       bl      plat_can_cmo
-       mov     lr, r3
-       cmp     r0, #0
-       bne     1f
-       bx      lr
-1:
-       mov     r0, r2
-#endif
-.endm
-
        /* ------------------------------------------
         * Clean+Invalidate from base address till
         * size. 'r0' = addr, 'r1' = size
         * ------------------------------------------
         */
 func flush_dcache_range
-       check_plat_can_cmo
        do_dcache_maintenance_by_mva cimvac, DCCIMVAC
 endfunc flush_dcache_range
 
@@ -67,7 +52,6 @@ endfunc flush_dcache_range
         * ------------------------------------------
         */
 func clean_dcache_range
-       check_plat_can_cmo
        do_dcache_maintenance_by_mva cmvac, DCCMVAC
 endfunc clean_dcache_range
 
@@ -77,7 +61,6 @@ endfunc clean_dcache_range
         * ------------------------------------------
         */
 func inv_dcache_range
-       check_plat_can_cmo
        do_dcache_maintenance_by_mva imvac, DCIMVAC
 endfunc inv_dcache_range
 
@@ -185,7 +168,6 @@ endfunc do_dcsw_op
         * ---------------------------------------------------------------
         */
 func dcsw_op_louis
-       check_plat_can_cmo
        dcsw_op #LOUIS_SHIFT, #CLIDR_FIELD_WIDTH, #LEVEL_SHIFT
 endfunc        dcsw_op_louis
 
@@ -198,7 +180,6 @@ endfunc     dcsw_op_louis
         * ---------------------------------------------------------------
         */
 func dcsw_op_all
-       check_plat_can_cmo
        dcsw_op #LOC_SHIFT, #CLIDR_FIELD_WIDTH, #LEVEL_SHIFT
 endfunc        dcsw_op_all
 
@@ -224,7 +205,6 @@ endfunc     dcsw_op_all
         * ---------------------------------------------------------------
         */
 func dcsw_op_level1
-       check_plat_can_cmo
        dcsw_op_level #(1 << LEVEL_SHIFT)
 endfunc dcsw_op_level1
 
@@ -237,7 +217,6 @@ endfunc dcsw_op_level1
         * ---------------------------------------------------------------
         */
 func dcsw_op_level2
-       check_plat_can_cmo
        dcsw_op_level #(2 << LEVEL_SHIFT)
 endfunc dcsw_op_level2
 
@@ -250,6 +229,5 @@ endfunc dcsw_op_level2
         * ---------------------------------------------------------------
         */
 func dcsw_op_level3
-       check_plat_can_cmo
        dcsw_op_level #(3 << LEVEL_SHIFT)
 endfunc dcsw_op_level3