diff mbox

[U-Boot,6/6] sun5i: boot in HYP mode by default

Message ID 20160901075746.28564-7-antoine.tenart@free-electrons.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Antoine Tenart Sept. 1, 2016, 7:57 a.m. UTC
sun5i now implements the psci suspend function. In order to be used by
the kernel, we should now boot in non-secure mode. Enable it by default.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
 board/sunxi/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Antoine Tenart Sept. 1, 2016, 8:51 a.m. UTC | #1
Hi,

On Thu, Sep 01, 2016 at 10:47:28AM +0200, Hans de Goede wrote:
> On 01-09-16 09:57, Antoine Tenart wrote:
> >sun5i now implements the psci suspend function. In order to be used by
> >the kernel, we should now boot in non-secure mode. Enable it by default.
> 
> The sun5i has a cortex a8, which does not do HYP mode, please
> fix the commit msg subject to reflect this.

Oops. Will do.

Thanks!

Antoine
diff mbox

Patch

diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index c9b500e9390b..6f4b4b2ab065 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -29,8 +29,10 @@  config MACH_SUN4I
 config MACH_SUN5I
 	bool "sun5i (Allwinner A13)"
 	select CPU_V7
+	select CPU_V7_HAS_NONSEC
 	select SUNXI_GEN_SUN4I
 	select SUPPORT_SPL
+	select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
 
 config MACH_SUN6I
 	bool "sun6i (Allwinner A31)"