Srinivas Kandagatla | 65ebcc1 | 2013-06-25 12:15:10 +0100 | [diff] [blame] | 1 | /* |
| 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 Kandagatla | 65ebcc1 | 2013-06-25 12:15:10 +0100 | [diff] [blame] | 10 | #include <linux/irq.h> |
Sebastian Hesselbarth | 28fbb151 | 2013-08-27 15:23:07 +0200 | [diff] [blame] | 11 | #include <linux/of_platform.h> |
Srinivas Kandagatla | 65ebcc1 | 2013-06-25 12:15:10 +0100 | [diff] [blame] | 12 | #include <asm/hardware/cache-l2x0.h> |
| 13 | #include <asm/mach/arch.h> |
| 14 | |
| 15 | #include "smp.h" |
| 16 | |
Srinivas Kandagatla | 65ebcc1 | 2013-06-25 12:15:10 +0100 | [diff] [blame] | 17 | static const char *stih41x_dt_match[] __initdata = { |
| 18 | "st,stih415", |
Srinivas Kandagatla | 15969b4 | 2013-06-25 12:15:23 +0100 | [diff] [blame] | 19 | "st,stih416", |
Maxime Coquelin | c659402 | 2014-02-27 13:17:27 +0100 | [diff] [blame] | 20 | "st,stih407", |
Fabrice GASNIER | 60b3c7e | 2015-03-05 16:53:54 +0100 | [diff] [blame^] | 21 | "st,stih410", |
Maxime COQUELIN | dd548cf | 2015-01-09 16:11:00 +0100 | [diff] [blame] | 22 | "st,stih418", |
Srinivas Kandagatla | 65ebcc1 | 2013-06-25 12:15:10 +0100 | [diff] [blame] | 23 | NULL |
| 24 | }; |
| 25 | |
Srinivas Kandagatla | 15969b4 | 2013-06-25 12:15:23 +0100 | [diff] [blame] | 26 | DT_MACHINE_START(STM, "STiH415/416 SoC with Flattened Device Tree") |
Srinivas Kandagatla | 65ebcc1 | 2013-06-25 12:15:10 +0100 | [diff] [blame] | 27 | .dt_compat = stih41x_dt_match, |
Russell King | 4d6229f | 2014-04-28 15:49:48 +0100 | [diff] [blame] | 28 | .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 Kandagatla | 65ebcc1 | 2013-06-25 12:15:10 +0100 | [diff] [blame] | 34 | MACHINE_END |