blob: ae10fb280a78d065a1b2b391ea840ad5835b0492 [file] [log] [blame]
Srinivas Kandagatla65ebcc12013-06-25 12:15:10 +01001/*
2 * Copyright (C) 2013 STMicroelectronics (R&D) Limited.
3 * 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.
8 */
9
Srinivas Kandagatla65ebcc12013-06-25 12:15:10 +010010#include <linux/irq.h>
Sebastian Hesselbarth28fbb1512013-08-27 15:23:07 +020011#include <linux/of_platform.h>
Srinivas Kandagatla65ebcc12013-06-25 12:15:10 +010012#include <asm/hardware/cache-l2x0.h>
13#include <asm/mach/arch.h>
14
15#include "smp.h"
16
Nicolas Pitre19c233b2015-07-27 18:27:52 -040017static const char *const stih41x_dt_match[] __initconst = {
Srinivas Kandagatla65ebcc12013-06-25 12:15:10 +010018 "st,stih415",
Srinivas Kandagatla15969b42013-06-25 12:15:23 +010019 "st,stih416",
Maxime Coquelinc6594022014-02-27 13:17:27 +010020 "st,stih407",
Fabrice GASNIER60b3c7e2015-03-05 16:53:54 +010021 "st,stih410",
Maxime COQUELINdd548cf2015-01-09 16:11:00 +010022 "st,stih418",
Srinivas Kandagatla65ebcc12013-06-25 12:15:10 +010023 NULL
24};
25
Srinivas Kandagatla15969b42013-06-25 12:15:23 +010026DT_MACHINE_START(STM, "STiH415/416 SoC with Flattened Device Tree")
Srinivas Kandagatla65ebcc12013-06-25 12:15:10 +010027 .dt_compat = stih41x_dt_match,
Russell King4d6229f2014-04-28 15:49:48 +010028 .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE |
29 L310_AUX_CTRL_DATA_PREFETCH |
30 L310_AUX_CTRL_INSTR_PREFETCH |
31 L2C_AUX_CTRL_WAY_SIZE(4),
32 .l2c_aux_mask = 0xc0000fff,
33 .smp = smp_ops(sti_smp_ops),
Srinivas Kandagatla65ebcc12013-06-25 12:15:10 +010034MACHINE_END