blob: dcb98937fcf58df7d9e5f7a60f1d9f63b6157949 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001// SPDX-License-Identifier: GPL-2.0-only
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) 2013 STMicroelectronics (R&D) Limited.
4 * Author(s): Srinivas Kandagatla <srinivas.kandagatla@st.com>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005 */
6
7#include <linux/irq.h>
8#include <linux/of_platform.h>
9#include <asm/hardware/cache-l2x0.h>
10#include <asm/mach/arch.h>
11
12#include "smp.h"
13
14static const char *const stih41x_dt_match[] __initconst = {
15 "st,stih415",
16 "st,stih416",
17 "st,stih407",
18 "st,stih410",
19 "st,stih418",
20 NULL
21};
22
23static void sti_l2_write_sec(unsigned long val, unsigned reg)
24{
25 /*
26 * We can't write to secure registers as we are in non-secure
27 * mode, until we have some SMI service available.
28 */
29}
30
31DT_MACHINE_START(STM, "STi SoC with Flattened Device Tree")
32 .dt_compat = stih41x_dt_match,
33 .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE |
34 L310_AUX_CTRL_DATA_PREFETCH |
35 L310_AUX_CTRL_INSTR_PREFETCH |
36 L2C_AUX_CTRL_WAY_SIZE(4),
37 .l2c_aux_mask = 0xc0000fff,
38 .smp = smp_ops(sti_smp_ops),
39 .l2c_write_sec = sti_l2_write_sec,
40MACHINE_END