@@ -1056,3 +1056,25 @@ int board_late_init(void)
return 0;
}
#endif
+
+#if defined(CONFIG_ARCH_C29X)
+void sec_set_jr_context_secure(void)
+{
+ if ((SVR_SOC_VER(svr) == SVR_C292) ||
+ (SVR_SOC_VER(svr) == SVR_C293))
+ sec_set_jr_context_secure(1);
+
+ if (SVR_SOC_VER(svr) == SVR_C293)
+ sec_set_jr_context_secure(2);
+}
+
+void sec_set_jr_context_normal(void)
+{
+ if ((SVR_SOC_VER(svr) == SVR_C292) ||
+ (SVR_SOC_VER(svr) == SVR_C293))
+ sec_set_jr_context_normal(1);
+
+ if (SVR_SOC_VER(svr) == SVR_C293)
+ sec_set_jr_context_normal(2);
+}
+#endif
The mpc85xxx has more than one sec block. As a result we need to have an architecture specific version of: void sec_set_jr_context_secure(void); void sec_set_jr_context_normal(void); This patch implements those functions. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- arch/powerpc/cpu/mpc85xx/cpu_init.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)