mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 07:13:27 +07:00
d2912cb15b
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41 lines
990 B
C
41 lines
990 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2013 STMicroelectronics (R&D) Limited.
|
|
* Author(s): Srinivas Kandagatla <srinivas.kandagatla@st.com>
|
|
*/
|
|
|
|
#include <linux/irq.h>
|
|
#include <linux/of_platform.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include "smp.h"
|
|
|
|
static const char *const stih41x_dt_match[] __initconst = {
|
|
"st,stih415",
|
|
"st,stih416",
|
|
"st,stih407",
|
|
"st,stih410",
|
|
"st,stih418",
|
|
NULL
|
|
};
|
|
|
|
static void sti_l2_write_sec(unsigned long val, unsigned reg)
|
|
{
|
|
/*
|
|
* We can't write to secure registers as we are in non-secure
|
|
* mode, until we have some SMI service available.
|
|
*/
|
|
}
|
|
|
|
DT_MACHINE_START(STM, "STi SoC with Flattened Device Tree")
|
|
.dt_compat = stih41x_dt_match,
|
|
.l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE |
|
|
L310_AUX_CTRL_DATA_PREFETCH |
|
|
L310_AUX_CTRL_INSTR_PREFETCH |
|
|
L2C_AUX_CTRL_WAY_SIZE(4),
|
|
.l2c_aux_mask = 0xc0000fff,
|
|
.smp = smp_ops(sti_smp_ops),
|
|
.l2c_write_sec = sti_l2_write_sec,
|
|
MACHINE_END
|