rockchip: rk3288: move SOC setting into arch_cpu_init()
[oweals/u-boot.git] / arch / arm / lib / ccn504.S
index 7570c7b231f2d59b4656f7ce534bb9e4ff471468..2c584095c3c2191525fcabf67c5f2f6da743f00d 100644 (file)
@@ -1,8 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2015 Freescale Semiconductor
  *
- * SPDX-License-Identifier:    GPL-2.0+
- *
  * Extracted from gic_64.S
  */
 
@@ -59,3 +58,24 @@ ENTRY(ccn504_set_qos)
        ret
 ENDPROC(ccn504_set_qos)
 
+/*************************************************************************
+ *
+ * void ccn504_set_aux(CCI_AUX_CONTROL_BASE, Value);
+ *
+ * Initialize AUX control settings
+ *
+ *************************************************************************/
+ENTRY(ccn504_set_aux)
+       /*
+        * x0: CCI_AUX_CONTROL_BASE
+        * x1: Value
+        */
+
+       ldr     x9, [x0]
+       mov     x10, x1
+       orr     x9, x9, x10
+       str     x9, [x0]
+
+       ret
+ENDPROC(ccn504_set_aux)
+