armv7: ls102xa: cci-400: Enable snoop and DVM message requests.
authorYao Yuan <yao.yuan@freescale.com>
Sat, 5 Dec 2015 06:59:12 +0000 (14:59 +0800)
committerYork Sun <yorksun@freescale.com>
Tue, 15 Dec 2015 00:56:53 +0000 (08:56 +0800)
Enable snoop and DVM message on all CCI-400 slave ports. Setting
on disabled feature (snoop or DVM) is ignored by CCI-400.

Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
[York Sun: Add commit message]
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv7/ls102xa/soc.c

index 6036473a50dda18d6f1a813560298272902bf200..97ba6d5179ff1d6c90164452917f4e24b8e82701 100644 (file)
@@ -40,8 +40,14 @@ int arch_soc_init(void)
 
        /*
         * Enable snoop requests and DVM message requests for
-        * Slave insterface S4 (A7 core cluster)
+        * All the slave insterfaces.
         */
+       out_le32(&cci->slave[0].snoop_ctrl,
+                CCI400_DVM_MESSAGE_REQ_EN | CCI400_SNOOP_REQ_EN);
+       out_le32(&cci->slave[1].snoop_ctrl,
+                CCI400_DVM_MESSAGE_REQ_EN | CCI400_SNOOP_REQ_EN);
+       out_le32(&cci->slave[2].snoop_ctrl,
+                CCI400_DVM_MESSAGE_REQ_EN | CCI400_SNOOP_REQ_EN);
        out_le32(&cci->slave[4].snoop_ctrl,
                 CCI400_DVM_MESSAGE_REQ_EN | CCI400_SNOOP_REQ_EN);