public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] sun7i: Set CONFIG_ARMV7_SEC_BY_DEFAULT when CONFIG_OLD_KERNEL_COMPAT is set
@ 2014-10-22 13:45 Hans de Goede
  2014-10-22 18:57 ` Ian Campbell
  2014-10-22 19:24 ` Tom Rini
  0 siblings, 2 replies; 6+ messages in thread
From: Hans de Goede @ 2014-10-22 13:45 UTC (permalink / raw)
  To: u-boot

Old kernels cannot handle booting in non-secure (hyp) mode, so when
CONFIG_OLD_KERNEL_COMPAT is set, also set CONFIG_ARMV7_SEC_BY_DEFAULT.

Note that whether to booting secure or non-secure can always be overriden
using the bootm_boot_mode environment variable.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 include/configs/sun7i.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/configs/sun7i.h b/include/configs/sun7i.h
index 966cbd8..4a864b2 100644
--- a/include/configs/sun7i.h
+++ b/include/configs/sun7i.h
@@ -35,6 +35,10 @@
 #define CONFIG_ARMV7_PSCI		1
 #define CONFIG_ARMV7_PSCI_NR_CPUS	2
 #define CONFIG_ARMV7_SECURE_BASE	SUNXI_SRAM_B_BASE
+#ifdef CONFIG_OLD_KERNEL_COMPAT
+#define CONFIG_ARMV7_SEC_BY_DEFAULT	1
+#endif
+
 #define CONFIG_SYS_CLK_FREQ		24000000
 
 /*
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-23 13:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 13:45 [U-Boot] [PATCH] sun7i: Set CONFIG_ARMV7_SEC_BY_DEFAULT when CONFIG_OLD_KERNEL_COMPAT is set Hans de Goede
2014-10-22 18:57 ` Ian Campbell
2014-10-23  8:52   ` Hans de Goede
2014-10-22 19:24 ` Tom Rini
2014-10-23  8:52   ` Hans de Goede
2014-10-23 13:10     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox