We boot the kernel in non-secure mode and by default access to
the CCI device is not enabled for non-secure access, so we must
enable this if we want Linux to manage CPU hotplug on big.LITTLE
models.

Signed-off-by: Jon Medhurst <t...@linaro.org>
---
 semi_loader.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/semi_loader.c b/semi_loader.c
index f8be94d..f9d36e5 100644
--- a/semi_loader.c
+++ b/semi_loader.c
@@ -263,6 +263,8 @@ static void init_cci(unsigned cci)
        /* Wait while change pending bit of status register is set */
        while(io32(cci+0xc) & 0x1)
                {}
+
+       io32(cci+0x8) = 1;   /* Enable non-secure access to CCI */
 }
 
 static void configure_from_fdt(struct loader_info *info)
-- 
1.7.10.4




_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to