forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm/mach-sti/board-dt.c
....@@ -1,10 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2013 STMicroelectronics (R&D) Limited.
34 * Author(s): Srinivas Kandagatla <srinivas.kandagatla@st.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 #include <linux/irq.h>
....@@ -23,14 +20,6 @@
2320 NULL
2421 };
2522
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
-
3423 DT_MACHINE_START(STM, "STi SoC with Flattened Device Tree")
3524 .dt_compat = stih41x_dt_match,
3625 .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE |
....@@ -39,5 +28,4 @@
3928 L2C_AUX_CTRL_WAY_SIZE(4),
4029 .l2c_aux_mask = 0xc0000fff,
4130 .smp = smp_ops(sti_smp_ops),
42
- .l2c_write_sec = sti_l2_write_sec,
4331 MACHINE_END