Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: sti: Implement dummy L2 cache's write_sec

This patch implements the write_sec callback that handle PL310
secure registers writes.
This callback is just a stub for now, to avoid system crash.
Later, it could handle SMC calls so that TZ handles the needed writes.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>

+9
+9
arch/arm/mach-sti/board-dt.c
··· 23 23 NULL 24 24 }; 25 25 26 + static void sti_l2_write_sec(unsigned long val, unsigned reg) 27 + { 28 + /* 29 + * We can't write to secure registers as we are in non-secure 30 + * mode, until we have some SMI service available. 31 + */ 32 + } 33 + 26 34 DT_MACHINE_START(STM, "STi SoC with Flattened Device Tree") 27 35 .dt_compat = stih41x_dt_match, 28 36 .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE | ··· 39 31 L2C_AUX_CTRL_WAY_SIZE(4), 40 32 .l2c_aux_mask = 0xc0000fff, 41 33 .smp = smp_ops(sti_smp_ops), 34 + .l2c_write_sec = sti_l2_write_sec, 42 35 MACHINE_END